Binomial

ai.dragonfly.math.stats.probability.distributions.Binomial
See theBinomial companion object
case class Binomial(n: Long, P: Double) extends ParametricProbabilityDistribution[Long]

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 Serializable
trait Product
trait Equals
trait Sampleable[Long]
class Object
trait Matchable
class Any
Show all

Members list

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.

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
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

Inherited methods

def mean: Double
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def variance: Double

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

val `#`: Numeric[Long]

Attributes

Inherited from:
ProbabilityDistribution
Source
ProbabilityDistribution.scala