Question #73784

Consider the following five data points:
x -1.0 0.0 1.0 2.0 3.0
Y -1.0 1.0 1.0 2.5 3.5
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?
1

Expert's answer

2018-02-22T09:50:08-0500

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+axy = b + ax

.

b. Compute the coefficient of determination.

c. What is the predicted value of yy for x=1.0x = 1.0? For x=3.5x = 3.5?

Solution

a. Regression equation of yy on xx:


y=μy+Cov(x,y)σx2(xμx).y = \mu_y + \frac{\operatorname{Cov}(x, y)}{\sigma_x^2} (x - \mu_x).


where μx\mu_x and μy\mu_y are mean values of xx and yy, σx2\sigma_x^2 is a variance of xx and Cov(x,y)\operatorname{Cov}(x, y) is a covariance between xx and yy.

Let us calculate the necessary values:


μx=E[X]=1.0+0.0+1.0+2.0+3.05=1.0\mu_x = E[X] = \frac{-1.0 + 0.0 + 1.0 + 2.0 + 3.0}{5} = 1.0μy=E[Y]=1.0+1.0+1.0+2.5+3.55=1.4\mu_y = E[Y] = \frac{-1.0 + 1.0 + 1.0 + 2.5 + 3.5}{5} = 1.4Cov(x,y)=E[XY]E[X]E[Y]=(1.0)(1.0)+0.01.0+1.01.0+2.02.5+3.03.551.01.4=2.1\begin{array}{l} \operatorname{Cov}(x, y) = E[XY] - E[X]E[Y] \\ = \frac{(-1.0) \cdot (-1.0) + 0.0 \cdot 1.0 + 1.0 \cdot 1.0 + 2.0 \cdot 2.5 + 3.0 \cdot 3.5}{5} - 1.0 \cdot 1.4 = 2.1 \\ \end{array}σx2=Var[X]=(1.01.0)2+(0.01.0)2+(1.01.0)2+(2.01.0)2+(3.01.0)25=2.0\begin{array}{l} \sigma_x^2 = Var[X] = \frac{(-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}{5} \\ = 2.0 \\ \end{array}


Therefore, the regression equation is


y=1.4+2.12.0(x1.0)y = 1.4 + \frac{2.1}{2.0} (x - 1.0)


or


y=1.05x+0.35y = 1.05x + 0.35


b. Let us first calculate the predicted values y^i\hat{y}_i of dependent variable by formula


y^i=1.05xi+0.35\hat{y}_i = 1.05x_i + 0.35


The results we put in the Table 1:



The coefficient of determination R2R^2 is defined as


R2=1SSresSStot,R^2 = 1 - \frac{SS_{res}}{SS_{tot}},


where


SSres=i(yiy^i)2=(1.0+0.7)2+(1.00.35)2+(1.01.4)2+(2.52.45)2+(3.53.5)2=0.675;\begin{aligned} SS_{res} = & \sum_{i} (y_i - \hat{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; \end{aligned}SStot=i(yiμy)2=(1.01.4)2+(1.01.4)2+(1.01.4)2+(2.51.4)2+(3.51.4)2=11.7\begin{aligned} SS_{tot} = & \sum_{i} (y_i - \mu_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 \end{aligned}


Therefore,


R2=10.67511.7=0.94R^2 = 1 - \frac{0.675}{11.7} = 0.94


c. The predicted values of yy is calculated in Table 1. So the predicted value of yy for x=1.0x = 1.0 is equal to 1.051.0+0.35=1.41.05 \cdot 1.0 + 0.35 = 1.4 and the predicted value of yy for x=3.5x = 3.5 is equal to 1.053.5+0.35=4.0251.05 \cdot 3.5 + 0.35 = 4.025

Answer: a. y=1.05x+0.35,b=0.35,a=1.05y = 1.05x + 0.35, b = 0.35, a = 1.05; b. R2=0.94R^2 = 0.94; c. 1.4 and 4.025.

Answer provided by https://www AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS