Mileage, Cylinder, Doors, Cruise, Sound, Leather, make, body styleMileage, Cylinder, Cruise, Sound, Leather, Buick, Cadillac, Chevy, Pontiac, Saab, convertible, coupe, hatchback, sedanSaturn, wagon
\[1 + \sum_{d=0}^{p-1}(p - d) = 1 + \frac{p(p+1)}{2}\]
106 models for \(p = 14\), against 16,384 for best subset selection
Greedy: forward never removes a feature it has added, backward never restores one it has removed
| Method | Size 1 (RSS) | Size 2 (RSS) | Size 3 (RSS) |
|---|---|---|---|
| Best subset | Cadillac (44.51) | Cylinder + Saab (14.51) | Cylinder + Cadillac + Saab (9.56) |
| Forward | Cadillac (44.51) | Cadillac + Saab (27.51) | Cylinder + Cadillac + Saab (9.56) |
| Backward | Cylinder (45.52) | Cylinder + Saab (14.51) | Cylinder + Cadillac + Saab (9.56) |

\[E\left[\sum_{i=1}^n\left(y_i^0 - \widehat y_i\right)^2\right] = E\left[RSS\right] + 2\sigma^2\,\text{tr}(\mathbf{H}) = E\left[RSS\right] + 2(d+1)\sigma^2\]
\[C_p = \frac{1}{n}\left(RSS + 2d\widehat\sigma^2\right)\]
\[\text{BIC} = \frac{1}{n}\left[RSS + \log(n)\,d\widehat\sigma^2\right]\]
\[\text{Adjusted } R^2 = 1 - \frac{RSS/(n - d - 1)}{TSS/(n - 1)}\]
Choose the smallest \(C_p\) or BIC, the largest adjusted \(R^2\)
\[\log L = -\frac{n}{2}\log\left(2\pi\widehat\sigma^2\right) - \frac{RSS}{2\widehat\sigma^2}\]
\[\text{AIC} = -2\log L + 2(d + 1), \qquad \text{BIC} = -2\log L + \log(n)(d + 1)\]
| Feature | \(\widehat\beta_j\) | Change in median price |
|---|---|---|
| (Intercept) | 9.015 | |
| Mileage | -8.199e-06 | -7.9% |
| Cylinder | 0.1865 | 20.5% |
| Leather | 0.03446 | 3.5% |
| Buick | 0.1204 | 12.8% |
| Cadillac | 0.4288 | 53.5% |
| Saab | 0.7032 | 102.0% |
| convertible | 0.1572 | 17.0% |
| coupe | -0.1178 | -11.1% |
| hatchback | -0.2924 | -25.4% |
| sedan | -0.1681 | -15.5% |
Cruise, Sound, Chevy, PontiacChevy, Pontiac and Saturn together
DS 3030