









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The concept of simple linear regression, focusing on the model, assumptions, and estimation of the unknown intercept and slope parameters. Using the example of the relationship between height and salary, it discusses the normal distribution of errors, the least squares method for finding the best-fitting line, and the interpretation of the resulting regression equation.
Typology: Schemes and Mind Maps
1 / 17
This page cannot be seen from the preview
Don't miss anything!
The Model
In linear regression analysis, we assume that the relationship between X and Y is linear. This does not mean, however, that Y can be perfectly predicted from X. In real applications there will almost always be some random variability which blurs any underlying systematic relationship which might exist.
We formalize these ideas by writing down a model which specifies exactly how the systematic and random components come together to produce our data.
Note that a model is simply a set of assumptions about how the world works. Of course, all models are wrong, but they can help us in understanding our data, and (if judiciously selected) may serve as useful approximations to the truth.
x
y
We start by assuming that for each value of X, the corresponding value of Y is random , and has a normal distribution.
Error probability distribution
E(Y|X) = α + βX
x 1 x 2 x 3
Even if we just consider graduates who are all of the same height (say 6 feet), their salaries will fluctuate, and therefore are not perfectly predictable. Perhaps the mean salary for 6-foot-tall graduates is $6300/Month. Clearly, the mean salary for 5 ½ - foot-tall graduates is less than it is for 6-foot-tall graduates.
Based on our data, we are going to try to estimate the mean value of y for a given value of x , denoted by E ( Y|X ).
(Can you suggest a simple way to do this?)
In general, E ( Y|X ) will depend on X.
Viewed as a function of X, E ( Y|X ) is called the true regression of Y on X.
In linear regression analysis , we assume that the true regression function E ( Y|X ) is a linear function of X:
The parameter β is the slope of the true regression line, and can be interpreted as the population mean change in y for a unit change in x.
The parameter α is the intercept of the true regression line and can be interpreted as the mean value of Y when X is zero.
For this interpretation to apply in practice, however, it is necessary to have data for X near zero.
In the advertising example, α would represent the mean baseline sales level without any advertisements.
In practice, α and β will be unknown parameters, which must be estimated from our data. The reason is that our observed data will not lie exactly on the true regression line. (Why?)
Instead, we assume that the true regression line is observed with error , i.e., that y (^) i is given by
variable (called the error ) with mean 0 and variance σ^2 which does not depend on x.
We also assume that the values of ε associated with any two values of y are independent.
Thus, the error at one point does not affect the error at any other point.
i = 1 , , n
The variance of the error, σ^2 , measures how close the points are to the true line, in terms of expected squared vertical deviation.
Under the model (1) which has normal errors, there is a 95% probability that a y value will fall within ± 2 σ from the true line (measured vertically).
So σ measures the "thickness" of the band of points as they scatter about the true line.
Given our data on x and y , we want to estimate the unknown intercept and slope α and β of the true regression line.
One approach is to find the line which best fits the data, in some sense.
In principle, we could try all possible lines a + b x and pick the line which comes "closest" to the data. This procedure is called “Least-Squares Fitting".
[R Demo: LeastSquaresFit]
The least squares line is also referred to as the fitted line , and the regression line , but do not confuse the regression line with the true regression line
y ˆ^ =αˆ+βˆ x
It can be shown that the sample statistics and are unbiased estimators of the population parameters α and β. That is,
Instead of using complicated formulas, you can obtain the least squares estimates from Minitab.
αˆ and βˆ
E (β ˆ)=β.
αˆ and βˆ
Regression Analysis: Salary versus Height
Coefficients
Term Coef SE Coef T-Value P-Value Constant -902 837 -1.08 0. Height 100.4 12.0 8.35 0.
Regression Equation
Salary = -902 + 100.4 Height
65.0 67.5 70.0 72.5 75.0 77.
6750
6500
6250
6000
5750
5500
Height
Salary
S 192. R-Sq 71.4% R-Sq(adj) 70.3%
Fitted Line Plot for Salary vs. Height Salary = - 902.2 + 100.4 Height