Predictive Insights AI · Book
Contents
  1. Introduction
  2. Ch 0 · DataFest
  3. 1.1 Data exploration
  4. 1.2 Intro to modeling
  5. 1.3 GLMs
  6. 1.4 GLMs for classification
  7. 1.5 Classification metrics
  8. 1.6 More GLM topics
  9. 1.7 Variable selection
  10. 1.8 Tree-based models
  11. 1.9 Unsupervised learning
  12. Ch 2 · Cybersecurity
  13. 3.1 Health costs case study
  14. 3.2 Apartment applicants
  15. 3.3 Titanic case study
  16. Ch 4 · Tools
  17. Ch 5 · Seven mistakes
  18. Ch 6 · Entrepreneurship
  19. Wrap-up
  20. Appendix
  21. References
  22. PA R Study Manual

Predictive Analytics & Risk Modeling: For Insurance and Actuarial Science

Chapter 1.8: Tree-Based Models: Decision Trees, Random Forests and GBMs

Full edition

Decision trees, ensemble learning, random forests, gradient boosted trees and prediction intervals from quantile GBMs.

This chapter is in the full direct PDF edition. The free online sample covers the Introduction, Chapter 0 and References.

Direct sales open soon. Check back shortly.

Full direct PDF edition: $14.99, sold by the author via X Money only.

Buy the PDF for $14.99 via X Money

Pay via X Money with the note EBOOK-B plus your email, and Sam emails the PDF within 24 hours. Questions: ExamPATutor@gmail.com. How buying direct works

Free companion material for this chapter:

Datasets and R setup for this chapter

Install the packages used in this chapter (free, from CRAN):

install.packages(c("tidyverse", "ExamPAData", "caret", "rpart", "randomForest", "gbm", "pdp"))

health_insurance: ExamPAData package: MIT license (CRAN). Package docs describe it as practice-exam health claims data. A similar public 1,338-row ‘Medical Cost Personal Datasets’ file is on Kaggle under ODbL / Database Contents License. Source: https://cran.r-project.org/package=ExamPAData

install.packages("ExamPAData")
library(ExamPAData)
data(health_insurance)

soa_mortality: License NOT confirmed: this dataset is not in the CRAN release of ExamPAData. Treat it as unavailable until the author confirms the source.

# Not in the CRAN release of ExamPAData (v0.5.0).
# Source to be confirmed by the author before publishing.

insurance.csv: Kaggle ‘Medical Cost Personal Datasets’: Open Database License (ODbL), contents under Database Contents License. Source: https://www.kaggle.com/datasets/mirichoi0218/insurance

# Python example: download insurance.csv from Kaggle (free account required)
# https://www.kaggle.com/datasets/mirichoi0218/insurance
import pandas as pd
data = pd.read_csv("insurance.csv")

Sources and further reading

More from the author: predictiveinsightsai.com