Click or drag to resize

BetaBinomial Class

Discrete Univariate Beta-Binomial distribution. The beta-binomial distribution is a family of discrete probability distributions on a finite support of non-negative integers arising when the probability of success in each of a fixed or known number of Bernoulli trials is either unknown or random. The beta-binomial distribution is the binomial distribution in which the probability of success at each of n trials is not fixed but randomly drawn from a beta distribution. It is frequently used in Bayesian statistics, empirical Bayes methods and classical statistics to capture overdispersion in binomial type distributed data. Wikipedia - Beta-Binomial distribution.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.DistributionsBetaBinomial

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class BetaBinomial : IDiscreteDistribution, 
	IUnivariateDistribution, IDistribution

The BetaBinomial type exposes the following members.

Constructors
 NameDescription
Public methodBetaBinomial(Int32, Double, Double) Initializes a new instance of the BetaBinomial class.
Public methodBetaBinomial(Int32, Double, Double, Random) Initializes a new instance of the BetaBinomial class.
Top
Properties
 NameDescription
Public propertyA 
Public propertyB 
Public propertyMaximum Gets the largest element in the domain of the distributions which can be represented by an integer.
Public propertyMean Gets the mean of the distribution.
Public propertyMinimum Gets the smallest element in the domain of the distributions which can be represented by an integer.
Public propertyN 
Public propertyRandomSource 
Public propertySkewness Gets the skewness of the distribution.
Public propertyStdDev Gets the standard deviation of the distribution.
Public propertyVariance Gets the variance of the distribution.
Top
Methods
 NameDescription
Public methodStatic memberCDF Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
Public methodCumulativeDistribution Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidParameterSet(Int32, Double, Double) Tests whether the provided values are valid parameters for this distribution.
Public methodStatic memberIsValidParameterSet(Int32, Double, Double, Int32) Tests whether the provided values are valid parameters for this distribution.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberPMF Computes the probability mass (PMF) at k, i.e. P(X = k).
Public methodStatic memberPMFLn Computes the log probability mass (lnPMF) at k, i.e. ln(P(X = k)).
Public methodProbability Computes the probability mass (PMF) at k, i.e. P(X = k).
Public methodProbabilityLn Computes the log probability mass (lnPMF) at k, i.e. ln(P(X = k)).
Public methodSample Samples a BetaBinomial distributed random variable.
Public methodSample(Random, Int32, Double, Double) Samples a BetaBinomial distributed random variable.
Public methodSamples Samples an array of BetaBinomial distributed random variables.
Public methodSamples(Int32) Fills an array with samples generated from the distribution.
Public methodSamples(Int32, Double, Double) Samples an array of BetaBinomial distributed random variables.
Public methodSamples(Int32, Int32, Double, Double) Fills an array with samples generated from the distribution.
Public methodSamples(Random, Int32, Int32, Double, Double) Fills an array with samples generated from the distribution.
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Top
See Also