Hypothesis testing in Python

Open to
Government analysts
Training category
Type of training
Four to six hours
Analysis Function Capability Team
Analysis Function Capability Team


This is a short self-study course on hypothesis testing. It mainly covers the type of errors while:

  • conducting a hypothesis test
  • calculating the probability of those errors
  • conducting a power analysis to find the power
  • sample size of a test

The prerequisite of this course is the ‘Introduction to Python‘ course. Also, the knowledge of statistical tests (such as t-test and chi-square test) is desirable.

Learning outcomes

By the end of the session, participants will:

  • understand what Type I and Type II errors are
  • know the relationship between alpha and Type I error and calculate the probability of Type I error
  • know why effect size is required and calculate the effect size
  • know the relationship between Beta and Type II error
  • calculate the power of the test and calculate the probability of Type II error
  • calculate the sample size given alpha, power and effect size

How to book

Please use your Learning Hub account to access the course online. Alternatively, please contact Data.Science.Campus.Faculty@ons.gov.uk.


If you would like more information about this course, please email Data.Science.Campus.Faculty@ons.gov.uk. 

Related courses