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 Normal1,2 and PoissonRandomVariable(a) is a random variable distributed as Poissona.
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.
withStudent:-Statistics:
Define a discrete distribution that follows Binomial6,14
A≔BinomialRandomVariable6,14:
ProbabilityFunctionA,x,output=plot
StandardDeviationA
324
MeanA
32
Define a continuous distribution that follows Exponential3
B≔ExponentialRandomVariable3:
ProbabilityDensityFunctionB,x
0x<0ⅇ−x33otherwise
CDFB,x,output=plot
VarianceB
9
Define a distribution that follows 2Binomial6,14+Exponential3
C≔2A+B:
KurtosisC
45881
SkewnessC
13627
We can also randomly generate a sample from this distribution with sample size equal to 1000.
SampleC,1000
See Also
Statistics:-RandomVariable
Student
Student:-Statistics
Download Help Document