Random Variables Available in Student:-Statistics
Description
Examples
The Student:-Statistics subpackage represents distributions by random variables that follow that distribution.
Commands in this section are of the general form NameRandomVariable(arguments) where Name is the name of a distribution and arguments are the parameters for that distribution. For example, NormalRandomVariable(1,2) is a random variable distributed as Normal⁡1,2 and PoissonRandomVariable(a) is a random variable distributed as Poisson⁡a.
Random variable commands available in Student:-Statistics subpackage are:
BernoulliRandomVariable
BetaRandomVariable
BinomialRandomVariable
CauchyRandomVariable
ChiSquareRandomVariable
DiscreteUniformRandomVariable
EmpiricalRandomVariable
ExponentialRandomVariable
FRatioRandomVariable
GammaRandomVariable
GeometricRandomVariable
HypergeometricRandomVariable
LogNormalRandomVariable
NegativeBinomialRandomVariable
NormalRandomVariable
PoissonRandomVariable
StudentTRandomVariable
UniformRandomVariable
The command Sample can be used to generate a data sample which will follow the specified distribution and with the specified sample size.
with⁡Student:-Statistics:
Define a discrete distribution that follows Binomial⁡6,14
A≔BinomialRandomVariable⁡6,14:
ProbabilityFunction⁡A,x,output=plot
StandardDeviation⁡A
3⁢24
Mean⁡A
32
Define a continuous distribution that follows Exponential⁡3
B≔ExponentialRandomVariable⁡3:
ProbabilityDensityFunction⁡B,x
0x<0ⅇ−x33otherwise
CDF⁡B,x,output=plot
Variance⁡B
9
Define a distribution that follows 2⁢Binomial⁡6,14+Exponential⁡3
C≔2⁢A+B:
Kurtosis⁡C
45881
Skewness⁡C
13⁢627
We can also randomly generate a sample from this distribution with sample size equal to 1000.
Sample⁡C,1000
See Also
Statistics:-RandomVariable
Student
Student:-Statistics
Download Help Document