Exercises 3 Simulations
Exercises 3 Simulations
Simulations Exercises
Note on notation: by N (µ, σ 2 ), we denote normal distribution with parameters µ (mean) and
σ 2 (variance).
N (0, 1), N (0, 4), N (0, 9), N (1, 1), N (2, 1), N (3, 1).
All pdf curves should be drew in one plot, and the cdf curves should be in another plot. The
pdf plot should be placed above cdf plot. Add legend.
Ex.3.3. Plot (in one plot) the following densities: N (0, 1), t1 , t2 , t10 , t100 , where tv denotes
Student’s t-distribution with v degrees of freedom.
Ex.3.4. In the build-in data set airquality there is a variable Temp. Check (graphically) if
this variable comes from normal distribution.
(b) Plot cumulative fractions to see how fast the approximates convergence to the true
value. Check results for some high number of samples, e.g. 104 .
Computer Statistics 3. Simulations, Page 2 of 2 Exercises
m1 − EX1 mr − EX1
q , ..., q
Var(X1 ) Var(X1 )
n n