Questions: Find the value of the linear correlation coefficient r. The paired data below consist of the costs of advertising (in thousands of dollars) a certain pharmaceutical drug and the number of prescriptions written (in thousands):
Cost of Advertising: 9, 2, 3, 4, 2, 5, 9, 10
Number of Prescriptions: 85, 52, 55, 68, 67, 86, 83, 73
0.235 0.246 -0.071 0.708
Transcript text: Find the value of the linear correlation coefficient $r$. The paired data below consist of the costs of advertising (in thousands of dollars) a certain pharmaceutical drug and the number of prescriptions written (in thousands):
\begin{tabular}{l|r|r|r|r|r|r|r|r}
\begin{tabular}{l}
Cost of \\
Advertising
\end{tabular} & 9 & 2 & 3 & 4 & 2 & 5 & 9 & 10 \\
\hline \begin{tabular}{l}
Number of \\
Prescriptions
\end{tabular} & 85 & 52 & 55 & 68 & 67 & 86 & 83 & 73
\end{tabular}
0.235
0.246
$-0.071$
0.708
Solution
Solution Steps
Step 1: Calculate Covariance
The covariance between the cost of advertising \( X \) and the number of prescriptions written \( Y \) is calculated as follows:
\[
\text{Cov}(X,Y) = 31.071
\]
Step 2: Calculate Standard Deviations
Next, we calculate the standard deviations of both variables:
\[
\sigma_X = 3.338
\]
\[
\sigma_Y = 13.152
\]
Step 3: Calculate Correlation Coefficient
The correlation coefficient \( r \) is computed using the formula:
\[
r = \frac{\text{Cov}(X,Y)}{\sigma_X \sigma_Y}
\]
Substituting the values we have:
\[
r = \frac{31.071}{3.338 \times 13.152} = 0.708
\]