Uniquebum
- 53
- 1
Hey!
I'm working with some regression related stuff at the moment and i'd need some help with multiple variable prediction interval. Prediction interval for a single variable can be calculated using
PI = \hat{\beta_0}+\hat{\beta_1}x_i \pm t^* s_e \sqrt{1+\frac{1}{n} + \frac{(x_i-mean(x))^2}{S_{xx}}}
where x can be thought as a 1 dimensional vector (or matrix/set) which holds the values x_0, x_1, x_2 and so on. Also, \hat{\beta_0}+\hat{\beta_1}x_i is a linear regression line \hat{y}. Finally, t^* is the t-percentile, s_e is standard deviation, n is the amount of points in the sample and S_{xx} = \sum{(x_i-mean(x))^2} from 1 --> n.
Now what does the equation look like for multiple variable regression?
I'd suppose \hat{\beta_0}+\hat{\beta_1}x_i is easily changed to
\hat{\beta_0}+\hat{\beta_1}x_{0i}+\hat{\beta_2}x_{1i}+\hat{\beta_3}x_{2i}+...
but what do i do with
\frac{(x_i-mean(x))^2}{S_{xx}}
?
I'm working with some regression related stuff at the moment and i'd need some help with multiple variable prediction interval. Prediction interval for a single variable can be calculated using
PI = \hat{\beta_0}+\hat{\beta_1}x_i \pm t^* s_e \sqrt{1+\frac{1}{n} + \frac{(x_i-mean(x))^2}{S_{xx}}}
where x can be thought as a 1 dimensional vector (or matrix/set) which holds the values x_0, x_1, x_2 and so on. Also, \hat{\beta_0}+\hat{\beta_1}x_i is a linear regression line \hat{y}. Finally, t^* is the t-percentile, s_e is standard deviation, n is the amount of points in the sample and S_{xx} = \sum{(x_i-mean(x))^2} from 1 --> n.
Now what does the equation look like for multiple variable regression?
I'd suppose \hat{\beta_0}+\hat{\beta_1}x_i is easily changed to
\hat{\beta_0}+\hat{\beta_1}x_{0i}+\hat{\beta_2}x_{1i}+\hat{\beta_3}x_{2i}+...
but what do i do with
\frac{(x_i-mean(x))^2}{S_{xx}}
?