Ulysses’ Compass

Bayesian
DAGs
Rethinking
Notes on Week 4 of Statistical Rethinking (2023 edition): over-fitting, model comparison and information theory basics.
Published

September 10, 2026

Show the code
import pandas as pd
from pyprojroot import here

divorce_df = pd.read_csv(here('edu/data/WaffleDivorce.csv'), sep=';')
divorce_df.sample(3)
         Location Loc  Population  ...  Slaves1860  Population1860  PropSlaves1860
10        Georgia  GA        9.69  ...      462198         1057286            0.44
28  New Hampshire  NH        1.32  ...           0          326073            0.00
11         Hawaii  HI        1.36  ...           0               0            0.00

[3 rows x 13 columns]