Part B — Practice Exercises (Hands-on)

Instructions: Work in pairs. Every task below is doable using only the functions demonstrated in Part A. Write small chunks and check results frequently.

Exercise 1 — Descriptive Statistics

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.

Exercise 2 — Normal Distribution & Probabilities

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)\).

Exercise 3 — Standard Normal (Z) Drills

Simulate \(( Z \sim N(0,1)\) with 100,000 draws and estimate: - \(( P(Z < 1)\) - \(( P(-1 < Z < 1)\) - \(( P(-2 < Z < 2)\)