![]() | ||
In linear regression mean response and predicted response are values of the dependent variable calculated from the regression parameters and a given value of the independent variable. The values of these two responses are the same, but their calculated variances are different.
Contents
Background
In straight line fitting, the model is
where
while the actual response would be
Expressions for the values and variances of
Mean response
Since the data in this context is defined to be (x,y) pairs for every observation, the Mean response at a given value of x, say xd, is an estimate of the mean of the y values in the population at the x value of xd, that is
This expression can be simplified to
To demonstrate this simplification, one can make use of the identity
Predicted response
The predicted response distribution is the predicted distribution of the residuals at the given point xd. So the variance is given by
The second part of this expression was already calculated for the mean response. Since
Confidence intervals
The
This is analogous to the difference between the variance of a population and the variance of the sample mean of a population: the variance of a population is a parameter and does not change, but the variance of the sample mean decreases with increased samples.
General linear regression
The general linear model can be written as
Therefore, since
where S is the covariance matrix of the parameters, given by