Member-only story

Hypothesis Testing Made Easy: Understanding P-values, Significance Levels, and Type I & Type II Errors

Sandra Machon
5 min readOct 12, 2023
Photo by Carlos Muza on Unsplash

Hypothesis testing is a fundamental statistical concept that helps us make informed decisions based on data. Whether you’re a data scientist, a researcher, or simply interested in understanding the world around you, grasping the basics of hypothesis testing is incredibly valuable. In this article, we will break down the concept of hypothesis testing, including p-values, significance levels, and type I and type II errors, using real-world examples to illustrate the process.

The Basics of Hypothesis Testing

At its core, hypothesis testing is a way to make inferences about a population based on a sample of data. It involves two hypotheses:

  1. Null Hypothesis (H0): This is the default or status quo assumption. It suggests that there is no effect, no difference, or no relationship in the population (i.e. “There’s no difference between patients taking medicine A and patients taking placebo”).
  2. Alternative Hypothesis (H1 or Ha): This is the statement you want to test, suggesting that there is an effect, a difference, or a relationship in the population (i.e. “There is a difference between patients taking medicine A and patients taking placebo”).

--

--

Sandra Machon
Sandra Machon

No responses yet