3.4 The Marketing Plan
We now briefly return to the seven questions about the Advertising data that we set out to answer at the beginning of this chapter.
-
Is there a relationship between sales and advertising budget? This question can be answered by fitting a multiple regression model of
salesontoTV,radio, andnewspaper, as in (3.20), and testing the hypothesis $H_0$ : βTV= βradio= βnewspaper= 0. In Section 3.2.2, we showed that the $F$-statistic can be used to determine whether or not we should reject this null hypothesis. In this case the $p$-value corresponding to the $F$-statistic in Table 3.6 is very low, indicating clear evidence of a relationship between advertising and sales. -
How strong is the relationship? We discussed two measures of model accuracy in Section 3.1.3. First, the RSE estimates the standard deviation of the response from the population regression line. For the
Advertisingdata, the RSE is 1 . 69 units while the mean value for the response is 14 . 022, indicating a percentage error of roughly 12 %. Second, the $R^2$ statistic records the percentage of variability in the response that is explained by the predictors. The predictors explain almost 90 % of the variance insales. The RSE and $R^2$ statistics are displayed in Table 3.6. -
Which media are associated with sales? To answer this question, we can examine the $p$-values associated with each predictor’s $t$-statistic (Section 3.1.2). In the multiple linear regression displayed in Table 3.4, the $p$-values for
TVandradioare low, but the $p$-value fornewspaperis not. This suggests that onlyTVandradioare related tosales. In Chapter 6 we explore this question in greater detail.
110 3. Linear Regression
- How large is the association between each medium and sales? We saw in Section 3.1.2 that the standard error of \hat{\beta} j can be used to construct confidence intervals for $\beta_j$ . For the
Advertisingdata, we can use the results in Table 3.4 to compute the 95 % confidence intervals for the coefficients in a multiple regression model using all three media budgets as predictors. The confidence intervals are as follows: (0 . 043 , 0 . 049) forTV, (0 . 172 , 0 . 206) forradio, and ( − 0 . 013 , 0 . 011) fornewspaper. The confidence intervals forTVandradioare narrow and far from zero, providing evidence that these media are related tosales. But the interval fornewspaperincludes zero, indicating that the variable is not statistically significant given the values ofTVandradio.
We saw in Section 3.3.3 that collinearity can result in very wide standard errors. Could collinearity be the reason that the confidence interval associated with newspaper is so wide? The VIF scores are 1 . 005, 1 . 145, and 1 . 145 for TV , radio , and newspaper , suggesting no evidence of collinearity.
In order to assess the association of each medium individually on sales, we can perform three separate simple linear regressions. Results are shown in Tables 3.1 and 3.3. There is evidence of an extremely strong association between TV and sales and between radio and sales . There is evidence of a mild association between newspaper and sales , when the values of TV and radio are ignored.
-
How accurately can we predict future sales? The response can be predicted using (3.21). The accuracy associated with this estimate depends on whether we wish to predict an individual response, Y = $f(X)$ + \epsilon , or the average response, $f(X)$ (Section 3.2.2). If the former, we use a prediction interval, and if the latter, we use a confidence interval. Prediction intervals will always be wider than confidence intervals because they account for the uncertainty associated with \epsilon , the irreducible error.
-
Is the relationship linear? In Section 3.3.3, we saw that residual plots can be used in order to identify non-linearity. If the relationships are linear, then the residual plots should display no pattern. In the case of the
Advertisingdata, we observe a non-linear effect in Figure 3.5, though this effect could also be observed in a residual plot. In Section 3.3.2, we discussed the inclusion of transformations of the predictors in the linear regression model in order to accommodate non-linear relationships. -
Is there synergy among the advertising media? The standard linear regression model assumes an additive relationship between the predictors and the response. An additive model is easy to interpret because the association between each predictor and the response is unrelated to the values of the other predictors. However, the additive assumption may be unrealistic for certain data sets. In Section 3.3.2, we showed how to include an interaction term
3.5 Comparison of Linear Regression with K -Nearest Neighbors 111
in the regression model in order to accommodate non-additive relationships. A small $p$-value associated with the interaction term indicates the presence of such relationships. Figure 3.5 suggested that the Advertising data may not be additive. Including an interaction term in the model results in a substantial increase in $R^2$ , from around 90 % to almost 97 %.