Study guide

5.2 Binomial & Logistic GLMs for Binary Outcomes

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

5.2 Binomial & Logistic GLMs for Binary Outcomes

Key Takeaways Explain This Topic AI

The PCPA Project explicitly lists binomial among the GLM families a candidate may need, alongside Gamma, Poisson, log-normal and Tweedie.

A log link cannot be used for a binary target because the linear predictor is unbounded while a probability must lie in [0,1]; the logit link maps [0,1] to the whole real line.

The logit is the log of the odds, so exponentiating a coefficient gives an odds ratio: a coefficient of 0.24 raises the odds by e^0.24 - 1, about 27%.

A linear predictor of zero corresponds to a fitted probability of exactly 0.50 under the logistic inverse link.

Retention, large-loss indicators, subrogation potential and fraud referral are the standard P&C uses of logistic regression.

Last updated: September 2026

When the Target Is an Event, Not an Amount

Most of the GLM work in a rating context targets a number: a claim count, a severity, a pure premium. But a large share of P&C analytics targets an event that either happened or did not . The PCPA Project statement lists binomial alongside Gamma, Poisson, log-normal and Tweedie as families a candidate may need, so a binary target is squarely in scope.

Typical P&C binary targets:

Will the policyholder renew ?

Will a newly opened claim exceed a threshold such as $100,000?

Will a subrogation opportunity be realised?

Should this claim be referred for special investigation?

Will a quote convert to a bound policy?

The target y i y_i y i ​ takes the value 1 if the event occurred and 0 if it did not. The model's prediction, μ i \mu_i μ i ​ , is the probability that the event occurs.

Why the Log Link Fails Here

In a GLM, the linear predictor η i = x i T β \eta_i = \mathbf{x}_i^T\boldsymbol{\beta} η i ​ = x i T ​ β is unbounded — as coefficients and covariates move, it can take any value in ( − ∞ , + ∞ ) (-\infty, +\infty) ( − ∞ , + ∞ ) .

A probability cannot. It must satisfy 0 ≤ μ i ≤ 1 0 \le \mu_i \le 1 0 ≤ μ i ​ ≤ 1 .

A log link gives μ i = exp ⁡ ( η i ) \mu_i = \exp(\eta_i) μ i ​ = exp ( η i ​ ) , which is bounded below by 0 but unbounded above . A large enough linear predictor produces a fitted "probability" above 1, which is meaningless. What is needed is a link that stretches the interval [ 0 , 1 ] [0,1] [ 0 , 1 ] across the whole real line.

The Logit Link

The standard choice, and the canonical link for the binomial family, is the logit : g ( μ ) = ln ⁡ ( μ 1 − μ ) g(\mu) = \ln\left(\frac{\mu}{1-\mu}\right) g ( μ ) = ln ( 1 − μ μ ​ )

As μ → 0 \mu \to 0 μ → 0 the logit goes to − ∞ -\infty − ∞ ; as μ → 1 \mu \to 1 μ → 1 it goes to + ∞ +\infty + ∞ . The full model specification is: y i ∼ Binomial ( μ i ) y_i \sim \text{Binomial}(\mu_i) y i ​ ∼ Binomial ( μ i ​ ) ln ⁡ ( μ i 1 − μ i ) = β 0 + β 1 x i 1 + ⋯ + β p x i p \ln\left(\frac{\mu_i}{1-\mu_i}\right) = \beta_0 + \beta_1 x_{i1} + \dots + \beta_p x_{ip} ln ( 1 − μ i ​ μ i ​ ​ ) = β 0 ​ + β 1 ​ x i 1 ​ + ⋯ + β p ​ x i p ​

Inverting the link gives the logistic function , which converts the linear predictor back to a probability: μ i = 1 1 + e − η i \mu_i = \frac{1}{1 + e^{-\eta_i}} μ i ​ = 1 + e − η i ​ 1 ​

Three anchor points are worth committing to memory:

  • Linear predictor η \eta η Fitted probability μ \mu μ
  • − ∞ -\infty − ∞ 0
  • 0 0.50
  • + ∞ +\infty + ∞ 1

The probit and complementary log-log links are alternatives, but the logit is the default in actuarial practice and the one PCPA items are built around.

Reading the Coefficients: Odds Ratios

The quantity μ / ( 1 − μ ) \mu/(1-\mu) μ / ( 1 − μ ) is the odds — the probability of occurrence divided by the probability of non-occurrence. Unlike a probability, odds are unbounded above, which is what makes the log of the odds a sensible linear scale.

Because the link is a logarithm, exponentiating the model equation turns it into a multiplicative model on the odds scale : μ i 1 − μ i = e β 0 ⋅ e β 1 x i 1 ⋯ e β p x i p \frac{\mu_i}{1-\mu_i} = e^{\beta_0} \cdot e^{\beta_1 x_{i1}} \cdots e^{\beta_p x_{ip}} 1 − μ i ​ μ i ​ ​ = e β 0 ​ ⋅ e β 1 ​ x i 1 ​ ⋯ e β p ​ x i p ​

So e β j e^{\beta_j} e β j ​ is an odds ratio :

For a continuous predictor, a one-unit increase multiplies the odds by e β j e^{\beta_j} e β j ​ . A coefficient of 0.24 0.24 0.24 means the odds rise by e 0.24 − 1 ≈ 27 % e^{0.24} - 1 \approx 27\% e 0.24 − 1 ≈ 27% .

For a categorical level, e β j e^{\beta_j} e β j ​ is the odds for that level relative to the base level . A coefficient of 0.24 0.24 0.24 means that level's odds are about 27 % 27\% 27% higher than the base level's.

Warning

An odds ratio is not a probability ratio, and it is not a relative risk. If the base probability is 0.02, the odds are 0.0204; multiplying by 1.271 gives 0.0259, a probability of 0.0253 — about a 26% rise, close to the odds ratio because the event is rare. But if the base probability is 0.60, the odds of 1.50 become 1.907, and the probability moves only from 0.600 to 0.656 — a rise of about 9%. Stating "27% more likely" for a common event is a real interpretation error.

A Worked Retention Example

A renewal model with a logit link produces:

  • Term Coefficient β \beta β e β e^{\beta} e β Reading
  • Intercept 1.20 3.32 Base-level odds of renewing are 3.32 to 1, i.e. probability 0.769
  • Rate increase > 10% -0.55 0.577 Odds of renewal fall by about 42%
  • Tenure 5+ years 0.48 1.616 Odds of renewal rise by about 62%
  • Prior claim in term -0.22 0.803 Odds of renewal fall by about 20%

For a five-year-tenure policyholder with no prior claim receiving a rate increase above 10%: η = 1.20 − 0.55 + 0.48 = 1.13 \eta = 1.20 - 0.55 + 0.48 = 1.13 η = 1.20 − 0.55 + 0.48 = 1.13 μ = 1 1 + e − 1.13 = 1 1 + 0.3230 = 0.756 \mu = \frac{1}{1 + e^{-1.13}} = \frac{1}{1 + 0.3230} = 0.756 μ = 1 + e − 1.13 1 ​ = 1 + 0.3230 1 ​ = 0.756

Roughly a 76% chance of renewing. Note how the model arithmetic is additive on the logit scale and multiplicative on the odds scale — the same structural property that makes log-link severity and frequency models produce multiplicative rating factors.

Fitting and Response Formats

Binomial GLMs accept the target in more than one form, and getting this wrong silently changes the weights:

  • Form R Notes
  • 0/1 indicator per record glm(renewed ~ ., family = binomial, data = df) One row per risk; the default

Proportion with weights glm(prop ~ ., family = binomial, weights = n, data = df) Grouped data; n is the number of trials in the cell

Two-column successes/failures glm(cbind(succ, fail) ~ ., family = binomial, data = df) Equivalent to the weighted form

In Python, sm.GLM(y, X, family=sm.families.Binomial()) with freq_weights plays the same role; in SAS, PROC GENMOD or PROC LOGISTIC with DIST=BINOMIAL LINK=LOGIT and an EVENTS/TRIALS response.

Warning

Check which outcome the software treats as the "event." PROC LOGISTIC by default models the probability of the lower ordered value, which frequently means it models the probability of non -renewal unless you specify DESCENDING or an explicit EVENT= option. Every sign in the coefficient table flips, and the model looks nonsensical until you notice.

Validating a Logistic Model

The usual GLM diagnostics apply — deviance, AIC and BIC, residual review — but two validation tools are specific to binary targets and appear directly in the assigned Monograph chapter:

A quantile plot built by bucketing holdout records into quantiles of predicted probability and plotting the actual proportion of events against the average predicted probability. The same three criteria apply: accuracy, monotonicity, and vertical distance between the first and last quantiles.

The confusion matrix and ROC curve , which convert probabilities into binary decisions at a chosen discrimination threshold. These are covered in detail in the validation chapter.