Let X₁ represent the variable "Number of TV commercials" and X₂ represent the variable "car sales"
To calculate the Pearson correlation coefficient you have to apply the following formula:
![r=\frac{\Sigma x_1x_x-((\Sigma x_1)(\Sigma x_2))/(n)}{\sqrt[]{\lbrack\Sigma x^2_1-((\Sigma x_1)^2)/(n)\rbrack\lbrack\Sigma x^2_2-((\Sigma x_2)^2)/(n)\rbrack}}](https://img.qammunity.org/2023/formulas/mathematics/college/jkjyz3hw1crqnkc2dx9jgwrn65gjdunmfp.png)
First, you have to calculate the sums:





Now you can calculate the correlation coefficient:
![\begin{gathered} r=\frac{425-(56\cdot31)/(5)}{\sqrt[]{\lbrack782-(56^2)/(5)\rbrack\lbrack239-(31^2)/(5)\rbrack}} \\ r=\frac{425-347.20}{\sqrt[]{\lbrack782-627.20\rbrack\lbrack239-192.20\rbrack}} \\ r=\frac{77.8}{\sqrt[]{154.80\cdot46.80}} \\ r=\frac{77.8}{\sqrt[]{7244.64}} \\ r=0.91405\approx0.914 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/77ni7oi06seavx8d8cjxjw6lesey2kgctg.png)
The correlation coefficient, rounded to three decimal places, is r=0.914