Standard Error of Prediction for Prediction Interval using Multiple Regression

michaelsmith559

Well-known Member
Joined
Oct 6, 2013
Messages
881
Office Version
  1. 2013
  2. 2007
I have calculated the standard error of prediction for linear regression following this video on youtube: https://www.youtube.com/watch?v=nFj7nAeGlLk
I have also watched his video on multiple regression and to calculate the standard error of prediction for multiple predictors, he multiplies excels regression standard error output by 10%. Okay for estimating, I guess. How could I use matrix multiplication to find the standard error of prediction for multiple regression. Thanks for any help.

Mike
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I have calculated the standard error of prediction for linear regression following this video on youtube: https://www.youtube.com/watch?v=nFj7nAeGlLk
I have also watched his video on multiple regression and to calculate the standard error of prediction for multiple predictors, he multiplies excels regression standard error output by 10%. Okay for estimating, I guess. How could I use matrix multiplication to find the standard error of prediction for multiple regression. Thanks for any help.

Mike
Run a multiple regression on the following augmented dataset and check the regression coeff etc results against the YouTube ones.
Note that the dependent variable (sales) should be the one on the left. Also note the new (Pred) column and the values in the additional row.

To do this (i.e SE's of prediction etc.) for more independent variables just put in an extra column for each, but leave the same Pred column on the RHS of the datatset.
DaySalesTempPred
120650
222680
321660
423750
525810
626760
728780
830850
930880
1035950
1129900
1228820
1326800
1426760
1524740
1624730
1720730
1818770
1919680
2020600
21070-1

<tbody>
</tbody>

For more info check out
Article: The use of dummy variables to compute predictions, prediction errors, and confidence intervals
David S. Salkever
Journal of Econometrics 02/1976; 4(4):393-397. DOI:10.1016/0304-4076(76)90027-0 · 1.53
 
Upvote 0
Not sure what you mean. I am looking for a formula that I can use to calculate the standard error of prediction for multiple predictors. Here is a regression output and formulas for prediction interval that I made up. What would the formula be for standard error of prediction if using multiple predictors? Thanks.


Excel 2012
GHIJK
1SUMMARY OUTPUT
2
3Regression Statistics
4Multiple R0.999906954
5R Square0.999813918
6Adjusted R Square0.999812866
7Standard Error0.708186158
8Observations179
9
10ANOVA
11dfSSMSF
12Regression1476960.1841476960.2951014.8
13Residual17788.770391370.501528
14Total178477048.9545
15
16CoefficientsStandard Errort StatP-value
17Intercept10.106309769.4064742.69E-17
18X Variable 10.9989848840.00102439975.19990
19
20
21
22
23Desired Prediction Level:90%Mean:90
24Alpha:10%Std Dev:51.81699
25
26Value to Predict For:180
27
28Point Prediction:180.8172792
29t-value:1.653508002
30Standard Error of Pred:0.716121079
31Margin of Error:1.184111935
32Lower Bound:179.6331673
33Upper Bound:182.0013911
34Interval Width:2.368223869
Sheet1
Cell Formulas
RangeFormula
H24=1-H23
H28=H17+H18*H26
H29=TINV(H24,H13)
H30=H7*SQRT(1+1/H8+(H26-K23)^2/K24^2/H14)
H31=H29*H30
H32=H28-H31
H33=H28+H31
H34=H33-H32
K23=AVERAGE(INDIRECT("'Sheet1'!A2:A"&COUNT(Sheet1!A:A)))
K24=STDEV(INDIRECT("'Sheet1'!A2:A"&COUNT(Sheet1!A:A)))
 
Upvote 0
I have calculated the standard error of prediction for linear regression following this video on youtube: https://www.youtube.com/watch?v=nFj7nAeGlLk
...
How could I use matrix multiplication to find the standard error of prediction for multiple regression. Thanks for any help.

Mike
Post#2 does just what you requested in your post#1. That is, it uses matrix multiplication to find the standard error of prediction for multiple regression.
And it's backed up by a specific valid reference to one of the top academic journals in the world.

It uses matrix multiplication (and some inversion as well) to give the correct answer (which you can readily verify by looking at it) using the same data as in the Youtube video that you used.

If you want the same regression output as in that video just leave out the last row and the Pred column in post#2 when doing you regression.

If you additionally want the standard error of prediction interval then just include the last row and Pred column, do the regression and your requested information is on the bottom (Pred) line of the regression output. This was what post#2 suggested, although it seems you haven't tried it.

So at this stage it's not that clear to me just what you're looking for.
Is it to get operational results for a specific problem, which the approach of post#2 does as do many good regression/prediction programs commercially available?
Or is it to enhance your knowledge of regression/prediction statistical methods, which could be done by reference to any of the good statistical texts in the area.
 
Upvote 0
I need more of a step by step example of how to do the matrix multiplication. In post #3, the formula in H30 is how the standard error of prediction was calculated for a simple linear regression. In excel formula notation what would the excel formula be for multiple regression? I would assume something like mmult would have to be used. Sorry if I was unclear in the other post.
 
Upvote 0
I need more of a step by step example of how to do the matrix multiplication. In post #3, the formula in H30 is how the standard error of prediction was calculated for a simple linear regression. In excel formula notation what would the excel formula be for multiple regression? I would assume something like mmult would have to be used. Sorry if I was unclear in the other post.
Is this for some college assignment in statistics?

Formulas for standard errors of prediction in multiple regression are found in a variety of texts.

You could copy the version you want and post it here along with the specific data layout you want it referred to in an excel formula. Someone here should be able to help you.

I might have something like that in a file somewhere if I can find it, or can re-figure it out if I have time. Although I've never been enamoured with taking two steps over what can be far more conveniently done in one step.
 
Upvote 0
No it is not for college, just learning some statistics on my own and want to know how to implement it into excel with a formula. As an example, when the guy on youtube did the prediction interval for multiple regression, I think he increased excels regression output standard error by 10% and used this as an estimated standard error of prediction. If using his example, how would he actually calculate, using excel formulas, the standard error of prediction? What would he have to type formula wise into excel in order to get the standard error of prediction for multiple predictors? In post #3 I showed the formulas used for simple linear regression, specifically look at the formula used in cell H30. How would these formulas look for multiple predictors? Any help, will be appreciated.

Mike
 
Upvote 0

Forum statistics

Threads
1,216,291
Messages
6,129,911
Members
449,540
Latest member
real_will_smith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top