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
London, Newport, Titchfield


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 and 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 on-line. Alternatively, please contact gss.capability@statistics.gov.uk.

Related courses