Create a Random Variable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Statistics

  

RandomVariable

  

create new random variable

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

RandomVariable(T)

Parameters

T

-

ProbabilityDistribution; probability distribution

Description

• 

The RandomVariable command creates new random variable with the specified distribution.

• 

The parameter can be one of the supported distributions or a distribution data structure.

Examples

withStatistics:

Create a random variable which is normally distributed with mean a and standard deviation b.

XRandomVariableNormala,b

X_R

(1)

PDFX,t

2ⅇta22b22πb

(2)

MeanX

a

(3)

TDistributionGammaDistributionu,v

TmoduleoptionDistribution,Continuous;exportConditions,Dimensions,ParentName,Parameters,CharacteristicFunction,CGF,Mean,Mode,MGF,PDF,Support,Variance,CDFNumeric,QuantileNumeric,RandomSample,RandomSampleSetup,RandomVariate,MaximumLikelihoodEstimate;end module

(4)

YRandomVariableT

Y_R0

(5)

PDFY,t

0t<0tuv1&ExponentialE;tuuΓvotherwise

(6)

UDistribution`=`PDF&comma;tpiecewiset<0&comma;0&comma;t<3&comma;13&comma;0

UmoduleoptionDistribution&comma;Continuous&semi;exportConditions&comma;PDF&semi;end module

(7)

ZRandomVariableU

Z_R1

(8)

PDFZ&comma;t

0t<013t<30otherwise

(9)

MeanZ

32

(10)

References

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

See Also

Statistics

Statistics[Computation]

Statistics[Distribution]

Statistics[Distributions]

Statistics[RandomVariables]

Statistics[Specialize]