Statistics and Probability for Data Science
Learn statistics by simulating it first: averages, spread, probability, the central limit theorem, intervals, p-values, A/B tests and regression in Python.
- 0 students
- 78 lessons
- 6 h 39 min
Created by Ayim Nelson
What you will learn
- Summarise data with the mean, median, spread, percentiles and z-scores, and spot outliers
- Work with probability, conditional probability and Bayes' rule, including base rates
- Use the binomial, Poisson and normal distributions with scipy.stats
- Answer questions by seeded simulation, and see the central limit theorem happen
- Build confidence intervals for means and proportions, by formula and by bootstrapping
- Run t-tests, chi-square tests and A/B tests, and say what a p-value does and doesn't mean
- Measure correlation, fit a least-squares line and read its slope, intercept and R²
About this course
Statistics is how a data scientist tells a real pattern from luck. In short lessons you'll describe trotro waiting times on the Circle-Madina and Kaneshie-Kasoa routes, work out the chance that a flagged SMS is really a scam, test whether a new schedule cut waiting times, and decide which of two mobile money promo messages wins. You simulate every idea with Python first, so the formula arrives when you already know what it should say. Everything runs in your browser with the statistics module, NumPy and scipy.stats.
For: learners who can write Python (lists, loops, functions) and have met NumPy, for example in Data Analysis with NumPy and pandas. School maths is enough: each lesson brings in at most one formula and works it in cedis.
By the end: you'll summarise and compare data honestly, reason about chance and base rates, build confidence intervals, run and read hypothesis tests and A/B tests, fit and judge a straight line, and write up a school results report that says what the numbers do and don't show.
Course content
11 sections · 78 lessons
Describing data11 lessons
- Why statistics?PreviewReading · 3 min
- Simulate first, formula secondPreviewReading · 3 min
- The course dataPreviewReading · 3 min
- MeanReading · 3 min
- MedianReading · 3 min
- ModeReading · 3 min
- Range and IQRReading · 4 min
- VarianceReading · 4 min
- Standard deviationReading · 4 min
- z-scoresReading · 4 min
- Summarise route waiting timesExercise · 12 min
Distributions6 lessons
- Histograms as countsReading · 4 min
- SkewReading · 3 min
- The normal curveReading · 4 min
- PercentilesReading · 3 min
- Spotting outliersReading · 4 min
- Which school's scores are unusual?Exercise · 12 min
Probability basics8 lessons
- What probability meansReading · 3 min
- Counting outcomesReading · 4 min
- Adding and multiplying probabilitiesReading · 4 min
- Independent eventsReading · 4 min
- Conditional probabilityReading · 4 min
- Base rates and false alarmsReading · 4 min
- Bayes' ruleReading · 4 min
- Chance that a flagged SMS is a scamExercise · 12 min
Random variables6 lessons
- Discrete and continuousReading · 3 min
- Expected valueReading · 4 min
- Binomial distributionReading · 4 min
- Poisson distributionReading · 4 min
- Normal distribution with scipyReading · 4 min
- Expected profit from a promoExercise · 12 min
Simulation6 lessons
- Simulating with randomReading · 3 min
- Seeds and reproducibilityReading · 3 min
- Monte Carlo estimatesReading · 4 min
- Simulating with NumPyReading · 4 min
- Simulating a queue at the stationReading · 4 min
- Simulate 1,000 days at the stationExercise · 14 min
Sampling6 lessons
- Population and sampleReading · 4 min
- Sampling biasReading · 4 min
- The sampling distributionReading · 4 min
- The central limit theoremReading · 4 min
- Standard errorReading · 4 min
- CLT with diceExercise · 12 min
Confidence intervals6 lessons
- What an interval saysReading · 4 min
- 95% intervals for a meanReading · 4 min
- Interval width and sample sizeReading · 3 min
- Intervals for a proportionReading · 4 min
- BootstrappingReading · 4 min
- Interval for the average fareExercise · 12 min
Hypothesis tests9 lessons
- Null and alternativeReading · 3 min
- Testing by shufflingReading · 4 min
- p-values, plainlyReading · 4 min
- What a p-value does not meanReading · 4 min
- The t-testReading · 4 min
- Chi-square testReading · 4 min
- Type I and Type II errorsReading · 4 min
- p-hackingReading · 4 min
- Did the new route cut waiting time?Exercise · 14 min
A/B testing7 lessons
- Designing an A/B testReading · 4 min
- Sample sizeReading · 4 min
- Random assignmentReading · 4 min
- Reading the resultReading · 4 min
- Practical and statistical significanceReading · 3 min
- Peeking and many testsReading · 4 min
- Which promo SMS wins?Exercise · 14 min
Correlation and regression9 lessons
- Scatter as textReading · 4 min
- CorrelationReading · 4 min
- Correlation is not causationReading · 4 min
- Fitting a line (least squares)Reading · 4 min
- Reading slope and interceptReading · 4 min
- R²Reading · 4 min
- Residuals and predictionsReading · 4 min
- Regression with scipyReading · 3 min
- Fare vs distance lineExercise · 12 min
Final project4 lessons
- Reporting a result honestlyReading · 4 min
- Project brief: Kasoa mock resultsReading · 4 min
- Final project: Kasoa mock results reportExercise · 15 min
- Final quizQuiz · 10 min
Reviews
No reviews yet.
Comments
Log in to join the conversation.
Loading comments...