

Discover more from Daily Dose of Data Science
Confidence Interval and Prediction Interval Are Not The Same
Here's the difference and what makes them important.
FREE 3-Day Object Detection Challenge
⭐️ Build your own object detection model from start to finish!
Hey friends! Lately, I have been in touch with Data-Driven Science. They offer self-paced and hands-on learning on practical data science challenges.
A 3-day object detection challenge is available for free. Here, you’ll get to train an end-to-end ML model for object detection using computer vision techniques.
The challenge is guided, meaning you don’t need any prior expertise. Instead, you will learn as you follow the challenge.
Also, you’ll get to apply many of my previous tips around Image Augmentation, Run-time optimization, and more.
All-in-all, it will be an awesome learning experience.
👉 Register for the challenge here: https://datadrivenscience.com/free-object-detection-challenge/.
Let’s get to today’s post now.
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.

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?
👉 Read what others are saying about this post on LinkedIn and Twitter.
👉 Tell the world what makes this newsletter special for you by leaving a review here :)
👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.
👉 If you love reading this newsletter, feel free to share it with friends!
👉 Sponsor the Daily Dose of Data Science Newsletter. More info here: Sponsorship details.
Find the code for my tips here: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.