Binomial Distribution: https://en.wikipedia.org/wiki/Binomial_distribution
Value parameters
- P
-
probability of a successful outcome on any single trial.
- n
-
number of trials in process or experiment with two possible outcomes, i.e. a boolean valued random function.
Attributes
- Companion
- object
- Source
- Binomial.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ParametricProbabilityDistribution[Long]trait ProbabilityDistribution[Long]trait Sampleable[Long]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
A true Binomial Distribution has a Probability Mass Function PMF(k), with a meaningful domain of: n₀ ⊆ ℕ₀ where n₀ = {0, 1, 2, ..., n} and ℕ₀ = ℕ* ∪ {0} = {0, 1, 2, ... ∞}: the natural numbers and 0. and ∀ k < 0 or k > n, PMF(k) = 0.
A true Binomial Distribution has a Probability Mass Function PMF(k), with a meaningful domain of: n₀ ⊆ ℕ₀ where n₀ = {0, 1, 2, ..., n} and ℕ₀ = ℕ* ∪ {0} = {0, 1, 2, ... ∞}: the natural numbers and 0. and ∀ k < 0 or k > n, PMF(k) = 0.
Value parameters
- x
-
a specific number of successful outcomes given n trials.
Attributes
- Returns
-
Probability of x successes given n trials.
- Definition Classes
- Source
- Binomial.scala
Naive implementation not suitable for large N.
Naive implementation not suitable for large N.
Attributes
- Returns
-
a random number of successes.
- Definition Classes
- Source
- Binomial.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- Binomial.scala
Inherited methods
Attributes
- Inherited from:
- ParametricProbabilityDistribution
- Source
- ProbabilityDistribution.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- ParametricProbabilityDistribution
- Source
- ProbabilityDistribution.scala
Attributes
- Inherited from:
- ParametricProbabilityDistribution
- Source
- ProbabilityDistribution.scala
Concrete fields
1-p is the probability of failure.
Attributes
- Source
- Binomial.scala
Attributes
- Source
- Binomial.scala
Attributes
- Source
- Binomial.scala
Attributes
- Source
- Binomial.scala
Inherited fields
Attributes
- Inherited from:
- ProbabilityDistribution
- Source
- ProbabilityDistribution.scala