Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Statistics with Python for Beginners: Data & Probability
New
1 students

Statistics with Python for Beginners: Data & Probability

Learn statistics and probability by coding: mean, bell curve, confidence intervals, A/B tests and regression in Jupyter
Last updated 11/2026
English
English

What you'll learn

  • Describe any data set with the mean, median, standard deviation, z-scores, box plots and outliers
  • Calculate probabilities with two-way tables and the binomial, Poisson and normal distributions
  • Use expected value to judge whether a game, deal or bet is worth it
  • Build confidence intervals, find the margin of error and the sample size a poll needs
  • Run hypothesis tests, read p-values and decide A/B tests and before-and-after studies
  • Measure correlation, fit a regression line and predict from data in Python and Jupyter

Course content

5 sections • 20 lectures • 1h 44m total length
  • Rain Forecast: 20% a Day for 5 Days. Will You Get Wet?5:22

    Not 20% and not 100%: the chance of rain on at least one of the 5 days is 67.2%. Each day is 80% dry, so all 5 days stay dry with probability 0.8 × 0.8 × 0.8 × 0.8 × 0.8 = 0.328, and 1 − 0.328 = 0.672. The rule is P(at least one) = 1 − (1 − p)^n.

    In this lecture:

    • Why 20% a day does not add up to 100%
    • The flip: at least one = 1 minus the chance of none
    • And means multiply: 0.8 to the power 5
    • Compute it in the free Statistics app and in a Python notebook
  • Install the Free Statistics App (Windows and Linux)4:56

    On the Statistics page, under Get it, download the Windows .zip or the Linux .tar.gz. Extract it and run the app; on Windows, if SmartScreen appears, click More info, then Run anyway. Then search 'mean', type five test scores 88, 92, 75, 95, 80 and press Compute: the class average is 86.

    In this lecture:

    • Find the Desktop app downloads in the Get it section
    • Windows: Extract All, open the folder, run the .exe, More info then Run anyway
    • Linux: Extract Here, or curl, tar xzf and ./ in a terminal
    • PowerShell: Invoke-WebRequest, Expand-Archive, start
  • Install Python and the Statistics Engine (pip, Jupyter, Colab)5:06

    Open a terminal (PowerShell on Windows, Ctrl+Alt+T on Linux), check python --version (3.10 or newer), run pip install statistics-ai999x, then pip install jupyterlab and jupyter lab, or skip installing and use Google Colab with %pip install statistics-ai999x. Then ask in plain English: the test scores 88, 92, 75, 95 and 80 have a mean of 86 and a median of 88.

    In this lecture:

    • Open a terminal on Windows (PowerShell) or Linux
    • Check python --version: 3.10 or newer
    • Install the statistics engine with one pip line and check the import
    • Open JupyterLab or Google Colab and run your first cells

Requirements

  • No statistics background needed: every idea is explained from scratch with pictures
  • Basic school math (adding, multiplying, percentages)
  • A Windows or Linux computer for the free desktop app; the Python parts also run in Google Colab in any web browser
  • No Python experience required: every line of code is shown and explained

Description

This course contains the use of artificial intelligence.

The forecast says 20% chance of rain every day of your 5-day trip. What is the chance you get wet at least once? Most people guess 20%. The real answer is 67.2%. In this free beginner course you will learn to answer questions like that yourself, with statistics you can see, and with a few lines of Python in Jupyter.

Statistics with Python for Beginners teaches the ideas behind data, probability and real decisions from scratch. Every lecture starts with an everyday question and a real number: why the average salary can lie, which of two buses is more reliable, whether a positive medical test really means you are sick (often it does not: in our example the chance is only 8.3%), how a poll of 1068 people can be accurate to 3 points, and whether button A or button B wins an A/B test. You see each idea drawn and animated, you watch a desktop app solve it live, and then you solve it in a Jupyter notebook.

All the tools are free. You will use the free AI999X Statistics engine: a desktop app for Windows and Linux with 112 calculations, live charts and a question box, and the same engine as a Python package (pip install statistics-ai999x). You can even ask it questions in plain English inside Jupyter, and it shows the formula and every step of the answer. Every number in the course is computed by the engine, so what you see on screen is exactly what you get on your own computer.

What you will learn

  • Descriptive statistics: mean, median, standard deviation, range, z-scores, box plots, outliers and weighted averages
  • Probability: two-way tables and conditional probability, the binomial distribution, the Poisson distribution, the normal distribution (bell curve) and expected value
  • Inferential statistics: sampling distributions and the standard error, confidence intervals and margin of error, sample size, hypothesis testing, p-values, A/B testing and the paired t-test
  • Correlation and linear regression: measuring a relationship and making a prediction from data
  • Statistics in Python: solving every problem in Jupyter or Google Colab, including plain-English questions

What you build

The course ends with a small real-world data analysis project in Jupyter. A coffee cart has 10 days of sales: you describe the data, find and remove an outlier, compute a confidence interval for a normal day, measure the link with the weather and predict how many cups to prepare tomorrow. It ties together everything from the course in one notebook you can reuse for your own data.

Who this course is for

  • Complete beginners who want statistics to finally make sense
  • High school and university students taking an intro statistics course, including AP Statistics topics
  • Python beginners who want practical data analysis with real numbers
  • Professionals who read polls, reports and A/B tests and want to judge them with confidence

How the course works

There are 20 short lectures of about 4 minutes in 5 sections: Start Here, Describe Your Data, Chance and Probability, From Samples to Decisions, and Relationships, Predictions and Final Project. Lectures 2 and 3 show every install step on screen: the free AI999X Statistics engine as a desktop app, then Python, the package and Jupyter, or Google Colab with nothing to install. The Jupyter notebook of every lecture is included as a downloadable resource.

Frequently asked questions

  • Is the course free? Yes. The course and every tool it uses are free, including the free AI999X Statistics engine.
  • Do I need experience in statistics or Python? No. Every idea is explained from scratch with pictures, and every line of code is shown and explained. School math is enough.
  • Does it work offline? Yes. The desktop app and the Python package run fully on your own computer; nothing is sent anywhere.
  • Which computers does it work on? The desktop app runs on Windows 10 or 11 and 64-bit Linux. The Python parts run on Windows and Linux with Python 3.10 or newer, or in Google Colab in any web browser.
  • Is this an official exam preparation course? No. It covers the core topics of a first statistics course with worked examples, but it is not tied to any exam.

If you have ever looked at an average, a poll or a test result and wondered whether to trust it, enroll now and start with lecture 1: the rain forecast.

Who this course is for:

  • Complete beginners who want statistics and probability to finally make sense
  • High school and university students in an intro statistics course (AP Statistics topics)
  • Python beginners who want practical data analysis projects with real numbers
  • Professionals who read polls, reports and A/B tests and want to judge them