With this set of data incarceration rate dependent variable
With this set of data, incarceration rate (dependent variable) and median income and total crime (independent variables), solve the prediction equation (least squares line), the coefficient of determination, and Pearson\'s r.
Solution
Let Y=incarceration rate, X1=median income, X2=Total crime
We now model them as-
Y=a+b1X1+b2X2+e
We now estimate a,b1,b2 by the method of least squares by minimizing the term e2.
where ei=Yi-a-b1X1i+b2X2i,
Now from the data we estimate them as- a=1028, b1=-0.0142, b2=0.139
Therefore,the least square line is given by-
Y=1028 - 0.0142X1 + 0.139X2
Now the co-efficient of determination,R2=0.596
Pearson\'s r = cov(X,Y)/SxSy
r(Y,X1)=-0.732
r(Y,X2)=0.701
r(X1,X2)=-0.726
