Binomial

ai.dragonfly.math.stats.probability.distributions.Binomial
See theBinomial companion object

Attributes

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.

Companion:
object
Source:
Binomial.scala
Graph
Supertypes

Members list

Concise view

Value members

Concrete methods

override def p(k: Long): Double

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.

Attributes

x

a specific number of successful outcomes given n trials.

Returns:

Probability of x successes given n trials.

Definition Classes
Source:
Binomial.scala
override def random(r: Random): Long

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
override def toString: String

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

Concrete fields

val 1-p: Double

1-p is the probability of failure.

1-p is the probability of failure.

Attributes

Source:
Binomial.scala
lazy val n!: BigInt

Attributes

Source:
Binomial.scala
override val μ: Double

Attributes

Source:
Binomial.scala
override val σ: Double

Attributes

Source:
Binomial.scala
override val σ²: Double

Attributes

Source:
Binomial.scala

Inherited fields