Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

an automobile company is running a new television commercial in five ci…

Question

an automobile company is running a new television commercial in five cities with approximately the same population. the following table shows the number of times the commercial is run on tv in each city and the number of car sales (in hundreds). find the linear regression line for the data given in the table. round any intermediate calculations to no less than six decimal places, and round the coefficients to two decimal places.

number of tv commercials, x47131619
car sales, y (in hundreds)32969

Explanation:

Step1: Calculate the means of \(x\) and \(y\)

Let \(x_1 = 4,x_2=7,x_3 = 13,x_4=16,x_5 = 19\) and \(y_1 = 3,y_2=2,y_3 = 9,y_4=6,y_5 = 9\).
The mean of \(x\), \(\bar{x}=\frac{4 + 7+13+16+19}{5}=\frac{69}{5}=13.8\)
The mean of \(y\), \(\bar{y}=\frac{3 + 2+9+6+9}{5}=\frac{29}{5}=5.8\)

Step2: Calculate the numerator and denominator for the slope \(b_1\)

The numerator \(S_{xy}=\sum_{i = 1}^{5}(x_i-\bar{x})(y_i - \bar{y})\)
\((4 - 13.8)(3 - 5.8)+(7 - 13.8)(2 - 5.8)+(13 - 13.8)(9 - 5.8)+(16 - 13.8)(6 - 5.8)+(19 - 13.8)(9 - 5.8)\)
\(=(-9.8)\times(-2.8)+(-6.8)\times(-3.8)+(-0.8)\times3.2+(2.2)\times0.2+(5.2)\times3.2\)
\(=27.44 + 25.84-2.56 + 0.44+16.64\)
\(=67.8\)
The denominator \(S_{xx}=\sum_{i = 1}^{5}(x_i-\bar{x})^2\)
\((4 - 13.8)^2+(7 - 13.8)^2+(13 - 13.8)^2+(16 - 13.8)^2+(19 - 13.8)^2\)
\(=(-9.8)^2+(-6.8)^2+(-0.8)^2+(2.2)^2+(5.2)^2\)
\(=96.04+46.24 + 0.64+4.84+27.04\)
\(=174.8\)
The slope \(b_1=\frac{S_{xy}}{S_{xx}}=\frac{67.8}{174.8}\approx0.39\)

Step3: Calculate the intercept \(b_0\)

\(b_0=\bar{y}-b_1\bar{x}=5.8-0.39\times13.8\)
\(=5.8 - 5.382=0.42\)

Answer:

The linear - regression line is \(y = 0.42+0.39x\)