Simulation Commands - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : Statistics Package : Simulation : Statistics/Simulation

Simulation Commands

  

The Statistics package provides optimized algorithms for simulating from all supported distributions as well as tools for creating custom random number generators, parametric and non-parametric bootstrap.

  

 

Bootstrap

compute bootstrap statistics

KernelDensitySample

sample a kernel density estimate

Sample

generate random sample

Examples

withStatistics:

Generate random sample drawn from the non-central beta distribution.

XRandomVariableNonCentralBeta3,10,2:

ASampleX,1000

A:= 1 .. 1000 VectorrowData Type: float8Storage: rectangularOrder: Fortran_order

(1)

Use the bootstrap to estimate the mean and the standard error of the mean.

BootstrapMean,X,replications=1000,output='value','standarderror'

0.282164906730844,0.00399251392902761747

(2)

BootstrapMean,A,replications=1000,output='value','standarderror'

0.275105910864221,0.00381911787834478744

(3)

Compare this with analytic results.

MeanX

4790016000ⅇ11762148409

(4)

evalf[30]MeanX

0.28226746351970438745

(5)

MeanX,numeric

0.2822674635

(6)

Random sample involving two independent random variables.

YRandomVariableCauchy0,1

Y:=_R0

(7)

ZRandomVariableCauchy1,2

Z:=_R1

(8)

BSampleY2+Z2,105

B:= 1 .. 100000 VectorrowData Type: float8Storage: rectangularOrder: Fortran_order

(9)

See Also

Statistics

Statistics[Computation]

 


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