Geometric
Represents the number of Bernoulli trials needed to get the first success.
Create a new Geometric distribution
creates a discrete Geometric probability distribution.
Distribution properties:
p
double -> [0, 1]
Probability of a successful trial.
E()
double
Returns the expected value of executed Bernoulli trials before a successful trial.
D()
double
Represents variance, that measures the spread of dispersion of the random variable around its expected value E(X).
P(int k)
double
Probability that the first success occurs on the exactly 𝑘-th trial: P(X = k)
P_LT(int k)
double
Probability that the first success occurs on less than 𝑘-th trials: P(X < k)
P_LTE(int k)
double
Probability that the first success occurs on less than or exactly 𝑘-th trials: P(X ≤ k)
P_HT(int k)
double
Probability that the first success occurs on higher than 𝑘-th trials: P(X > k) = P(X ≤ k)
P_HTE(int k)
double
Probability that the first success occurs on higher than or exactly 𝑘-th trials: P(X ≥ k) = P(X < k)
Example
Last updated