


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



This model represents the dependent variable, yi , as a linear function of one independent variable, xi , subject to a random ‘disturbance’ or ‘error’, ui.
yi = β 0 + β 1 xi + ui
The error term ui is assumed to have a mean value of zero, a constant variance, and to be uncorrelated with itself across observations ( E ( ui u (^) j ) = 0 , i 6 = j ). We may summarize these conditions by saying that ui ‘white noise’.
The task of estimation is to determine regression coefficients βˆ 0 and βˆ 1 , estimates of the unknown parameters β 0 and β 1 respectively. The estimated equation will have the form
y ˆ i = ˆβ 0 + ˆβ 1 x.
We define the estimated error or residual associated with each pair of data values as
u ˆ i = yi − ˆ yi = yi − ( βˆ 0 + ˆβ 1 xi )
In a scatter diagram of y against x , this is the vertical distance between the observed yi vaue and the ‘fitted value’, y ˆ i , as shown in Figure 1.
yi
xi
β^ ˆ 0 + ˆβ 1 x
ˆ yi
u ˆ i
Figure 1: Regression residual
Note that we are using a different symbol for this estimated error ( u ˆ i ) as opposed to the ‘true’ disturbance or error term defined above ( ui ). These two will coincide only if βˆ 0 and βˆ 1 happen to be exact estimates of the regression parameters β 0 and β 1. The basic technique for determining the coefficients βˆ 0 and βˆ 1 is Ordinary Least Squares (OLS): values for βˆ 0 and βˆ 1 are chosen so as to minimize the sum of the squared residuals (SSR). The SSR may be written as
∗Last revised 2003/02/03.
SSR = 6 u ˆ^2 i = 6( yi − ˆ yi )^2 = 6( yi − ˆβ 0 − ˆβ 1 xi )^2
(It should be understood throughout that 6 denotes the summation
∑ n i = 1 , where^ n^ denotes the number of observa- tions in the sample). The minimization of SSR is a calculus exercise: we need to find the partial derivatives of SSR with respect to both βˆ 0 and βˆ 1 and set them equal to zero. This generates two equations (the ‘normal equations’ of least squares) in the two unknowns, βˆ 0 and βˆ 1. These equations are then solved jointly to yield the estimated coefficients. We start out from:
∂SSR/∂ βˆ 0 = − 2 6( yi − ˆβ 0 − ˆβ 1 xi ) = 0 (1) ∂SSR/∂ βˆ 1 = − 26 xi ( yi − ˆβ 0 − ˆβ 1 xi ) = 0 (2)
Equation (1) implies that
6 yi − n βˆ 0 − ˆβ 16 xi = 0
⇒ ˆβ 0 = ¯ y − ˆβ 1 x ¯ (3)
while equation (2) implies that
6 xi yi − ˆβ 06 xi − ˆβ 16 x i^2 = 0 (4)
We can now substitute for βˆ 0 in equation (4), using (3). This yields
6 xi yi − ( y ¯ − ˆβ 1 x ¯)6 xi − ˆβ 16 x i^2 = 0
⇒ 6 xi yi − ¯ y 6 xi − ˆβ 1 (6 x^2 i − ¯ x 6 xi ) = 0
⇒ ˆβ 1 =
6 xi yi − ¯ y 6 xi 6 x i^2 − ¯ x 6 xi
Equations (3) and (4) can now be used to generate the regression coefficients. First use (5) to find βˆ 1 , then use (3) to find βˆ 0.
The OLS technique ensures that we find the values of βˆ 0 and βˆ 1 which ‘fit the sample data best’, in the specific sense of minimizing the sum of squared residuals. There is no guarantee, however, that βˆ 0 and βˆ 1 correspond exactly with the unknown parameters β 0 and β 1. Neither, in fact, is there any guarantee that the ‘best fitting’ line fits the data well: maybe the data do not even approximately lie along a straight line relationship. So how do we assess the adequacy of the ‘fitted’ equation?
Now obviously, the magnitude of the SSR will depend in part on the number of data points in the sample (other things equal, the more data points, the bigger the sum of squared residuals). To allow for this we can divide though by the ‘degrees of freedom’, which is the number of data points minus the number of parameters to be estimated (2 in the case of a simple regression with an intercept term). Let n denote the number of data points (or ‘sample size’), then the degrees of freedom, d.f. = n − 2. The square root of the resulting expression is called the estimated standard error of the regression ( σˆ ):
σ ˆ =
n − 2
As stated above, even if the OLS math is performed correctly there is no guarantee that the coefficients βˆ 0 and β^ ˆ 1 thus obtained correspond exactly with the underlying parameters β 0 and β 1. Actually, such an exact corre- spondence is highly unlikely. The statistical issue here is a very general one: estimation is inevitably subject to sampling error. As we have seen, a confidence interval provides a means of quantifying the uncertainty produced by sampling error. Instead of simply stating ‘I found a sample mean income of $39,000 and that is my best guess at the population mean, although I know it is probably wrong’, we can make a statement like: ‘I found a sample mean of $39,000, and there is a 95 percent probability that my estimate is off the true parameter value by no more than $1200.’ Confidence intervals for regression coefficients can be constructed in a similar manner. Suppose we come up with a slope estimate of βˆ 1 = .90, using the OLS technique, and we want to quantify our uncertainty over the true slope parameter, β 1 , by drawing up a 95 percent confidence interval for this parameter. Provided our sample size is reasonably large, the rule of thumb is the same as before; the 95 percent confidence interval for β 1 is given by: β^ ˆ 1 ± 2 standard errors
Our single best guess at β 1 (‘point estimate’) is simply βˆ 1 , since the OLS technique yields unbiased estimates of the parameters (actually, this is not always true, but we’ll postpone consideration of tricky cases where OLS estimates are biased). And on exactly the same grounds as before, there is a 95 per chance that our estimate βˆ 1 will lie within 2 standard errors of its mean value, β 1. But how do we find the standard error of βˆ 1? I shall not derive this rigorously, but give the formula along with an intuitive explanation. The standard error of βˆ 1 (written as se( βˆ 1 ), and not to be confused with the standard error of the regression, σˆ ) is given by the formula:
se( βˆ 1 ) =
σ ˆ 2 6( xi − ¯ x )^2
i.e., it is the square root of [the square of the regression standard error divided by the total variation of the indepen- dent variable, xi , around its mean]. What are the various components of the calculation doing? First, note the general point that the larger is se( βˆ 1 ), the wider will be the confidence interval for any specified confidence level. Now, according to the formula, the larger is σˆ , the larger will be se( βˆ 1 ), and hence the wider the confidence interval for the true slope. This makes sense: σˆ provides a measure of the ‘degree of fit’ of the estimated equation, as discussed above. If the equation fits the data badly (‘large’ σˆ ), it stands to reason that we should have a relatively high degree of uncertainty over the true slope parameter. Secondly, the formula tells us that, other things equal, a high degree of variation of xi makes for a smaller se( βˆ 1 ), and so a tighter confidence interval. Why should this be? The more xi has varied in our data sample, the better the chance we have of picking up any relationship that exists between x and y. Take an extreme case and this is rather obvious: suppose that x happens not to have varied at all in our sample (i.e., 6( xi − ¯ x )^2 = 0). In that case we have no chance of detecting any influence of x on y. And the more the independent variable has moved, the more any influence it may have on the dependent variable should stand out against the background ‘noise’, ui.
One example. Suppose we’re interested in whether a positive linear relationship exists between xi and yi. We’ve obtained βˆ 1 = .90 and se( βˆ 1 ) = .12. The approximate 95 percent confidence interval for β 1 is then
. 90 ± 2 (. 12 ) =. 90 ±. 24 = .66 to 1. 14
This tells us that we can state, with at least 95 percent confidence, that β 1 > 0, and there is a positive relationship. On the other hand, if we had obtained se( βˆ 1 ) = .61, our interval would have been
. 90 ± 2 (. 61 ) =. 90 ± 1. 22 = −.32 to 2. 12
In this case the interval straddles zero, and we cannot be confident (at the 95 percent level) that there exists a positive relationship.