Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Understanding Type I and Type II Errors: A Quick Visual Guide

datarekha 1 min read

In statistics and machine learning, every test or model can be wrong in two distinct ways.

  • A Type I error (false positive) occurs when you reject a true null hypothesis — essentially, you see an effect that isn't there. Think of a smoke alarm that goes off when there's no fire.
  • A Type II error (false negative) happens when you fail to reject a false null hypothesis — you miss a real effect. This is like a smoke alarm that stays silent during an actual fire.

The stakes determine your threshold. In a life‑or‑death scenario, you might accept more false alarms to avoid missing a real danger. In a courtroom, you'd rather let a guilty person go free than convict an innocent one.

This visual explainer highlights the trade‑off: you can't eliminate both errors at once — you choose which risk is acceptable based on the consequences.

A smoke alarm must never miss; a court should rarely falsely convict.

React