Answer on Question #73784 – Math – Statistics and Probability
Question
Consider the following five data points:

a. Use regression analysis to calculate by hand the estimated coefficients of the equation
y=b+ax.
b. Compute the coefficient of determination.
c. What is the predicted value of y for x=1.0? For x=3.5?
Solution
a. Regression equation of y on x:
y=μy+σx2Cov(x,y)(x−μx).
where μx and μy are mean values of x and y, σx2 is a variance of x and Cov(x,y) is a covariance between x and y.
Let us calculate the necessary values:
μx=E[X]=5−1.0+0.0+1.0+2.0+3.0=1.0μy=E[Y]=5−1.0+1.0+1.0+2.5+3.5=1.4Cov(x,y)=E[XY]−E[X]E[Y]=5(−1.0)⋅(−1.0)+0.0⋅1.0+1.0⋅1.0+2.0⋅2.5+3.0⋅3.5−1.0⋅1.4=2.1σx2=Var[X]=5(−1.0−1.0)2+(0.0−1.0)2+(1.0−1.0)2+(2.0−1.0)2+(3.0−1.0)2=2.0
Therefore, the regression equation is
y=1.4+2.02.1(x−1.0)
or
y=1.05x+0.35
b. Let us first calculate the predicted values y^i of dependent variable by formula
y^i=1.05xi+0.35
The results we put in the Table 1:

The coefficient of determination R2 is defined as
R2=1−SStotSSres,
where
SSres=i∑(yi−y^i)2=(−1.0+0.7)2+(1.0−0.35)2+(1.0−1.4)2+(2.5−2.45)2+(3.5−3.5)2=0.675;SStot=i∑(yi−μy)2=(−1.0−1.4)2+(1.0−1.4)2+(1.0−1.4)2+(2.5−1.4)2+(3.5−1.4)2=11.7
Therefore,
R2=1−11.70.675=0.94
c. The predicted values of y is calculated in Table 1. So the predicted value of y for x=1.0 is equal to 1.05⋅1.0+0.35=1.4 and the predicted value of y for x=3.5 is equal to 1.05⋅3.5+0.35=4.025
Answer: a. y=1.05x+0.35,b=0.35,a=1.05; b. R2=0.94; c. 1.4 and 4.025.
Answer provided by https://www AssignmentExpert.com
Comments