|
| BernoulliDistribution (double p1) |
| Initializes a new Bernoulli distribution. More...
|
|
override double | ProbabilityMass (int k) |
| Returns the probability of the obtaining the given value. - Parameters
-
- Returns
- The probability of obtaining the value.
More...
|
|
override double | Moment (int r) |
| Computes a raw moment of the distribution. - Parameters
-
r | The order of the moment to compute. |
- Returns
- The rth raw moment of the distribution.
- See also
- Moment
More...
|
|
override double | MomentAboutMean (int r) |
| Computes a central moment of the distribution. - Parameters
-
r | The order of the moment to compute. |
- Returns
- The rth central moment of the distribution.
- See also
- Moment
More...
|
|
override double | LeftExclusiveProbability (int k) |
| Computes the probability of obtaining a value less than the given value. - Parameters
-
- Returns
- The total probability of obtaining a value strictly less than k .
- See also
- RightExclusiveProbability
More...
|
|
override double | RightExclusiveProbability (int k) |
| Computes the probability of obtaining a value greater than the given value. - Parameters
-
- Returns
- The total probability of obtaining a value strictly greater than k .
- See also
- LeftExclusiveProbability
More...
|
|
override int | InverseLeftProbability (double P) |
| Computes the value corresponding to the given percentile. - Parameters
-
- Returns
- The value.
More...
|
|
virtual double | LeftInclusiveProbability (int k) |
| Computes the probability of obtaining a value less than or equal to the given value. More...
|
|
virtual double | ExpectationValue (Func< int, double > f) |
| Computes the expectation value of an artibrary function. More...
|
|
override double | Moment (int r) |
| Gets a raw moment of the distribution. More...
|
|
override double | MomentAboutMean (int r) |
| Gets a central moment of the distribution. More...
|
|
virtual int | GetRandomValue (Random rng) |
| Produces a random integer drawn from the distribution. More...
|
|
virtual double | Cumulant (int r) |
| Computes a cumulant of the distribution. More...
|
|
Represents a Bernoulli distribution.
A Bernoulli distribution describes a trial with two possible outcomes. These outcomes are usually called "success" and "failure", but the same framework is applicable to any binary set of outcomes: right or left, true or false, male or female, dead or alive, etc. We represent the outcomes by 1 and 0, which are the only two integers for which the Bernoulli probability does not vanish. The parameter p1 is the probability of obtaining outcome 1.
When multiple, independent Bernoulli trials are conducted, the binomial distribution (BinomialDistribution) describes the probablity of obtaining any particular number of successes.
- See also
- BinomialDistribution