Statistics · Module 0
Why Statistics Matters
Take each lesson, answer its quiz, then do its practice. After the last lesson come the module quiz, the project and the interview questions.
Lessons
- 0.1Why Statistics Matters for ML, AI and Real DecisionsUnderstand what statistics does: describe observed cases and use them carefully to reason about unobserved cases. See why model performance is an estimate about future cases, not a guaranteed score, and why the same reasoning matters outside ML.
- 0.2From Question to Evidence to ActionFollow the full statistical workflow once before learning its individual tools.
Module material
Take these after the last lesson, in this order. Next on each page leads through them.
- Module quiz12 questions across the whole module. Take it after the last lesson; your first pick on each question is the one that counts.
- Project: a Dispatcher Decision BriefStated as a problem, with no template and no step-by-step instructions. Working out the steps is the point.
- NotebooksOpen them in Google Colab. Each answer is checked as you go: correct, wrong with the expected value, or not answered yet.
- Cheat sheetOne page of the module’s terms, rules and gotchas, with the output each rule produces.
- Interview questions19 questions interviewers ask on why statistics matters, from first principles to the follow-ups. The first 3 model answers are free to read; Pro opens the rest.
Glossary
Every term the module introduces, with the lesson that introduces it.
- Statistics
- describing observed data and reasoning about unobserved cases. 0.1
- Descriptive statistic
- a summary of observed data. The median of the January–February trips is one. 0.1
- Statistical inference
- reasoning from observed cases about unobserved cases, such as using March trips to choose a forecast for trips that have not happened yet. 0.1
- Estimate
- a value calculated from observed cases. (00.2): the rate measured in the observed period. An estimate can change when the observed cases change. 0.1
- Unit
- one completed trip. The thing each row, and each count, is about. 0.1
- Outcome
- trip duration, the recorded quantity the forecast is trying to predict: dropoff time minus pickup time, in minutes. 0.1
- Sample
- observed recorded trips. 0.1
- Target population
- future completed trips under similar conditions; the cases a decision is meant to be used on. 0.1
- Simple model
- a rule, calculated from recorded trips, that gives a prediction for a new trip. Both forecasts in 00.1, one duration for every trip and one duration per pickup zone, are simple models. 0.1
- Median
- middle value of sorted observations. (00.2): the middle of sorted observations. With an even count, the usual median averages the two middle values. 0.1
- Evaluation
- measuring a forecast on cases excluded from its calculation. 0.1
- Absolute error
- size of observed duration minus forecast, sign ignored. 0.1
- Mean absolute error
- total absolute error divided by evaluated trips; the average size of the error per trip. 0.1
- Unit
- one completed trip. The thing each row, and each count, is about. 0.2
- Population
- the trips the decision is meant to cover. In 00.2, completed yellow-taxi trips picked up in Midtown Center on weekdays from 09:00 to 09:59, now and under the same conditions later. 0.2
- Scope
- the cases and period the result describes. 0.2
- Threshold
- the duration used to decide whether a trip is on time. In 00.2 it is 20 minutes, tested as
duration <= 20. 0.2 - Numerator
- the trips that meet the condition. 0.2
- Denominator
- all eligible trips in the stated question. 0.2
- Rate
- numerator divided by eligible denominator. 0.2
- Empirical cumulative distribution
- observed fraction at or below each duration. 0.2