Skip to course content
Free Python statistics course

Statistical Data Analytics with Python

Module 04 Activity

Scenario

Quantify how much you actually know, using simulation where the formula is unclear.

What you build

A numpy simulation study and a set of intervals whose interpretation you can defend.

Steps

  1. Build a population, draw repeated samples, and look at the spread of the estimates. Confirm no single sample was wrong.
  2. Repeat at three sample sizes and check the spread falls with the square root of n.
  3. Compute the standard error from one sample with ddof=1 and compare it with the simulated spread of many.
  4. Bootstrap a statistic with no simple formula, resampling with replace=True at the original size, at least a few thousand times.
  5. Build intervals for a mean and for a proportion, using Wilson for the proportion, and tabulate width against n.
  6. Write the interpretation of one interval in a sentence that would survive review, and list two wordings you rejected.

Evidence to hand in

Review checklist