create new random variable - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics : Statistics Package : Random Variables : Statistics/RandomVariable

Statistics[RandomVariable] - create new random variable

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.

X:=RandomVariableNormala,b

X:=_R

(1)

PDFX,t

122ⅇ12ta2b2πb

(2)

MeanX

a

(3)

T:=DistributionGammaDistributionu,v

T:=moduleoptionDistribution,Continuous;exportConditions,ParentName,Parameters,CharacteristicFunction,CGF,Mean,Mode,MGF,PDF,Support,Variance,CDFNumeric,QuantileNumeric,RandomSample,RandomSampleSetup,RandomVariate,MaximumLikelihoodEstimate;end module

(4)

Y:=RandomVariableT

Y:=_R0

(5)

PDFY,t

&lcub;0t<0tuv1&ExponentialE;tuu&Gamma;votherwise

(6)

U:=DistributionPDF&equals;t&rarr;piecewiset<0&comma;0&comma;t<3&comma;13&comma;0

U:=moduleoptionDistribution&comma;Continuous&semi;exportConditions&comma;PDF&semi;end module

(7)

Z:=RandomVariableU

Z:=_R1

(8)

PDFZ&comma;t

&lcub;0t<013t<30otherwise

(9)

MeanZ

32

(10)

See Also

Statistics, Statistics[Computation], Statistics[Distribution], Statistics[Distributions], Statistics[RandomVariables], Statistics[Specialize]

References

  

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


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam