Lecture 6 Regression Analysis
Lecture 6 Regression Analysis
Lecture 6
• Linear regression
– estimation of regression line,
– analysis of variance,
• Linear multiple regression
• Non-linear regression
Regression analysis
– Normality
– Important if confidence interval based on normal theory is computed
Regression analysis
• http://cameron.econ.ucdavis.edu/excel/ex61multipleregression.html
Linear regression
^𝑖 𝑦 𝑖 𝑦
𝑦
• Basic regression
DATA = FIT + RESIDUAL
- - )+ - )
• The first term is the total variation in the response y,
• The second term is the variation in mean response,
• The third term is the residual value.
Important parameters of regression
- - )+ - )
- - )2 + - )2
SST SSR SSE
Sum of squares, total Regression Sum of Squared Errors
Sum of Squares
Important parameters of regression
2. Coefficient of determination(R2) - )2
SSR
– Qualitative measure
– A strong relationship between x and y will produce a
large MSR and a small MSE.
Multiple Linear Regression
• Models
Multiple Linear Regression
• Normality
– Y values are normally distributed for each X
– Probability distribution of error is normal
• Linearity
• Variables are measured without error
• No exact linear relation exists between any
subset of explanatory variables
Y i
X i
Multiple linear regression
- K is number of variables
• Sum of the squares of the distances from the
points to the plane is a minimum.
• Slope (bP)
- Estimated Y changes by bP for each 1 unit increase in
XP holding all other variables constant
• Y-Intercept (b0)
- Average value of Y when all XP = 0
http://cameron.econ.ucdavis.edu/excel/ex61multipleregression.html
Multiple linear regression
Regression Statistics
Multiple R 0.986172933
R Square 0.972537054
Adjusted R Square 0.96076722
Standard Error 14.50293137
Observations 11
= 0.05
0 F(α,df1,df2) F
Multiple linear regression
• Multiple regression: 1
1
1
190
110
150
1
1
1
0
0
0
190
110
150
0
0
0
5.96
6.08
5.93
1 170 1 0 170 0 5.99
1 170 1 0 170 0 6.01
1 170 1 0 170 0 5.97
1 200 1 0 200 0 5.88
1 140 1 0 140 0 6.06