Module 2 · Lesson 3 of 57/56 in the course~20 min
Module lessons (3/5)
Statistics and correlation
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 2 — Toolkit: numpy, statistics and pandas
Mean, median, standard deviation, Pearson correlation and seeded randomness.
What you'll learn in this lesson
- Summarise data with mean, median and standard deviation, and know when each misleads.
- Measure how two variables move together with correlation.
- Make random experiments reproducible with a seed.
Overview
Before modelling anything you should look at your data. A few statistics tell you where it sits, how spread out it is, and whether two columns are related.
The Pearson correlation r is a number between -1 and 1 that measures how well two variables follow a straight-line relationship:
Sections covered in this lesson
- 1The hook: one number is never the whole story
- 2Centre and spread
- 3Comparing summary statistics
- 4Correlation
- 5Seeds make randomness reproducible
- 6Practice
Pro Lesson · Module 2 — Toolkit: numpy, statistics and pandas
Unlock "Statistics and correlation" and the full Machine Learning: from first principles to practice curriculum
Mean, median, standard deviation, Pearson correlation and seeded randomness.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.