Loading project…
Loading project…
I mapped sex and smoker to 0 and 1, checked correlations (smoking has by far the strongest link to charges) and trained a random forest on age, sex, BMI and smoker.
Original tutorial by Aman Kharwal: Health Insurance Premium Prediction (opens in a new tab)
| Output | Value | Cell # |
|---|---|---|
| Correlation of smoker with charges | 0.79 |
Cell # counts every cell from the top of the notebook, Markdown included, starting at 1.
The notebook printed five predictions and no score.
The 1,338-row medical cost table bundled as Health_insurance.csv.