Skip to content
Tutorials Center
My learning

Topics

Statistics and Data Handling Tutorial

Learn Statistics and Data Handling step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and practice.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Statistics? Learn what statistics is, why data matters, and how the cycle of asking, collecting, summarizing and concluding turns numbers into answers.
  2. 2 Types of Data Learn the difference between categorical and numerical data, and between discrete and continuous variables, with examples and a Python classifier.
  3. 3 Populations and Samples Understand population, sample, census, parameter and statistic, and see in a simulation why a sample estimate changes from one sample to the next.
  4. 4 Using Python as a Statistics Calculator A gentle Python primer for statistics: store data in lists, use sum, len, sorted and a counter, and draw your first plot, with no prior coding needed.

Collecting and Displaying Data

  1. 5 Collecting Data: Surveys, Sampling and Bias Learn how to design fair survey questions and choose a sample: simple random, systematic, stratified and convenience sampling, plus common sources of bias.
  2. 6 Frequency Tables and Tally Charts Organize raw data into tally charts and frequency tables, then add relative and cumulative frequency, grouped class intervals and a Python table builder.
  3. 7 Bar Charts and Pie Charts Learn to draw and read bar charts, dual bar charts and pie charts, calculate pie angles, and spot misleading graphs, with matplotlib examples to run.
  4. 8 Histograms and Grouped Data Learn to draw histograms for continuous data, use frequency density for unequal class widths, and read the shape of a distribution, with Python examples.
  5. 9 Stem-and-Leaf Diagrams and Line Graphs Build stem-and-leaf diagrams with keys, back-to-back versions, and line graphs for data over time, including trend, seasonality and a moving average.

Averages and Spread

  1. 10 Mean, Median and Mode Learn to calculate the mean, median and mode, decide which average fits your data, and see how an outlier changes each one, with Python to check your work.
  2. 11 Averages from Frequency Tables Find the mean, median and mode from a frequency table, then estimate them from grouped data using midpoints, modal class and median class interpolation.
  3. 12 Range, Quartiles and the Interquartile Range Measure spread with the range, quartiles and interquartile range. Learn the median-of-halves method, percentiles, and why software may give slightly different quartiles.
  4. 13 Variance and Standard Deviation Understand variance and standard deviation step by step: population versus sample formulas, why we divide by n - 1, and how to compute them in Python.
  5. 14 Box Plots and Outliers Draw and interpret box-and-whisker plots from the five-number summary, apply the 1.5 times IQR rule to find outliers, and compare groups side by side.

Probability Basics

  1. 15 The Probability Scale and the Basic Rule Learn what probability means, how to place events on the 0 to 1 scale, and how to calculate the probability of an event with equally likely outcomes.
  2. 16 Sample Spaces and Counting Outcomes List every possible outcome with sample space diagrams, two-way tables and tree diagrams, then use them to find probabilities for coins, dice and spinners.
  3. 17 Relative Frequency and Experiments Estimate probabilities from experiments with relative frequency, compare them with theory, and see the law of large numbers in simulations you can run.
  4. 18 Complements and Mutually Exclusive Events Use the complement rule P(not A) = 1 - P(A), the addition rule for mutually exclusive events, and the general or-rule with Venn diagrams and Python checks.

Compound Events and Conditional Probability

  1. 19 Conditional Probability Learn what P(A given B) means, how to compute it from counts and two-way tables, and why knowing extra information changes a probability.
  2. 20 The Multiplication Rule and Tree Diagrams Use P(A and B) = P(A) x P(B | A) and tree diagrams to find probabilities of sequences of events, with and without replacement.
  3. 21 Independent Events Learn how to test whether events are independent, why independent is not the same as mutually exclusive, and how to compute 'at least one' chances.
  4. 22 Bayes' Theorem Reverse a conditional probability with Bayes' theorem, use natural frequencies, and see why a positive test for a rare condition is often a false alarm.

Probability Distributions

  1. 23 Discrete Random Variables and Expected Value Learn probability distributions for discrete random variables, how to compute expected value, variance and standard deviation, and how they scale.
  2. 24 The Binomial Distribution Learn when to use the binomial distribution, the formula C(n,k) p^k (1-p)^(n-k), its mean and variance, and how to compute probabilities in code.
  3. 25 The Normal Distribution Meet the bell curve: mean, standard deviation, the 68-95-99.7 rule, and how areas under the curve give probabilities for continuous data.
  4. 26 Z-Scores and the Standard Normal Distribution Standardize values with z = (x - mean) / sd, find probabilities and percentiles for normal data, and approximate binomial probabilities with a continuity correction.

Correlation and Regression

  1. 27 Scatter Plots and Correlation Learn to draw and read scatter plots, describe direction, form and strength, spot outliers, and understand why correlation does not prove causation.
  2. 28 The Pearson Correlation Coefficient Compute Pearson's r step by step from deviations, interpret its size and sign, see how outliers affect it, and compare your calculation with NumPy.
  3. 29 The Least-Squares Regression Line Find the line of best fit y = a + bx using least squares, interpret slope and intercept, make predictions, and avoid extrapolation mistakes.
  4. 30 Residuals and R-Squared Learn how to compute residuals, read a residual plot to check a linear model, understand R-squared, and recognize influential points.

Sampling and Inference Basics

  1. 31 Populations, Samples and Sampling Methods Understand parameters vs statistics, simple random, systematic, stratified, cluster and convenience sampling, and how bias spoils a sample.
  2. 32 Sampling Distributions and the Central Limit Theorem See how sample means vary, why their spread is sigma over root n, and why they look normal even when the population does not. Includes simulations.
  3. 33 Confidence Intervals Build 95% confidence intervals for means and proportions, interpret them correctly, understand margin of error, and see coverage in a simulation.
  4. 34 Hypothesis Testing Basics Learn the logic of a significance test: null and alternative hypotheses, test statistic, p-value, significance level, and Type I and II errors, with runnable examples.

Projects and Practice

  1. 35 Practice Set: Probability and Distributions Ten practice problems on conditional probability, trees, Bayes, binomial and normal distributions, with a code checker so you can test your own answers.
  2. 36 Practice Set: Regression and Inference Practice correlation, least-squares regression, confidence intervals and hypothesis tests with eight problems and runnable code to check your answers.
  3. 37 Mini-Project: Analyze a Dataset Run a complete statistical analysis in Python: summary statistics, scatter plot, correlation, regression, confidence interval and a hypothesis test, then write a conclusion.