Professional Documents
Culture Documents
Lecture 10
Lecture 10
One dependent and one independent variables: single (simple) regression model.
Now, how much the GPA changes when Eng increases 1 point use a model
Bo: intercept: When Eng is 0, the average GPA is Bo (it does make sense in this case because
No value of Eng=0
B1: rate of change of GPA by Eng: if Eng increases 1 unit, the average of GPA increases
B1 unit.
To estimate the value of B0 and B1, we need the data. Then we use the method of
Coefficients
Intercep
t 2.846428571
Eng 0.092857143
The slope = 0.093: one more point of English score makes the average of GPA increases
By 0.093 point
The coefficient of Determination, R2: measures the goodness of fit of model
R2 = RSS/TSS
0 =< R2 =< 1
R Square 0.144691781
14.47% of variation of GPA can be explained by English score (or by the model)
If we use software, the t value has the p-value, then we can use p-value for this
test.
Example:
t Stat P-value
5.04319 0.00395
3 6
0.91969 0.39992
9 6
Test for the significance of English score, t = 0.919, p-value = 0.399 >α=0.05
Significance
F F
0.8458458 0.39992636
5 3
Prediction: given a value of independent variable, Eng = 7.5
Predict for the new value of GPA. Plug in the value of Eng into the mode.
GPAo^ = 2.85 +0.093*7.5= 3.55
Y^ = b0 +b1*X1 +….+bk-1*Xk-1
Interpretation for bj: (Xj): other independent variables fixed, if Xj increases 1 unit,
t test for significance of Bj: t= bj/se(bj), reject Ho if t > tn-kα/2 or t < - tn-kα/2
Should we use the model (1) or model (2) (which model is better?)
P-value of coefficients are both very small both independent variables are
Significant.