Skip to main content
HomePython

Course

Hypothesis Testing in Python

IntermediateSkill Level
4.7+
3,242 reviews
Updated 12/2025
Learn how and when to use common hypothesis tests like t-tests, proportion tests, and chi-square tests in Python.
Start Course for Free
PythonProbability & Statistics4 hr15 videos50 Exercises3,750 XP58,153Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

Hypothesis testing lets you answer questions about your datasets in a statistically rigorous way. In this course, you'll grow your Python analytical skills as you learn how and when to use common tests like t-tests, proportion tests, and chi-square tests. Working with real-world data, including Stack Overflow user feedback and supply-chain data for medical supply shipments, you'll gain a deep understanding of how these tests work and the key assumptions that underpin them. You'll also discover how non-parametric tests can be used to go beyond the limitations of traditional hypothesis tests.The videos contain live transcripts you can reveal by clicking "Show transcript" at the bottom left of the videos. The course glossary can be found on the right in the resources section. To obtain CPE credits you need to complete the course and reach a score of 70% on the qualified assessment. You can navigate to the assessment by clicking on the CPE credits callout on the right.

Feels like what you want to learn?

Start Course for Free

What you'll learn

  • Differentiate between Type I and Type II errors and their consequences for statistical conclusions
  • Distinguish between parametric and non-parametric approaches based on assumptions of normality, sample size, and independence
  • Evaluate p-values, confidence intervals, and standardized test statistics produced by Python libraries to determine whether to reject the null hypothesis at a specified alpha
  • Identify the suitable hypothesis test in Python (z-test, t-test, ANOVA, proportion test, chi-square, or non-parametric) for a given research question, data type, and sample conditions
  • Recognize the correct null and alternative hypotheses, significance level, and tail direction for typical analytical scenarios

Prerequisites

Sampling in Python
1

Hypothesis Testing Fundamentals

How does hypothesis testing work and what problems can it solve? To find out, you’ll walk through the workflow for a one sample proportion test. In doing so, you'll encounter important concepts like z-scores, p-values, and false negative and false positive errors.
Start Chapter
2

Two-Sample and ANOVA Tests

3

Proportion Tests

Now it’s time to test for differences in proportions between two groups using proportion tests. Through hands-on exercises, you’ll extend your proportion tests to more than two groups with chi-square independence tests, and return to the one sample case with chi-square goodness of fit tests.
Start Chapter
4

Non-Parametric Tests

Hypothesis Testing in Python
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 3,242 reviews
81%
17%
2%
0%
0%
  • BELİZ
    11 hours ago

  • Oliver
    yesterday

  • Jasmine
    yesterday

  • Juan Esteban
    yesterday

  • Humberto
    2 days ago

    I have learned more about Hypothesis testing in Python. On this chapter we apply most of subject learned with

  • Diego
    2 days ago

BELİZ

Oliver

Jasmine

FAQs

Is this course suitable for beginners?

This is an intermediate-level Python course. You should be comfortable with pandas, basic Python, and introductory statistics before starting.

What types of hypothesis tests does this course cover?

You will learn t-tests, proportion tests, chi-square tests, ANOVA, and non-parametric tests, along with the assumptions behind each one.

What datasets are used in this course?

You work with real-world data including Stack Overflow user feedback and supply-chain data for medical supply shipments.

When would I use hypothesis testing in my work?

Hypothesis testing is used by data analysts and data scientists to make statistically rigorous decisions, such as comparing group performance or validating A/B test results.

How long does this course take to complete?

The course has 4 chapters and 50 exercises. Most learners finish it in about 3.5 hours.

Join over 19 million learners and start Hypothesis Testing in Python today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.