Linear Regression: Expected Value & Variance of Predicted Values

Click For Summary
SUMMARY

The discussion focuses on calculating the expected value and variance of predicted values in a linear regression model defined by the equation Y_i = β_0 + x_i β_1 + ε_i, where ε_i follows a normal distribution with variance σ² = 1. The expected value of the predicted values is derived as E[Ŷ] = (β_0 + β_1, β_0 + 2β_1, β_0 + 3β_1, β_0 + 4β_1, β_0 + 5β_1). To find the variance, participants are advised to utilize the hint involving the hat matrix H = X(X^T X)^{-1}X^T and apply matrix multiplication to derive the covariance matrix for the regression model.

PREREQUISITES
  • Understanding of linear regression models and their components
  • Familiarity with matrix operations and properties
  • Knowledge of expected value and variance in statistics
  • Basic understanding of normal distributions and their implications
NEXT STEPS
  • Study the derivation of the hat matrix H in linear regression
  • Learn how to compute the covariance matrix for regression coefficients
  • Explore the properties of expected values in multivariate distributions
  • Practice calculating variance in predicted values using different datasets
USEFUL FOR

Students and professionals in statistics, data science, and machine learning who are working with linear regression models and need to understand the implications of expected values and variances in their predictions.

twoflower
Messages
363
Reaction score
0

Homework Statement



Consider model of linear regression:

<br /> Y_i = \beta_0 + x_i \beta_1 + \epsilon_i<br />

i = 1, ..., 5, where \epsilon_i \sim \mathcal{N}(0, \sigma^2) are independent. Find expected value and variance of predicted values \widehat{Y}_i considering that observations are obtained in points 1, 2, 3, 4, 5 (ie. x_i = i for i = 1, ..., 5) and \sigma^2 = 1. Hint: remember that

<br /> \widehat{Y} = HY<br />

Homework Equations



<br /> H = X\left(X^T X\right)^{-1}X^T Y<br />


The Attempt at a Solution



My attempt is

<br /> E \widehat{Y} = \beta_0 + X\beta_1 = (\beta_0 + \beta_1, \beta_0 + 2\beta_1, \beta_0 + 3\beta_1, \beta_0 + 4\beta_1, \beta_0 + 5\beta_1)<br />

Is it correct?

Anyway, even if it is, how do I find the variance and how do I use the hint? :)

Thank you.
 
Physics news on Phys.org
"Find expected value and variance of predicted values"

Since you know that

<br /> \widehat Y = X \left(X&#039; X)^{-1}X&#039; Y<br />

you can find

<br /> E[\widehat Y] = E[X \left(X&#039; X\right)^{-1} X&#039; Y]<br />

Use the properties of expected value and the expected value of Y (unless I'm totally missing something, I don't see how the form of the x_i applies here).

As far as finding the variance of \widehat Y, you can use the hint. Write out the
matrix X (first column consists of ones, for the intercept, and you know the values of x to use in the second column), and use the matrix formulas for the covariance matrix in regression to find the variances. Because the x values are consecutive integers, a little algebra in the matrix multiplication will give nice forms for the entries.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
8K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K