Question #311396

A fast-food chain decided to carry out an experiment to assess the influence of advertising expenditure on sales. Different relative changes in advertising expenditure, compared to the previous year, were made in eight regions of the country, and resulting changes in sales levels were observed. The accompanying table shows the results


Increase in advertising expenditure (%) 0 4 14 10 9 8 6 1


Increase in sales (%) 2.4 7.2 10.3 9.1 10.2 4.1 7.6 3.5 


a. Estimate the least-squares the linear regression of the increase in sales on increase in advertising expenditure

b. Find a 90% confidence interval for the slope of the population regression line


Expert's answer

We have

a:X=[101411411019181611]y=[2.47.210.39.110.24.17.63.5][ab]=(XTX)1XTy==([111111110414109861][101411411019181611])1[111111110414109861][2.47.210.39.110.24.17.63.5]==[85252494]1[54.4437.7]=18494522[49452528][54.4437.7]=11248[4113.2672.8]==[3.295830.539103]y=3.29583+0.539103xa:\\X=\left[ \begin{array}{c} \begin{matrix} 1& 0\\ 1& 4\\ 1& 14\\ 1& 10\\\end{matrix}\\ \begin{matrix} 1& 9\\ 1& 8\\ 1& 6\\ 1& 1\\\end{matrix}\\\end{array} \right] \\y=\left[ \begin{array}{c} 2.4\\ 7.2\\ 10.3\\ 9.1\\ 10.2\\ 4.1\\ 7.6\\ 3.5\\\end{array} \right] \\\left[ \begin{array}{c} a\\ b\\\end{array} \right] =\left( X^TX \right) ^{-1}X^Ty=\\=\left( \left[ \begin{matrix} 1& 1& 1& 1& 1& 1& 1& 1\\ 0& 4& 14& 10& 9& 8& 6& 1\\\end{matrix} \right] \left[ \begin{array}{c} \begin{matrix} 1& 0\\ 1& 4\\ 1& 14\\ 1& 10\\\end{matrix}\\ \begin{matrix} 1& 9\\ 1& 8\\ 1& 6\\ 1& 1\\\end{matrix}\\\end{array} \right] \right) ^{-1}\left[ \begin{matrix} 1& 1& 1& 1& 1& 1& 1& 1\\ 0& 4& 14& 10& 9& 8& 6& 1\\\end{matrix} \right] \left[ \begin{array}{c} 2.4\\ 7.2\\ 10.3\\ 9.1\\ 10.2\\ 4.1\\ 7.6\\ 3.5\\\end{array} \right] =\\=\left[ \begin{matrix} 8& 52\\ 52& 494\\\end{matrix} \right] ^{-1}\left[ \begin{array}{c} 54.4\\ 437.7\\\end{array} \right] =\frac{1}{8\cdot 494-52^2}\left[ \begin{matrix} 494& -52\\ -52& 8\\\end{matrix} \right] \left[ \begin{array}{c} 54.4\\ 437.7\\\end{array} \right] =\frac{1}{1248}\left[ \begin{array}{c} 4113.2\\ 672.8\\\end{array} \right] =\\=\left[ \begin{array}{c} 3.29583\\ 0.539103\\\end{array} \right] \\y'=3.29583+0.539103x

b:

The slope is

β=0.539103\beta =0.539103

Next,



from which

sβ=(yiyi)2(n2)(xixˉ)2=22.10147(82)156=0.153664s_{\beta}=\sqrt{\frac{\sum{\left( y_i-y_i' \right) ^2}}{\left( n-2 \right) \sum{\left( x_i-\bar{x} \right) ^2}}}=\sqrt{\frac{22.10147}{\left( 8-2 \right) \cdot 156}}=0.153664

The confidence interval is

(βt1α/2,n2sβ,β+t1α/2,n2sβ)==(0.539101.943180.15366,0.53910+1.943180.15366)==(0.240511,0.837689)\left( \beta -t_{1-\alpha /2,n-2}s_{\beta},\beta +t_{1-\alpha /2,n-2}s_{\beta} \right) =\\=\left( 0.53910-1.94318\cdot 0.15366,0.53910+1.94318\cdot 0.15366 \right) =\\=\left( 0.240511,0.837689 \right)


LATEST TUTORIALS
APPROVED BY CLIENTS