Question A software company tracks the number of hours its employees spend on coding (X) and the corresponding number of bugs they encounter during testing (Y). (a) Calculate the Pearson correlation coefficient. (b) Find the regression equation of Y on X. (c) Predict the number of bugs encountered i
Question
A software company tracks the number of hours its employees spend on coding (X) and the corresponding number of bugs they encounter during testing (Y).
$$\begin{array}{|c|cccccccccc|}\hline \text{Hours (X)} & 20 & 25 & 30 & 35 & 40 & 45 & 50 & 55 & 60 & 65 \ \hline \text{Bugs (Y)} & 5 & 7 & 8 & 12 & 15 & 13 & 17 & 18 & 20 & 25 \ \hline \end{array}$$
(a) Calculate the Pearson correlation coefficient.
(b) Find the regression equation of Y on X.
(c) Predict the number of bugs encountered if an employee spends 48 hours coding.
[10+0]
X 20 25 30 35 40 45 50 55 60 65 ------------------------------------------- Y 5 7 8 12 15 13 17 18 20 25 $n = 10$, predict Y at $X = 48$. X Y XY X² Y² ------------------- 20 5 100 400 25 25 7 175 625 49 30 8 240 900 64 35 12 420 1225 144 40 15 600 1600 225 45 13 585 2025 169 50 17 850 2500 289 55...