PSYC 573
Complex models require more data
What it is (roughly) | Better when index is | |
---|---|---|
Entropy | Amount of uncertainty/information in the outcome variable(s) | — |
KL Divergence | “Discrepancy” from “true” model | smaller |
elpd | “Fit” to sample data | larger |
deviance | \(-2\) \(\times\) in-sample elpd | smaller |
AIC/WAIC | out-of-sample prediction error | smaller |
LOOIC | out-of-sample prediction error | smaller |
Entropy of \(M_0\) = -2.112
elpd | \(D_\textrm{KL}(M_0 \mid M_.)\) | |
---|---|---|
\(M_1\) | -2.175 | 0.063 |
\(M_2\) | -2.371 | 0.259 |
Expected log pointwise predictive density
\[ \sum_i \log P_{M_1} (y_i) \]
Note: elpd is a function of sample size
Training set: 25 states; Test set: 25 remaining states
Approximate discrepancy between in-sample and out-of-sample elpd
IC = \(-2\) \(\times\) (in-sample elpd \(-\) \(p\))
\(p\) = penalty for model complexity
Choose a model with smaller IC
Bayesian ICs: DIC, WAIC, etc
Split the sample into K parts
Fit a model with K - 1 parts, and obtain elpd for the “hold-out” part
Leave-one-out: K = N
Very computationally intensive
loo
package: approximation using Pareto smoothed importance sampling
\[ \texttt{Divorce}_i \sim N(\mu_i, \sigma) \]
Marriage
Marriage
, South
, Marriage
\(\times\) South
South
, smoothing spline of Marriage
by South
Marriage
, South
, MedianAgeMarriage
, Marriage
\(\times\) South
, Marriage
\(\times\) MedianAgeMarriage
, South
\(\times\) MedianAgeMarriage
, Marriage
\(\times\) South
\(\times\) MedianAgeMarriage
M1 | M2 | M3 | M4 | |
---|---|---|---|---|
b_Intercept | 0.61 | 0.67 | 0.94 | 5.52 |
b_Marriage | 0.18 | 0.13 | −1.20 | |
b_Southsouth | −0.63 | 0.10 | 0.31 | |
b_Marriage × Southsouth | 0.37 | 0.54 | ||
bs_sMarriage × SouthnonMsouth_1 | −0.47 | |||
bs_sMarriage × Southsouth_1 | 1.21 | |||
sds_sMarriageSouthnonMsouth_1 | 0.87 | |||
sds_sMarriageSouthsouth_1 | 0.50 | |||
b_MedianAgeMarriage | −1.72 | |||
b_Marriage × MedianAgeMarriage | 0.45 | |||
b_MedianAgeMarriage × Southsouth | −0.34 | |||
b_Marriage × MedianAgeMarriage × Southsouth | −0.09 | |||
ELPD | 15.0 | 18.2 | 17.7 | 23.5 |
ELPD s.e. | 5.0 | 5.5 | 5.9 | 6.2 |
LOOIC | −30.1 | −36.5 | −35.3 | −47.1 |
LOOIC s.e. | 9.9 | 11.0 | 11.7 | 12.3 |
RMSE | 0.17 | 0.15 | 0.14 | 0.13 |
See notes on stacking and regularization