Study guide

2.3 Exploratory Data Analysis & Evaluating a Data Set

CAS Property & Casualty Predictive Analytics PCPA

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: PCPA Exam & Project Orientation

1.1 PCPA Exam Format, Scoring & Registration 1.2 The PCPA Project: Windows, Deliverables & Grading

2 Chapter 2: Dealing with Data — Sourcing, Importing & Assessing

2.1 Requirements Gathering & Assessing Data Relevance 2.2 Importing, Joining & Reshaping Data Sets 2.3 Exploratory Data Analysis & Evaluating a Data Set 2.4 Data Quality Under ASOP 23 & Modeling Under ASOP 56

3 Chapter 3: Dealing with Data — Conditioning P&C Data for a GLM

3.1 Exposure Bases, Weights & Data Grain 3.2 Missing Data Mechanisms & Imputation Strategies 3.3 Outlier Diagnostics, Trimming & Winsorization 3.4 Variable Transformation & Scaling

4 Chapter 4: Model Diagnostics & Selection — Building a GLM

4.1 Exponential Dispersion Family & Link Functions 4.2 Poisson Regression & Exposure Offsets 4.3 Overdispersion, Quasi-Poisson & Negative Binomial 4.4 Gamma & Inverse Gaussian Models for Claim Severity

5 Chapter 5: Model Diagnostics & Selection — Model Form & Predictors

5.1 Tweedie Compound Poisson-Gamma Modeling 5.2 Binomial & Logistic GLMs for Binary Outcomes 5.3 Categorical Predictors, Base Levels & High-Cardinality Grouping 5.4 Interaction Terms & Non-Linear Effects 5.5 Interpreting Coefficients & Multiplicative Relativities

6 Chapter 6: Model Diagnostics & Selection — Evaluating and Improving the Fit

6.1 Deviance, Likelihood Ratio Tests & Residual Diagnostics 6.2 Stepwise Selection & Information Criteria Penalties 6.3 Multicollinearity, Correlated Predictors & Aliasing 6.4 Under-fitting, Over-fitting & Cross-Validation

7 Chapter 7: Model Diagnostics & Selection — Validation & Model Choice

7.1 Actual vs. Predicted, Calibration & Loss Ratio Charts 7.2 Simple Quantile Plots & Measuring Lift 7.3 Double Lift Charts & Competing Model Evaluation 7.4 Gini Index, Lorenz Curves & ROC Curves

8 Chapter 8: Model Interpretation & Presentation — Tables, Charts & Exhibits

8.1 Designing Tables & Statistical Exhibits 8.2 Chart Selection & Graphical Perception 8.3 How Charts Mislead 8.4 One-Way, Two-Way & Partial Dependence Exhibits

9 Chapter 9: Model Interpretation & Presentation — Communicating the Analysis

9.1 Communicating Methodology & Modeling Decisions 9.2 Explaining Why a Variable Was or Was Not Included 9.3 Communicating to Non-Technical Audiences 9.4 The PCPA Technical Report: Structure & Rubric

2.3 Exploratory Data Analysis & Evaluating a Data Set

Key Takeaways Explain This Topic AI

EDA on insurance data must be exposure-weighted; an unweighted mean treats a one-month policy as equal evidence to a full-year fleet policy.

Univariate review establishes counts, missingness, ranges and level frequencies; bivariate review establishes the shape of each predictor's relationship to the target before any model is fitted.

Thin categorical levels are the most common source of unstable GLM coefficients, so an exposure count by level is a required EDA output, not an optional one.

Loss data is right-skewed with a large point mass at zero, so plotting on a log scale and separating frequency from severity reveals structure that a raw histogram hides.

Gelman and Unwin distinguish information visualisation, which is built to attract and communicate, from statistical graphics, which are built to reveal and check; EDA needs the second kind.

Last updated: September 2026

What EDA Is For

The Content Outline asks candidates to import, manipulate, and evaluate data sets. "Evaluate" is exploratory data analysis, and on the project it is an explicit rubric item: the candidate must describe anomalous characteristics of the data and how they were addressed.

EDA answers four questions before any model is fitted:

Is the data what I was told it is? Row counts, date ranges, totals reconciled to a source.

What is broken? Missingness, impossible values, duplicate keys, thin levels.

What shape does each predictor have? Skew, spikes, natural groupings, monotone or U-shaped relationships to the target.

What should the model form be? Which distribution, which transformations, which variables to band, which interactions to test.

A GLM fitted before this work is done is a guess. A GLM fitted after it is a hypothesis.

Weight Everything by Exposure

This is the single largest difference between generic data science EDA and actuarial EDA. Insurance records do not carry equal evidence. A one-month policy carries one twelfth of the information of a one-year policy; a 200-vehicle fleet carries 200 times the information of a single car.

Therefore:

The mean frequency for a group is sum(claims) / sum(exposure) , never mean(claims / exposure) .

The mean severity for a group is sum(loss) / sum(claim count) , weighted by claim count, not by policy.

The mean pure premium for a group is sum(loss) / sum(exposure) .

Every one-way plot should carry exposure as bars on a secondary axis so the reader can see which points are credible.

Warning

An unweighted average of claims / exposure is dominated by short-term policies, because a single claim on a 0.08-year policy produces an empirical frequency of 12.5. This is the fastest way to produce a plausible-looking one-way plot that is entirely noise.

The Univariate Pass

For every field, produce and read:

Field type What to produce What you are looking for

Continuous n, missing count, min, 1st/25th/50th/75th/99th percentile, max, mean, sd Impossible values, sentinel codes (999, -1), spikes at round numbers, heavy right tail

Categorical Level count, exposure and record count per level, missing count Thin levels, near-duplicate levels ("NY" vs "N.Y."), an "unknown" level that is really missingness

Date Min, max, distribution by month Gaps, an extract that is shorter than requested, effective dates after expiry dates

Key Distinct count vs row count Duplicates that will multiply exposure at join time

Target Zero proportion, distribution of non-zero values, largest values The point mass at zero, shock losses, negative incurred values from reserve takedowns

Sentinel values deserve special attention. A driver_age of 99 or 999, a years_licensed of -1, and a vehicle_year of 1900 are almost always encoded missingness rather than real observations, and they will distort a fitted slope badly if they are treated as numbers.

The Bivariate Pass

Once each field is understood alone, look at each against the target. The workhorse exhibit is the one-way plot :

Group the data by the predictor — by level for a categorical, by band for a continuous.

Within each group compute exposure, observed frequency, observed severity, and observed pure premium.

Plot the observed statistic as a line or point, with exposure as bars behind it.

Read it for four things:

Direction and shape. Monotone increasing, decreasing, U-shaped (driver age is the classic U), or flat.

Credibility. Bands with tiny exposure will bounce; do not read a trend from them.

Non-linearity. A continuous predictor whose banded relationship curves tells you that entering it as a single linear term will not fit, and that a polynomial, piecewise-linear term, or banding is needed.

Thin levels. Levels with too little exposure to support their own coefficient must be grouped before modelling.

For predictor-to-predictor relationships, a correlation matrix for continuous fields and a two-way exposure table for categorical pairs will reveal the near-duplication that later shows up as multicollinearity or aliasing.

The Distinctive Shape of Loss Data

Three features of P&C loss data drive modelling choices, and all three are visible in EDA:

A large point mass at zero. Most policies have no claim. A histogram of pure premium is therefore a spike at zero with a thin smear to the right. This is exactly the structure the Tweedie distribution is built for, and seeing it is the justification for choosing Tweedie over Gamma for a pure premium target.

Extreme right skew in severity. Individual claim amounts span several orders of magnitude. Plot severity on a log scale — on a linear scale, one $4 million claim compresses every other observation onto the axis. The skew is also why Gamma with a log link usually beats a normal linear model for severity.

Heterogeneous exposure. Already covered above, and the reason offsets and weights exist.

Exploratory Graphics vs. Presentation Graphics

Gelman and Unwin's assigned paper draws a distinction that PCPA cares about in both directions. Information visualisation is designed to attract attention and communicate a message to a broad audience; it prizes novelty, aesthetics, and a single clear takeaway. Statistical graphics are designed to reveal structure and check models; they prize small multiples, default axes, density of information, and the ability to show what is wrong .

EDA needs statistical graphics. Quick, ugly, numerous, disposable plots are correct at this stage. The project report needs the other kind, but only after the exploratory work has told you what there is to say. Reversing the order — polishing a chart before you know whether the pattern is credible — wastes the scarcest resource in a two-week window.

An EDA Checklist for the Project

Reconcile row count, exposure and incurred loss to the source file.

Missingness table for every field, by segment as well as in total.

Exposure by level for every categorical; flag levels below a credibility floor.

Percentile table for every continuous field; flag sentinels and impossible values.

One-way exposure-weighted plot of the target against every candidate predictor.

Correlation matrix of continuous predictors.

A written note of every anomaly found and the action taken — this is the wording you will reuse for rubric criterion A-4.