Questions tagged [prediction-interval]

A prediction interval (also forecast interval) is an interval that covers the future (or otherwise unknown, but *observable*) value of a random variable with some prespecified probability.

Filter by
Sorted by
Tagged with
126 votes
6 answers
197k views

Difference between confidence intervals and prediction intervals

For a prediction interval in linear regression you still use $\hat{E}[Y|x] = \hat{\beta_0}+\hat{\beta}_{1}x$ to generate the interval. You also use this to generate a confidence interval of $E[Y|x_0]$....
question's user avatar
  • 1,437
64 votes
6 answers
71k views

What is the difference between estimation and prediction?

For example, I have historical loss data and I am calculating extreme quantiles (Value-at-Risk or Probable Maximum Loss). The results obtained is for estimating the loss or predicting them? Where can ...
melon's user avatar
  • 641
57 votes
2 answers
39k views

Prediction interval for lmer() mixed effects model in R

I want to get a prediction interval around a prediction from a lmer() model. I have found some discussion about this: http://rstudio-pubs-static.s3.amazonaws.com/...
hossibley's user avatar
  • 867
37 votes
2 answers
25k views

Bootstrap prediction interval

Is there any bootstrap technique available to compute prediction intervals for point predictions obtained e.g. from linear regression or other regression method (k-nearest neighbour, regression trees ...
Michael M's user avatar
  • 11.2k
36 votes
11 answers
52k views

How to determine the confidence of a neural network prediction?

To illustrate my question, suppose that I have a training set where the input has a degree of noise but the output does not, for example; ...
John's user avatar
  • 461
32 votes
1 answer
18k views

How to calculate the prediction interval for an OLS multiple regression?

What is the algebraic notation to calculate the prediction interval for multiple regression? It sounds silly, but I am having trouble finding a clear algebraic notation of this.
Michael's user avatar
  • 673
24 votes
1 answer
9k views

Linear regression prediction interval

If the best linear approximation (using least squares) of my data points is the line $y=mx+b$, how can I calculate the approximation error? If I compute standard deviation of differences between ...
bmx's user avatar
  • 241
24 votes
2 answers
3k views

What non-Bayesian methods are there for predictive inference?

In Bayesian inference a predictive distribution for future data is derived by integrating out unknown parameters; integrating over the posterior distribution of those parameters gives a posterior ...
Scortchi - Reinstate Monica's user avatar
23 votes
1 answer
14k views

How to compute prediction bands for non-linear regression?

The help page for Prism gives the following explanation for how it computes the prediction bands for non-linear regression. Please excuse the long quote, but I am not following the second paragraph (...
Joe Listerr's user avatar
23 votes
1 answer
871 views

Prediction interval based on cross-validation (CV)

In the text books and youtube lectures I learned a lot about iterative models such as boosting, but I never saw anything about deriving a prediction interval. Cross validation is used for the ...
Kasper's user avatar
  • 3,209
22 votes
3 answers
10k views

Obtaining a formula for prediction limits in a linear model (i.e.: prediction intervals)

Let's take the following example: set.seed(342) x1 <- runif(100) x2 <- runif(100) y <- x1+x2 + 2*x1*x2 + rnorm(100) fit <- lm(y~x1*x2) This creates a ...
Tal Galili's user avatar
  • 20.8k
22 votes
2 answers
16k views

Computing prediction intervals for logistic regression

I would like to understand how to generate prediction intervals for logistic regression estimates. I was advised to follow the procedures in Collett's Modelling Binary Data, 2nd Ed p.98-99. After ...
carbocation's user avatar
19 votes
1 answer
11k views

How to calculate prediction intervals for LOESS?

I have some data that I fitted using a LOESS model in R, giving me this: The data has one predictor and one response, and it is heteroscedastic. I also added confidence intervals. The problem is ...
Gimelist's user avatar
  • 589
18 votes
2 answers
12k views

How to: Prediction intervals for linear regression via bootstrapping

I am having trouble to understand how to use bootstrapping to calculate prediction intervals for a linear regression model. Can somebody outline a step-by-step procedure? I searched via google but ...
Max's user avatar
  • 281
16 votes
1 answer
4k views

Prediction interval for binomial random variable

What is the formula (approximate or exact) for a prediction interval for a Binomial random variable? Assume $Y \sim \mathsf{Binom}(n, p)$, and we observe $y$ (drawn from $Y$). The $n$ is known. Our ...
Statseeker's user avatar
15 votes
2 answers
4k views

Prediction and Tolerance Intervals

I have a couple of questions for prediction and tolerance intervals. Let's agree on the definition of the tolerance intervals first: We are given a confidence level, say 90%, the percentage of the ...
Ioannis Souldatos's user avatar
15 votes
1 answer
5k views

Calculate prediction interval for ridge regression?

Does anyone know how to compute the prediction interval for ridge regression? and what's its relation with prediction interval of OLS regression?
Masood Moshref Javadi's user avatar
14 votes
2 answers
16k views

Shape of confidence and prediction intervals for nonlinear regression

Are the confidence and prediction bands around a non-linear regression supposed to be symmetrical around the regression line? Meaning they do not take on the hour-glass shape as in the case of the ...
Serge's user avatar
  • 141
13 votes
2 answers
2k views

Can we make probabilistic statements with prediction intervals?

I've read through the many excellent discussions on the site regarding interpretation of confidence intervals and prediction intervals, but one concept is still a bit puzzling: Consider the OLS ...
kevinykuo's user avatar
  • 621
13 votes
1 answer
5k views

How to find a GBM Prediction Interval

I am working with GBM models using the caret package and looking to find a method to solve the prediction intervals for my predicted data. I have searched extensively but only come up with a few ...
CooperBuckeye05's user avatar
13 votes
1 answer
19k views

How to calculate the confidence interval for time-series prediction?

I have a time series (let's say $X_1$ to $X_n$), and I need to predict the next sample (let say $X_{n+1}, X_{n+2},\dots, X_{n+k}$) using model such as neural network, or multiple linear regression. At ...
Mashud's user avatar
  • 231
12 votes
1 answer
4k views

Prediction interval = credible interval?

I am wondering if prediction interval and credible interval evaluate the same thing. For instance with a linear regression, when you estimate the prediction interval of a fitted values, you estimate ...
droopy's user avatar
  • 121
12 votes
2 answers
9k views

Predicting Uncertainty in Random Forest Regression [duplicate]

Scenario: I'm trying to build a random forest regressor to accelerate probing a large phase space. I'm using python/scikit-learn to perform the regression, and I'm able to obtain a model that has a ...
Andrew's user avatar
  • 121
12 votes
0 answers
2k views

Empirical Prediction interval for time series forecast based on quantile regression

As Gardner notes "almost all point forecasts are wrong", so prediction intervals (PI) are necessary to quantify uncertainty and help us make informed decisions. There exists theoretical PI, and in ...
forecaster's user avatar
  • 7,703
11 votes
4 answers
5k views

Forecast accuracy metric that involves prediction intervals

I'm in the process of generating a time series forecast for a company's product revenue and am looking for some way to show accuracy over time - e.g. after say 6 months they want to see how the actual ...
Fergus's user avatar
  • 113
11 votes
2 answers
5k views

How do I calculate prediction intervals for random forest predictions?

In regression problems random forests yield a prediction for each case by averaging the results of each single tree in the forest. I would like to draw a 95% prediction interval around each prediction....
user7417's user avatar
  • 1,003
11 votes
2 answers
1k views

Predictive maintenace model to identify indication of failure before it happens

Situation I'm working on a problem where I'm using sensor data to predict machine failure before the failure happens and I need some advice on which methods to explore. Specifically, I want to ...
CurtLH's user avatar
  • 183
11 votes
1 answer
5k views

Prediction intervals for kNN regression

I would like compute prediction intervals for predictions made by kNN regression. I can't find any explicit reference to confirm, so my question is - is this approach to computing prediction intervals ...
inzl's user avatar
  • 1,263
10 votes
2 answers
48k views

Calculating Prediction Interval

I have the following data located here. I am attempting to calculate the 95% confidence interval on the mean purity when the hydrocarbon percentage is 1.0. In R, I enter the following. ...
idealistikz's user avatar
10 votes
2 answers
2k views

Random forests confidence intervals and prediction

This is a short simulation to check the coverage, when used as predictive intervals, of the random forest confidence intervals introduced in the paper: S. Wager, T. Hastie and B. Efron. Confidence ...
Zen's user avatar
  • 22.9k
10 votes
1 answer
1k views

Calculating prediction intervals when using cross validation

Are standard deviation estimates calculated via: $ s_N = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \overline{x})^2}. $ (http://en.wikipedia.org/wiki/Standard_deviation#Sample_standard_deviation) for ...
Christopher Dorian's user avatar
10 votes
0 answers
830 views

Bootstrap Prediction Interval: which residuals to use and which method?

I ask this question referring to the post: Bootstrap prediction interval, where a step by step method for calculating the prediction interval for linear regression models is explained. In the ...
user2683832's user avatar
9 votes
2 answers
8k views

Gaussian process prediction interval

How can the prediction interval of a Gaussian process be evaluated? I don't know how to estimate this interval though I can find a 95 % confidence interval for the mean line.
Wis's user avatar
  • 2,144
9 votes
2 answers
2k views

Does it make sense to generate prediction intervals for the estimates of a logistic regression?

Say I have a binary outcome of 0 or 1 and suppose I were to use logistic regression model to estimate the probability a new sample will have an outcome of 1. I have read answers (for example here: ...
Carl S's user avatar
  • 361
8 votes
2 answers
6k views

The "sum" of prediction intervals

Suppose I have a regression model which yields a couple of predicted values with their respective prediction intervals and the random quantity that I am interested in is the sum of (some subset) of ...
pmangg's user avatar
  • 81
8 votes
2 answers
2k views

Derivation of confidence and prediction intervals of predictions for probit and logit (and GLMs in general)

The derivation of the prediction interval for the linear model is quite simple: Obtaining a formula for prediction limits in a linear model . How to derive the confidence and prediction intervals for ...
user avatar
8 votes
1 answer
5k views

Forecasting Poisson, accuracy and prediction intervals

I'm trying to forecast Poisson data, divided in groups, of 1-26 months of data, depending on the group. Of the pooled data ...
R. White's user avatar
  • 113
8 votes
3 answers
3k views

Prediction Intervals with Heteroscedasticity

I am using R to perform linear regression. I have seen ways to calculate prediction intervals, but these depend on homoscedastic data. Is there a way to calculate prediction intervals with ...
Andy's user avatar
  • 83
8 votes
2 answers
817 views

Does a prediction interval have to contain the mean?

I am having a huge problem with a conceptual problem that I came up with. Say a company has a distribution that is highly skewed. Something similar to an exponential or lognormal only more extreme. ...
Anotherdream's user avatar
8 votes
1 answer
3k views

Does more variables mean tighter confidence intervals?

Assume that the true (but unknown) relationship in a population between $Y$ and $X1, X2, X3, X4$ is $$Y=\beta_0 + \beta_1 X_1 + \beta_2 X_2 + \beta_3 X_3 + \beta_4 X_4.$$ Further assume that I have a ...
Francis's user avatar
  • 589
8 votes
1 answer
1k views

Prediction intervals for the outcome of a logistic regression with binomial response

Suppose we have a logistic regression model: $$\begin{align} P(y=1\vert\mathbf{x}) &= p \\ \log\left(\frac{p}{1-p}\right) &= \boldsymbol{\beta}\mathbf{x} \end{align}$$ Given a random sample $...
DeltaIV's user avatar
  • 16.9k
8 votes
1 answer
1k views

Using an RMSE with derived confidence interval, to generate a prediction interval for an estimate

Previous questions have asked about creating prediction intervals for estimates derived from random forests or boosted regression trees, in a similar way to is easily achieved with linear regression ...
Erolgo's user avatar
  • 81
8 votes
0 answers
1k views

Detecting outliers using 95% PI around a natural spline fit

Please see the picture below: I wanted to mark the points that are not consistent with their adjacent points as outlier. What I did was to fit a natural spline fit to 1000 observations (the purple ...
Sam's user avatar
  • 2,144
7 votes
2 answers
5k views

Can a mathematically sound prediction interval have a negative lower bound?

I have used R to form a 95% prediction interval for the number of endemic species on an island. My lower bound is negative – is that mathematically sound? In the linear model used in the prediction ...
user42835's user avatar
7 votes
2 answers
3k views

Simple method of forecasting number of guests given current and historical data

I am trying to predict the number of guests a restaurant might serve in a meal period based on the volume of business that same day from prior years (3-5 years of data), trends for the same day of the ...
Christian's user avatar
7 votes
1 answer
2k views

How to you measure the accuracy of a model that gives quantile forecasts or distributions of forecasts?

I've come across some recent demand forecasting approaches that present methods where instead of generating just a point forecast, the model outputs a set of forecast quantiles, or a distribution of ...
Skander H.'s user avatar
  • 11.3k
7 votes
1 answer
207 views

Which binomial prediction interval works well for tail probabilities, i.e. $\hat{p}=1/n$ for large $n$

I'm working on a problem which has the following qualities. The available data $x$ is numerous - on the order of $10^6$ The CDF $F_X$ has support over nonnegative real numbers. I don't know $F_X$. We ...
Sycorax's user avatar
  • 86.3k
7 votes
1 answer
8k views

R: glm(...,family=poisson) plot confidence and prediction intervals [closed]

I could not find many information on how to plot a confidence interval and a prediction interval for a Poisson regression (for example with glm()). What are some ...
thezebra's user avatar
7 votes
2 answers
13k views

How does R calculate prediction intervals in the forecast package?

I have a large dataset with different factors that I want to forecast to the future. These forecasts I will then later on use as inputs for a Monte Carlo simulation. My idea would be to use arima ...
emil's user avatar
  • 71
7 votes
3 answers
449 views

Forecasting/predicting total sum of donations (following GLM with poisson family and log link)

I am trying to predict the total sum of donations that Monica will receive on https://www.gofundme.com/f/stop-stack-overflow-from-defaming-its-users/ I copied the data and summed for all days the ...
Sextus Empiricus's user avatar

1
2 3 4 5
11