Statistical Thinking in Python (Part 1)
Explore datasets with plots and summary statistics, then simulate discrete and continuous probability distributions in Python as a base for inference.
This course lays the groundwork for statistical inference in Python, so that the conclusions you draw from a dataset are clear and quantitative. Because data seldom allow anything to be said with absolute certainty, you learn to explore a dataset with plots and a few descriptive numbers, then describe it in the language of probability by simulating the Binomial, Poisson, Normal and Exponential distributions with random numbers.
What You Will Achieve
- Plot a dataset as a histogram, bee swarm plot or ECDF and read what each view reveals
- Describe a dataset in a few numbers using means, medians, percentiles, variance and the Pearson correlation coefficient
- Use the np.random module to simulate Bernoulli trials and draw samples that estimate how often an event occurs
- Match a real-world story to a probability distribution and simulate it to estimate the chances of an outcome
Program Overview
Graphical and Quantitative Exploratory Data Analysis
Exploring a dataset before any inference, first by plotting all of the data and then by capturing its main features with summary statistics.
- Histograms, bin counts and axis labels
- Bee swarm plots and ECDFs
- Mean, median, percentiles and box plots
- Variance, covariance and Pearson correlation
Thinking Probabilistically About Discrete Variables
Why inference relies on probability, and how random number generators let you simulate quantities that take only certain values.
- Hacker statistics with np.random
- Bernoulli trials and bank defaults
- The Binomial distribution and its PMF
- Poisson processes and baseball no-hitters
Thinking Probabilistically About Continuous Variables
Probability density and cumulative distribution functions for values that can take any fraction, applied to the Normal and Exponential distributions.
- Interpreting PDFs and CDFs
- Normal distribution properties and warnings
- Belmont Stakes results and Secretariat’s record
- The Exponential distribution and waiting times
Certificate Awarded (Paid)
Job Outlook
Plotting, summarizing and simulating data in Python is used in data analytics work, and it forms the base for the statistical inference techniques that the second part of this series takes up.
Good for: Python users who want to explore datasets and reason about probability through simulation before they study formal statistical inference.
Keep in mind: It stops at describing data and probability distributions; drawing conclusions with inference techniques is the subject of the second part of the series.
Bottom line: Simulation and real examples such as baseball no-hitters and Belmont Stakes times make probability distributions concrete in a short, exercise-driven format.
Frequently Asked Questions
What real examples do the exercises draw on?
The exercises use the iris data for plotting, a bank default scenario for Bernoulli trials, baseball no-hitters for the Poisson distribution, and Belmont Stakes race results, including Secretariat's record, for the Normal and Exponential distributions.
How does the course use random number generators?
The np.random module supplies the random numbers behind simulated Bernoulli trials and samples from the Binomial, Poisson, Normal and Exponential distributions. The lessons call this approach hacker statistics and return to it at the end: if you can describe a story, you can simulate it.
How are discrete and continuous variables treated differently?
Discrete variables take only certain values, such as integers, and are described with probability mass functions. Continuous variables can take any fractional value, so the lessons move to probability density and cumulative distribution functions; most principles carry over, with a few subtleties.
Please log in to report a problem with this page.


There are no reviews yet.