Consider the following dataset: x = [2; 6; 10; 14; 18; 22; 26; 30]; y = [9; 13;
ID: 3692994 • Letter: C
Question
Consider the following dataset: x = [2; 6; 10; 14; 18; 22; 26; 30]; y = [9; 13; 21; 26; 34; 39; 44; 48]; Perform a simple linear regression on the model y = mx+b Report mhat, bhat, the standard error of the estimate (squareroot SSR/n-2), and the coefficient of determination (r^2) Do the regression using the X^gammaX beta =X^gamma y formula used in class, not built-in MATLAB functions. Perform the same analysis but with the model x = my+b Report the same values. Discuss your answers to a and b, and how they relate to whether finding a strong linear relationship is sufficient to prove causation. BTW, you should be seeing strong correlations in both directions. Ask yourself if that high correlation in 2 a implies x causes y, then what could the high correlation in part 2 b imply?Explanation / Answer
x=(2,6,10,14,18,22,26,30)
y=(9,13,21,26,34,39,44,48)
for the first data set: