03 · 14
Weaker than it lookedOne lucky split: R² 0.906 from 40 rows
Across 1,000 random splits of the book's Advertising data, the same model scores between 0.75 and 0.96. Repeated cross-validation settles at 0.886.
Read the audit
Loading project…
I plotted sales against TV, radio and newspaper budgets, then fitted a linear regression on all three and scored it on one 80/20 split.
Original tutorial by Aman Kharwal: Future Sales Prediction (opens in a new tab)
| Output | Value | Cell # |
|---|---|---|
| Test R² (linear regression) | 0.906 | |
| Predicted sales for one budget mix | 21.37 |
Cell # counts every cell from the top of the notebook, Markdown included, starting at 1.
R² of 0.906 comes from 40 test rows chosen by one random seed.
A 200-row advertising table, a re-upload of the Advertising data from An Introduction to Statistical Learning with some sales values changed.
03 · 14
Weaker than it lookedAcross 1,000 random splits of the book's Advertising data, the same model scores between 0.75 and 0.96. Repeated cross-validation settles at 0.886.
Read the audit