Week 9 • Monday

Block 81: SciPy Overview & Statistics

Use scipy.stats for distributions and hypothesis testing.

Concepts

Code Examples

See exercise below.

Exercise

Sample 1000 values from N(5,2). Compute mean, std, and plot histogram vs PDF. Compute the CDF probability of x < 6 for N(5,2).

Homework

Explain the difference between PDF and CDF. Draw a rough sketch of each.