The data for a certain test is provided below
X 100 200 300 400 500 600 700
Y 30 50 60 80 100 110 130
Compute the value of the correlation.
Find the equation of the regression lime.
correlation:
r=∑(xi−x‾)(yi−y‾)∑(xi−x‾)2∑(yi−y‾)2=0.9972r=\frac{\sum (x_i-\overline{x})(y_i-\overline{y})}{\sqrt{\sum (x_i-\overline{x})^2\sum(y_i-\overline{y})^2}}=0.9972r=∑(xi−x)2∑(yi−y)2∑(xi−x)(yi−y)=0.9972
regression line:
y=ax+by=ax+by=ax+b
a=∑(xi−x‾)(yi−y‾)∑(xi−x‾)2=0.1643a=\frac{\sum (x_i-\overline{x})(y_i-\overline{y})}{\sum (x_i-\overline{x})^2}=0.1643a=∑(xi−x)2∑(xi−x)(yi−y)=0.1643
b=y‾−ax‾=14.2857b=\overline{y}-a\overline{x}=14.2857b=y−ax=14.2857
y=0.1643x+14.2857y=0.1643x+14.2857y=0.1643x+14.2857
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments