Tutorials › CAS Exam 8 - Advanced Ratemaking › Handling Imbalanced Renewal Outcomes

CAS Exam 8 · Retention and Churn Modeling · Tutorial 852 of 989

Handling Imbalanced Renewal Outcomes

Distinguish methods for handling rare renewal outcomes and preserve sound probability-based portfolio estimates.

Advanced 11 min read

What You'll Learn

  • Measure class imbalance using the renewal prediction unit and observation window.
  • Explain why accuracy can conceal poor identification of the less common outcome.
  • Adjust weighted or resampled probabilities back to the natural portfolio prevalence.
  • Select classification thresholds for an operational purpose without confusing labels with probabilities.
  • Estimate expected renewals by summing appropriate policy-level probabilities.
  • Identify assumptions and validation checks needed when applying imbalance adjustments.

Why Imbalanced Renewal Outcomes Need Careful Handling

A renewal model can predict well for the common outcome and still be ineffective for the outcome that matters operationally. For example, if most policies renew, a model that labels every policy as a renewal may have high overall accuracy while detecting none of the nonrenewals. The issue is not simply that one class is smaller: it is that a model, metric, or decision rule can hide weak performance on that class.

Start with a clearly defined prediction unit and outcome window. Here, let \(Y=1\) mean that a policy renews at its eligible renewal date, and let \(Y=0\) mean that it does not. The renewal prevalence in the target portfolio is the proportion of eligible policies with \(Y=1\). The model’s estimated renewal probability for policy \(j\) is \(p_j=P(Y_j=1\mid X_j)\), where \(X_j\) denotes predictors available at the time the prediction is made.

Definition: Class imbalance means that the observed outcome classes have substantially different frequencies in the modeling data. It is a property of the outcome distribution in a specified cohort and observation window, not by itself evidence that the model is defective or that the less common class should be made equally frequent.

The relevant prevalence is the prevalence in the population for which predictions will be used. A training sample altered by oversampling or undersampling can have a different prevalence. Confusing that altered sample with the target portfolio can lead to miscalibrated probabilities and incorrect renewal forecasts.

Diagnose the Imbalance Before Choosing a Method

Report the number and proportion of each outcome, both overall and for important cohorts such as renewal period or product segment. Check that counts use the intended prediction unit: a policy-level outcome should not be counted as if each repeated record were an independent policy. Also verify that the renewal label and observation window are consistently defined.

Accuracy alone can be misleading. If renewal is common, predicting renewal for everyone may produce high accuracy but zero ability to identify nonrenewals. A confusion matrix makes this visible. For a nonrenewal detection task, treat nonrenewal as the positive class: a true positive is a correctly identified nonrenewal, and a false negative is a nonrenewal predicted as renewal. Recall for nonrenewal is the proportion of actual nonrenewals identified. Precision is the proportion of policies labeled nonrenewal that actually do not renew.

Worked Example: High Accuracy, No Nonrenewal Detection

A hypothetical renewal cohort contains 1,000 eligible policies. Of these, 920 renew and 80 do not. A model labels every policy as a renewal. Calculate accuracy and nonrenewal recall, and explain what the results say.

Step 1: Count correct predictions. The model correctly labels the 920 renewals and incorrectly labels all 80 nonrenewals. Thus, the number correct is \(920+0=920\).

Step 2: Calculate accuracy. Accuracy is the fraction of all predictions that are correct: \(920/1{,}000=0.9200\), or 92.00%.

Step 3: Calculate nonrenewal recall. There are no nonrenewals predicted, so the model identifies \(0\) of the \(80\) actual nonrenewals. Recall is \(0/80=0\).

Interpretation and trap. The model’s 92.00% accuracy does not mean it is useful for finding nonrenewals: nonrenewal recall is zero. Precision for the nonrenewal class is undefined here because the model made no nonrenewal predictions. Do not treat high accuracy as proof that both classes are being modeled adequately.

Class Weighting and Probability Correction

Class weighting changes the contribution of observations to the fitting objective. For example, an analyst may assign greater weight to nonrenewals so that errors on the less frequent class have more influence. Weighting can help a model learn a useful distinction, but the resulting fitted probabilities generally correspond to the weighted objective, not directly to the natural portfolio prevalence.

A useful adjustment follows when the only change is a constant class weight: let the renewal class \(Y=1\) have weight \(w_1\), and the nonrenewal class \(Y=0\) have weight \(w_0\). Under correct model specification and a weighted likelihood that changes only these class contributions, the weighted conditional renewal probability \(q\) and natural probability \(p\) satisfy the odds relation below. This relation is exact for the population optimum under those assumptions; finite samples, model misspecification, regularization, or weights that vary within a class can make a simple correction imperfect.

$$ \frac{q}{1-q}=\frac{w_1}{w_0}\frac{p}{1-p}, \qquad \frac{p}{1-p}=\frac{w_0}{w_1}\frac{q}{1-q}. $$

The reason is that, conditional on predictors, the weighted contributions associated with renewal and nonrenewal are proportional to \(w_1p\) and \(w_0(1-p)\), respectively. Their ratio is \(w_1p/[w_0(1-p)]\), which is the weighted renewal odds. To return to natural odds, multiply by \(w_0/w_1\), then convert odds to probability using \(p=O/(1+O)\).

Worked Example: Correcting Probabilities After Class Weighting

A hypothetical model gives extra weight to nonrenewals: \(w_1=1\) for renewals and \(w_0=4\) for nonrenewals. For a policy profile, the weighted model reports a renewal probability \(q=0.5000\). Apply the odds correction and verify the natural probability.

Method. Use the class-weight odds correction, with the stated weights. This example assumes the weighting is the only change to the population likelihood and that the model is correctly specified.

Step 1: Find the weighted renewal odds. The reported probability is \(q=0.5\), so its odds are \(q/(1-q)=0.5/0.5=1\).

Step 2: Correct the odds. Natural renewal odds equal weighted odds times \(w_0/w_1\): \(1\times(4/1)=4\).

Step 3: Convert corrected odds to probability. The natural renewal probability is \(4/(1+4)=4/5=0.8000\).

Check and common mistake. Starting with \(p=0.8\), the weighted probability would be \(w_1p/[w_1p+w_0(1-p)]=0.8/[0.8+4(0.2)]=0.8/1.6=0.5\), matching the reported value. A common error is to use \(w_1/w_0\) rather than \(w_0/w_1\) when correcting the weighted odds; that would move the result in the wrong direction.

Weighting is a fitting choice, not a substitute for checking probability quality on data representative of the intended portfolio. It can change slopes as well as the intercept in finite or misspecified models. If weighting is used to improve identification of nonrenewals, assess both the operational classification performance and whether probabilities remain suitable for forecasting.

Resampling and the Natural Prevalence

Resampling changes which outcomes, or how many copies of outcomes, appear in the training data. Oversampling may repeat or otherwise increase the representation of a less frequent class; undersampling may remove observations from the more frequent class. Neither operation changes the underlying outcome prevalence in the target portfolio. If selection into the resampled data depends only on outcome class, a prevalence correction can be derived from the class-specific inclusion rates.

Let \(s_1\) and \(s_0\) be the probabilities that a renewal and a nonrenewal, respectively, are included in the resampled data. If \(q\) is the renewal probability in that data and sampling is independent of predictors within each outcome class, then sampled renewal odds equal \((s_1/s_0)\) times natural renewal odds. Consequently, natural odds are sampled odds multiplied by \(s_0/s_1\). The condition about sampling within classes matters: if selection also depends on policy characteristics, a single prevalence adjustment may not recover policy-level probabilities.

Worked Example: Correcting an Oversampled Renewal Sample

A hypothetical training process keeps every renewal and includes each nonrenewal five times as often as it otherwise would, so \(s_1=1\) and \(s_0=5\), interpreted as relative inclusion rates. For a particular policy profile, the resampled-data renewal probability is exactly \(q=2/17\). Find the natural renewal probability.

Step 1: Calculate sampled odds without rounding. Since \(1-q=15/17\), the sampled odds are \((2/17)/(15/17)=2/15\).

Step 2: Undo the sampling effect. Natural renewal odds are sampled odds times \(s_0/s_1\): \((2/15)(5/1)=10/15=2/3\).

Step 3: Convert odds to probability. The natural probability is \((2/3)/(1+2/3)=(2/3)/(5/3)=2/5=0.4000\).

Check and common mistake. If the natural probability is \(0.4\), its renewal odds are \(0.4/0.6=2/3\). Because nonrenewals are included five times as often, the sampled renewal odds should be one fifth of this, \(2/15\), which gives \(q=(2/15)/(1+2/15)=2/17\). Retaining the exact fraction avoids a rounding error in the intermediate odds.

Resampling and class weighting can have similar effects on class contributions, but their implementation and assumptions differ. In either case, evaluate on validation data that reflect the target population rather than on a deliberately balanced training sample. Any correction should be documented, and probability checks should be made by cohort and renewal period as appropriate.

Threshold Selection Is Not Probability Estimation

A threshold converts a probability into a class label. For example, a policy may be labeled “likely nonrenewal” when its estimated nonrenewal probability exceeds a chosen cutoff. Changing that cutoff changes the number of policies labeled in each class, as well as measures such as recall and precision. It does not, by itself, change the underlying probabilities \(p_j\).

There is no universally correct threshold. A cutoff may be selected to meet a staffing or outreach capacity, to achieve a required recall, or to reflect the consequences of different decisions. The choice should be made using validation data and a stated operational objective. A threshold chosen for classification should not be applied to replace probabilities when the task is to forecast a portfolio total.

Key distinction: Use a threshold when a decision requires a discrete label. For an expected renewal count, sum policy-level renewal probabilities: \(\sum_j p_j\). The sum is an expected count, not a promise that exactly that many policies will renew.

Worked Example: Thresholded Alerts Versus Expected Portfolio Outcomes

A hypothetical team scores eight policies using estimated nonrenewal probabilities of \(0.05, 0.10, 0.18, 0.22, 0.28, 0.35, 0.41,\) and \(0.55\). Compare the alert counts and expected nonrenewal counts at thresholds \(0.25\) and \(0.40\). Then calculate the expected renewal count.

Step 1: Sum the probabilities. The total expected nonrenewals are \(0.05+0.10+0.18+0.22+0.28+0.35+0.41+0.55=2.14\).

Step 2: Apply the \(0.25\) threshold. Four policies exceed the cutoff: \(0.28, 0.35, 0.41,\) and \(0.55\). Their expected nonrenewals sum to \(0.28+0.35+0.41+0.55=1.59\). The other four policies have expected nonrenewals \(0.05+0.10+0.18+0.22=0.55\). These two amounts sum to \(2.14\).

Step 3: Apply the \(0.40\) threshold. Two policies exceed the cutoff: \(0.41\) and \(0.55\), with expected nonrenewals \(0.96\). The other six have expected nonrenewals \(0.05+0.10+0.18+0.22+0.28+0.35=1.18\). Again, \(0.96+1.18=2.14\).

Step 4: Calculate expected renewals. For each policy, renewal probability is one minus nonrenewal probability. Thus the expected renewal count is \(8-2.14=5.86\).

Check and common mistake. The threshold changes the number of alerts from four to two, but the portfolio expected nonrenewal count remains \(2.14\), and expected renewals remain \(5.86\). Counting policies above a threshold as certain nonrenewals would confuse a decision label with an outcome probability.

Choosing and Validating an Approach

Use the method that addresses the actual problem. If the model fails to learn useful distinctions because the less frequent class has little influence on the fitting objective, weighting or resampling may be worth testing. If the model’s probability estimates are useful but an operational team needs a manageable list of policies, threshold selection may be the relevant decision. These choices can be compared, but they answer different questions.

1
Establish the target.
Define the policy-level outcome, renewal window, and target portfolio prevalence.
2
Describe class-specific performance.
Report class counts and a confusion matrix at any proposed threshold; do not rely on accuracy alone.
3
Compare fitting strategies.
If using weights or resampling, record the weights or inclusion rates and state the assumptions behind any odds correction.
4
Match the output to its use.
Use thresholds for discrete operational choices and population-representative probabilities for expected portfolio counts.

A common exam and practice trap is to balance the training data, obtain a more even class split, and then report the model’s raw outputs as natural portfolio probabilities. Another is to lower a threshold and claim the model’s probability estimates improved. The first ignores the change in class prevalence; the second confuses classification performance with probability estimation. Report the target prevalence, the adjustment method, and the intended use of the output.

Key takeaway: Class weighting and resampling alter the influence or frequency of outcomes during fitting; threshold selection alters labels after prediction. A portfolio forecast requires probabilities appropriate to the natural target population, not merely a balanced training set or a convenient cutoff.

Check Your Understanding

For each problem, distinguish class frequencies, probability adjustments, and threshold-based decisions.

  1. A hypothetical cohort has 600 policies, of which 570 renew. A model labels every policy as renewing. What are its accuracy and its recall for nonrenewal? (Answer: Accuracy \(=570/600=95.00\%\); nonrenewal recall \(=0/30=0\).)
  2. A weighted model uses renewal weight \(w_1=1\) and nonrenewal weight \(w_0=3\), and reports weighted renewal probability \(q=0.4000\). Under the class-constant weighting assumptions, find the natural renewal probability. (Answer: Weighted odds \(=0.4/0.6=2/3\); natural odds \(=(3/1)(2/3)=2\); natural probability \(=2/3=0.6667\).)
  3. A resampling scheme includes renewals at relative rate \(s_1=1\) and nonrenewals at rate \(s_0=4\). A profile has resampled renewal probability \(q=0.2000\). Find the corrected natural renewal probability. (Answer: Sampled odds \(=0.2/0.8=1/4\); natural odds \(=(4/1)(1/4)=1\); natural probability \(=0.5000\).)
  4. Five policies have estimated nonrenewal probabilities \(0.10, 0.20, 0.40, 0.60,\) and \(0.70\). Find the expected nonrenewal and renewal counts, and the number labeled nonrenewal at a strict threshold greater than \(0.50\). (Answer: Expected nonrenewals \(=2.00\); expected renewals \(=3.00\); two policies are labeled nonrenewal.)
  5. A resampled validation sample contains 160 renewals and 40 nonrenewals. Renewal inclusion rate is \(s_1=0.5\), while nonrenewal inclusion rate is \(s_0=1\). Use the sampled prevalence and inclusion rates to recover the natural renewal probability, assuming sampling depends only on outcome class. (Answer: Sampled odds \(=160/40=4\); natural odds \(=(s_0/s_1)4=8\); natural renewal probability \(=8/9=0.8889\).)
Clinical Biostats