Instructions: Work in pairs. Every task below is doable using only the functions demonstrated in Part A. Write small chunks and check results frequently.
1.1 Compute the mean,
median, variance, and standard
deviation of education.
Make a histogram of education and draw vertical lines for
mean and median.
2.1 Draw 1,000,000 samples from
\(( X \sim N(2, 25)\).
Create a histogram.
Compute sample mean and variance; do they match 2 and 25
approximately?
2.2 Empirical probabilities with logicals:
Estimate \(P(0 < X < 2)\); \(P(X < 0)\) and \(P(X > 2)\).
Simulate \(( Z \sim N(0,1)\) with 100,000 draws and estimate: - \(( P(Z < 1)\) - \(( P(-1 < Z < 1)\) - \(( P(-2 < Z < 2)\)