Course contentsShow
← Data Science
Lesson 266 of 2,1458. Confidence IntervalsFree lesson

What is a Confidence Interval?

Understanding confidence intervals as a range estimate for population parameters with associated uncertainty.

What is a Confidence Interval?

What you'll learn: You'll discover how confidence intervals provide a range of plausible values for population parameters, complete with a measure of our uncertainty.

The Core Idea

Instead of claiming "the population mean is exactly 42," a confidence interval says: "We're 95% confident the population mean is between 39 and 45."

Think of it like this: Imagine you're trying to estimate the average height of all adults in a city by measuring a sample of 100 people. Your sample mean might be 170 cm, but you know that's just one estimate from one sample. If you took another sample, you'd get a slightly different mean. A confidence interval acknowledges this uncertainty by giving you a range rather than a single point.

Range + Confidence Level

A confidence interval has two parts:

  1. The range (e.g., 168 cm to 172 cm)
  2. The confidence level (e.g., 95%)

The confidence level tells you: "If we repeated this sampling process many times and calculated a confidence interval each time, about 95% of those intervals would contain the true population parameter."

Why It Matters

Confidence intervals are more honest than point estimates. They communicate both:

  • Our best guess (the center of the interval)
  • Our uncertainty (the width of the interval)

Wider intervals = more uncertainty. Narrower intervals = more precision. The width depends on your sample size, variability in your data, and chosen confidence level.

Key Takeaway: A confidence interval provides a range of plausible values for a population parameter (like μ or p), along with a confidence level that quantifies our uncertainty—making it far more informative than a single-point estimate.