Article complete

Understanding Type I And Type II Errors

A doctor smiling at an older man, who looks surprised, with a speech bubble saying "You're pregnant!" above them.

Key takeaways

  • Hypothesis testing determines the validity of a claim about a population based on sample data.
  • The null hypothesis is tested against the alternative hypothesis to identify which is correct.
  • A Type I error occurs when a true null hypothesis is incorrectly rejected.
  • Conversely, a Type II error happens when a false null hypothesis is erroneously accepted.

Takeaways drafted with AI from the article text.

Starting on a lighter note, let’s dig into one area called hypothesis testing. In statistics, hypothesis testing is used to decide whether a particular claim made on a population of data is true or false from a sample available. Just like the image above, a man cannot be pregnant (biologically), which is a claim made on pregnancy in humans. In hypothesis testing, this factual statement forms the ‘null hypothesis’ where it is tested for validity (right or wrong).   Generally, the norm in hypothesis testing is to reject the null hypothesis. This is because the null hypothesis is the basis for validating what we are testing. The opposing statement called ‘alternative hypothesis’ contests with the null hypothesis. Altogether, hypothesis testing combines both these arguments to check which is right or wrong in the sample data.

Type I Error

In formal terms, if a null hypothesis is rejected even when it is true and the alternative hypothesis is accepted, this error is known as a Type I error. With respect to the cover image, ‘man cannot be pregnant’ is the null hypothesis and ‘man is pregnant’ is the alternative hypothesis. Despite this fact, if the doctor rejects the statement, he commits a Type I error. In other words, the man is considered pregnant!

Type II Error

If the null hypothesis is accepted when it is false and the alternate hypothesis is rejected, this leads to what is known as Type II error. Again, back to the image, ‘woman is not pregnant’ is the null hypothesis and ‘woman is pregnant’ is the alternative hypothesis. Suppose the doctor says the lady is not pregnant even when she is, typically leads to Type II error where the null hypothesis is deemed right and alternative hypothesis is said to be wrong.

How to Reduce These Errors

In the case of Type I error, a smaller level of significance will generally help. Before beginning with hypothesis testing, this feature is considered if the null hypothesis is assumed to be true. In Type II error, another concept called Power, in addition to the significance level, helps overcome the effect of this error (more about this can be found here). Overall, before running a statistical experiment, a good deal of right data is suggested for eliminating differences statistically.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

statistical significance · 5 stories
  1. You are here: Understanding Type I And Type II Errors
  2. Beware Of Statistical Significance: What The P value Really Tells Us
  3. What Is Dempster-Shafer Theory And Can It Fill The Void Left By Bayesian Models?
  4. A Tutorial on Survival Analysis for Beginners
  5. How to use the Chi-Square Test for two categorical variables?
About the author

Contributor

I research and cover latest happenings in data science. My fervent interests are in latest technology and humor/comedy (an odd combination!). When I'm not busy reading on these subjects, you'll find me watching movies or playing badminton.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.