RandomVariable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Random Variables Available in Student:-Statistics

 

Description

Examples

Description

• 

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.

Examples

withStudent:-Statistics:

Define a discrete distribution that follows Binomial6,14

ABinomialRandomVariable6,14:

ProbabilityFunctionA,x,output=plot

StandardDeviationA

324

(1)

MeanA

32

(2)

Define a continuous distribution that follows Exponential3

BExponentialRandomVariable3:

ProbabilityDensityFunctionB,x

0x<0&ExponentialE;x33otherwise

(3)

CDFB&comma;x&comma;output=plot

VarianceB

9

(4)

Define a distribution that follows 2Binomial6&comma;14+Exponential3

C2A+B&colon;

KurtosisC

45881

(5)

SkewnessC

13627

(6)

We can also randomly generate a sample from this distribution with sample size equal to 1000.

SampleC&comma;1000

See Also

Statistics:-RandomVariable

Student

Student:-Statistics