Represents the binomial distribution.
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class BinomialDistribution _ Inherits DiscreteDistribution |
| C# |
|---|
public class BinomialDistribution : DiscreteDistribution |
| C++ |
|---|
public ref class BinomialDistribution : public DiscreteDistribution |
Methods
| Icon | Type | Description |
|---|---|---|
| DistributionFunction(Int32) |
Evaluates the cumulative distribution function of the
distribution.
| |
| Equals(Object) | ||
| Finalize() | ||
| GetExpectedHistogram(Double) |
Gets a Histogram whose bins contain the expected number of samples
for a given total number of samples.
| |
| GetExpectedHistogram(Int32, Int32, Double) |
Gets a Histogram whose bins contain the expected number of samples
for a given total number of samples.
| |
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetRandomVariate(Random, Int32, Double) |
Returns a single random variate from a binomial distribution
with the specified parameters.
| |
| GetRandomVariate(Random, Int32) |
Returns a single random variate from a binomial distribution
with the specified parameters. The probability of a
trial resulting in a success is set to 0.5.
| |
| GetRandomVariate(Random) |
Returns a random sample from the distribution.
| |
| GetRandomVariates(Random, Int32[]()) |
Fills an Int32 array with random numbers.
| |
| GetRandomVariates(Random, Int32[](), Int32, Int32) |
Fills an Int32 array with random numbers from this DiscreteDistribution.
| |
| GetType() | Gets the Type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Probability(Int32) |
Evaluates the probability function of the distribution.
| |
| Probability(Int32, Int32) |
Gets the probability of obtaining a sample that falls
within the specified interval from the distribution.
| |
| ToString() |
Constructors
| Icon | Type | Description |
|---|---|---|
| BinomialDistributionNew(Int32, Double) |
Constructs a new BinomialDistribution with the specified
number of trials and probability of success.
| |
| BinomialDistributionNew(Int32) |
Constructs a new BinomialDistribution with the specified
number of trials. The probability of success is set to 0.5.
|
Properties
| Icon | Type | Description |
|---|---|---|
| Kurtosis |
Gets the kurtosis of the distribution.
| |
| Mean |
Gets the mean or expectation value of the distribution.
| |
| NumberOfTrials |
Gets the number of trials.
| |
| ProbabilityOfSuccess |
Gets the probability that a trial is successful.
| |
| Skewness |
Gets the skewness of the distribution.
| |
| StandardDeviation |
Gets the standard deviation of the distribution.
| |
| Variance |
Gets the variance of the distribution.
|
Remarks
The binomial distribution Binomial(n, probability)
characterizes the probability of the number of successes
in a variable of n trials, each having a probability
probability of being successful.
If n = 1, the binomial distribution reduces to the BernoulliDistribution.
BernoulliDistributionGeometricDistributionNegativeBinomialDistribution
Examples
The number of dice showing a six when rolling N
dice has a biomial distribution with n = N
and probability = 1/6. Notice that it doesn't matter if the
trials are run simultaneously or in succession.
Inheritance Hierarchy
System.Object
Extreme.Statistics.Distributions.Distribution
Extreme.Statistics.Distributions.DiscreteDistribution
Extreme.Statistics.Distributions.BinomialDistribution
Extreme.Statistics.Distributions.Distribution
Extreme.Statistics.Distributions.DiscreteDistribution
Extreme.Statistics.Distributions.BinomialDistribution