Daily Dose of Data Science

Daily Dose of Data Science

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
Confidence Interval and Prediction Interval Are Not The Same
Copy link
Facebook
Email
Notes
More
User's avatar
Discover more from Daily Dose of Data Science
A free newsletter for continuous learning about data science and ML, lesser-known techniques, and how to apply them in 2 minutes. We keep things no-fluff. Join 100,000+ data scientists from top companies like Google, NVIDIA, Microsoft, Uber, etc.
Already have an account? Sign in

Confidence Interval and Prediction Interval Are Not The Same

Here's the difference and what makes them important.

Avi Chawla's avatar
Avi Chawla
May 31, 2023
16

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
Confidence Interval and Prediction Interval Are Not The Same
Copy link
Facebook
Email
Notes
More
Share

Contrary to common belief, linear regression NEVER predicts an actual value.

Instead, it models the relationship between the input and an average related to the outcome.

Thus, there's always some uncertainty involved, and it is important to communicate it.

Confidence interval and prediction interval help us capture this uncertainty.

Confidence interval:

  • tells the range of mean outcome at a given input.

  • answers the question: "If we know the input, what is the uncertainty around the average value of the outcome."

Thus, a 95% confidence interval says:

  • given an input, we are 95% confident that the actual mean will lie in that region.

Confidence interval and prediction interval (Image Source: Here)

Prediction interval, however:

  • tells the range of possible values the outcome variable may take.

  • answers the question: "If we know the input, what is the actual range of the outcome variable that we may observe."

For instance, a 95% prediction interval tells us that:

  • given an input, 95% of observed values will lie in that region.

So remember...

  • Confidence interval and prediction interval are NOT the same.

  • They depict different uncertainties of the outcome variable.

  • Confidence interval captures the range of the mean outcome around an input.

  • Prediction interval captures the range of the actual values of the outcome around an input.

  • Prediction interval is typically wider than confidence interval.

👉 Over to you: What does a 100% confidence interval and prediction interval will look like?

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (550+ pages) with 320+ tips.


Latest full articles

If you’re not a full subscriber, here’s what you missed last month:

  • You Cannot Build Large Data Projects Until You Learn Data Version Control!

  • Why Bagging is So Ridiculously Effective At Variance Reduction?

  • Sklearn Models are Not Deployment Friendly! Supercharge Them With Tensor Computations.

  • Deploy, Version Control, and Manage ML Models Right From Your Jupyter Notebook with Modelbit

  • Gaussian Mixture Models (GMMs): The Flexible Twin of KMeans.

  • Bayesian Optimization for Hyperparameter Tuning.

To receive all full articles and support the Daily Dose of Data Science, consider subscribing:

I want to read full articles.


👉 Tell the world what makes this newsletter special for you by leaving a review here :)

Review Daily Dose of Data Science

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science

Tamiris Crepalde's avatar
Isaac Barboza's avatar
Luis Gamboa's avatar
Jørgen Melau's avatar
Jonathan Moreno Narváez's avatar
16 Likes
16

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
Confidence Interval and Prediction Interval Are Not The Same
Copy link
Facebook
Email
Notes
More
Share

Discussion about this post

User's avatar
FREE Daily Dose of Data Science PDF
Collection of posts on core DS/ML topics.
Apr 20, 2023 â€¢ 
Avi Chawla
566

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
FREE Daily Dose of Data Science PDF
Copy link
Facebook
Email
Notes
More
22
15 DS/ML Cheat Sheets
Single frame summaries of must-know DS/ML concepts and techniques.
Sep 22, 2024 â€¢ 
Avi Chawla
121

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
15 DS/ML Cheat Sheets
Copy link
Facebook
Email
Notes
More
You Will NEVER Use Pandas’ Describe Method After Using These Two Libraries
Generate a comprehensive data summary in seconds.
Feb 6, 2024 â€¢ 
Avi Chawla
228

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
You Will NEVER Use Pandas’ Describe Method After Using These Two Libraries
Copy link
Facebook
Email
Notes
More
14

Ready for more?

© 2025 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.