Q (1). Simulate 1000 realizations of a standard normal random variable Z, and use your simulated sample to estimate
Q (2). A χ^2 random variable on n degrees of freedom has the same distribution as the sum of n independent standard
normal random variables squared. Simulate a χ^2 random variable on eight degrees of freedom, and estimate its mean
and variance. (Compare with the theoretical values: 8, 16.) Plot the PDF and CDF of this distribution. \
Q (3). Use the data set ”iris” to compute:
a) mean, median, mode for ”Petal.Length”
b) range, variance, standard deviation, IQR for ”Sepal.Length” for the species ”setosa”
c) kurtosis, skewness for ”Petal.Width”; is the distribution symmetric and mesokurtic?
Q (4). Construct the histogram of the variable ”Petal.Length” in ”iris”, then change the bins in an appropriate manner.
Add the density function to the graph. Construct the boxplot of a variable of your choice with respect to each species.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |