Clustered Data
Study guide: Exam MAS-II
Clustered data are observations that arrive in groups — policies within agencies, claims within adjusters, several years of experience on the same policyholder — so that observations in the same cluster are more alike than observations in different ones. They break the independence assumption of Linear Regression and the Generalized Linear Model, and they are the reason the Linear Mixed Model exists.
y_{ij} = \mathbf{x}_{ij}^\top\boldsymbol\beta + b_i + \varepsilon_{ij}
\mathrm{Corr}(y_{ij}, y_{ik}) = \frac{\sigma_b^{2}}{\sigma_b^{2} + \sigma^{2}}
iindexes clusters andjthe observations within one.b_i \sim N(0, \sigma_b^2)is a random effect shared by everything in clusteri, and\varepsilon_{ij} \sim N(0, \sigma^2)is independent noise. The sharedb_iis what correlates two different observationsj \neq kof the same cluster, by the intraclass correlation in the second block- Grouped (nested) data: each unit belongs to one group at each level — policies in agencies in regions — the setting of a hierarchical model. Crossed data: each observation is classified by two groupings at once, such as the adjuster and the repair shop on a claim (Nested and Crossed Factors)
- Repeated measures (longitudinal) data: the same unit observed several times. The correlation often weakens as the time between observations grows, which calls for an AR(1) or similar covariance structure rather than one common correlation
- Ignoring the clustering typically leaves the coefficient estimates unbiased but makes their standard errors too small:
mcorrelated observations in a cluster carry only as much information asm / [1 + (m - 1)\rho]independent ones. Predictors that vary only between clusters are hit hardest, and effects that are not real look significant - Remedies: a random intercept (and perhaps a random slope) for each cluster; a marginal model that specifies the correlation of the residuals directly; or one fixed-effect indicator per cluster, which spends a parameter per cluster and does no shrinkage. The random-effect route predicts each cluster's effect by its BLUP, a credibility-weighted estimate
- A mixed model can also let the residual variance differ by group instead of assuming it constant. And in cross-validation, a cluster must be held out whole — otherwise its correlated rows left in training leak its information into the test
A Significant Effect That Is Not A fleet-level indicator (telematics installed) is tested in a regression on
1{,}000observations:200commercial fleets, each observed for5years. Fitted as if independent, itst-statistic is2.5. The intraclass correlation of the residuals within a fleet is0.30. Correct the test.Answer The indicator is constant within each fleet, so the full design effect applies to it:
\begin{align*} \text{Design effect} &= 1 + (5 - 1)(0.30) \\ &= 2.2 \\ n_{\text{eff}} &= \frac{1{,}000}{2.2} \\ &= 455 \\ t_{\text{corrected}} &= \frac{2.5}{\sqrt{2.2}} \\ &= 1.69 \end{align*}The standard error was understated by a factor of
\sqrt{2.2} = 1.48. At1.69the effect is no longer significant at the5\%level (two-sided critical value1.96). The1{,}000rows hold about as much information as455independent ones — and on a fleet-level question, really only200fleets' worth.
Recognizing the Clustering in a Claims File A workers compensation file has one row per claim for
6years, recording the employer (the policyholder, most with claims in several years), the adjuster (each handles claims from many employers), and the claim's incurred loss. Describe the clustering and a mixed-model structure for it.Answer
- Employer is a cluster observed repeatedly: claims from the same employer share its safety culture and payroll mix, and its year-to-year results form longitudinal data
- Adjuster is a second cluster: claims handled by the same adjuster share that adjuster's reserving and settlement habits
- The two are crossed, not nested: an adjuster works claims from many employers, and an employer's claims go to many adjusters
A reasonable start is crossed random intercepts for employer and adjuster, with the rating variables as fixed effects. If an employer's residuals correlate more strongly in adjacent years than in distant ones, add an AR(1) structure over years within employer. Treating the rows as independent would overstate how much is known about every employer-level variable.