Predictive analytics starts with a decision: what must someone decide, when must they decide it, and what information will exist at that moment? In the Society of Actuaries PA exam, that framing guides the choice of data, model, validation method, and explanation. This guide moves from defining an actuarial business problem through exploring and transforming data, then selecting and interpreting generalized linear and tree-based models. Pay close attention to exposure, the timing of predictors, the meaning of a model coefficient, and the difference between fit on historical data and performance on future cases. Each proposed lesson uses hypothetical figures so you can practice the calculation and explain what its result means for the business decision.
Predictive Analytics Problem Definition
1. Three kinds of analytics
Descriptive analytics summarizes what has already happened: counts, rates, and distributions in an observed portfolio. Predictive analytics estimates an outcome that is not yet known for a specified policy or future period. Prescriptive analytics uses those estimates, together with costs, benefits, and constraints, to choose an action. Keep the three claims separate in a written business recommendation. A historical claim rate may describe a population poorly matched to the next applicant. A predicted claim probability may rank applicants but says nothing by itself about whether an intervention works. To recommend action, estimate the intervention's effect and compare its expected benefit with its cost. The October 2026 PA syllabus explicitly places this distinction within problem definition.
Worked example: In a hypothetical portfolio, 120 of 1,000 policies had claims, so the descriptive claim share is 120 ÷ 1,000 = 12%. A model predicts an 18% claim probability for one policy. Suppose a $20 intervention would prevent a $200 loss if that claim occurred. Its expected net value is 0.18 × $200 − $20 = $16 per treated policy, provided the prevention assumption is credible.
Watch the distinction: An 18% predicted claim probability does not establish a $16 saving. The saving also depends on whether the intervention prevents the claim and on its true cost.
Reference: [1]
2. The prediction unit and outcome
Begin a supervised modeling problem by naming the observation, prediction date, target, and outcome window. The observation should correspond to the unit on which the business can act, such as a policy at renewal rather than an arbitrary database row. Define the target so that two analysts would label the same record identically. For a binary lapse target, specify what counts as lapse and how long after renewal it is observed. Every predictor must have been available when the score would have been produced. Also inspect whether one customer contributes several renewals: those records are distinct decisions but may be statistically dependent. A rate calculated across records describes the development data; it is neither a prediction for each record nor proof that the future population has the same prevalence.
Worked example: Suppose 800 policy renewal records include 160 policies that lapse within 90 days after renewal. One observation is a policy at its renewal date, and the target is lapse during the next 90 days. The observed lapse share is 160 ÷ 800 = 20%. To score a new renewal, use only information known by that renewal date.
Watch the distinction: Defining the target merely as “lapse” leaves the observation window ambiguous. A policy that lapses a year later may have a different label under a 90-day decision.
Reference: [1]
3. From a vague request to a decision
Turn a broad request into a decision sequence. First identify who is eligible for action and when the decision occurs. Next state the action, such as sending a claim for review, and define an outcome that could change because of it. Finally specify the objective in units the business can compare: expected losses avoided less review costs, subject to capacity or service constraints. A model score is useful only insofar as it improves that decision. Classification accuracy can be misleading when costly claims are rare or false alerts consume staff time. Separate the model's ability to find costly claims from the review process's ability to save money. For further application, SOA PA practice questions can be approached by writing the action and payoff before discussing algorithms.
Worked example: Suppose a hypothetical claim review program issues 60 alerts, identifies 12 costly claims correctly, saves $500 on each correctly reviewed claim, and costs $40 per alert. Savings are 12 × $500 = $6,000; investigation costs are 60 × $40 = $2,400. Net value is $3,600 for this batch, assuming those savings were caused by review.
Watch the distinction: “Find risky claims” is not a decision objective. It omits which claims can be reviewed, whether review changes payment, and the cost of false alerts.
Reference: [1]
4. Bias, variance, and complexity
Model complexity changes two sources of prediction error. Bias is systematic error from a model that cannot represent an important pattern. Variance is sensitivity to which training records happened to be sampled. A flexible model can fit a curved or interactive relationship and reduce bias, yet it may also chase noise and produce unstable predictions. For squared-error prediction, an illustrative decomposition is expected test error equals squared bias plus variance plus irreducible error, evaluated at a prediction point under suitable assumptions. The irreducible term reflects outcome variation that the available predictors cannot explain. Compare models on data excluded from fitting, because training error usually favors flexibility even when test error worsens. Regularization, pruning, or simpler features can reduce variance; the right choice depends on observed validation performance and the business cost of errors.
Worked example: Assume a hypothetical comparison at the same prediction point. Model A has squared bias 4, variance 4, and irreducible error 9, giving expected squared error 4 + 4 + 9 = 17. More complex model B has squared bias 1 and variance 12, giving 1 + 12 + 9 = 22. A is preferable by 5 squared-outcome units.
Watch the distinction: Lower bias alone does not mean better prediction. Complexity can increase variance enough to outweigh the bias reduction, especially when the training sample is small.
Reference: [1]
5. Predictor availability and leakage
A predictor is eligible only if its value can be obtained at the moment the decision is made. Leakage occurs when a field contains information from after that moment or encodes the outcome through the way records were created. Audit the timeline for each promising variable: when was the underlying event known, when was it entered, and would the production process expose it before scoring? A date stamped earlier than the decision may still be unsafe if the field was revised later. Leakage can make a model appear exceptionally accurate in historical testing while leaving it unusable in practice. Rebuild training records as they would have looked at their prediction dates, then validate on later records. Strong predictive power is a reason to inspect a field's timing, not a reason to overlook it.
Worked example: An insurer wants to score claims when they are first reported. Final settlement amount predicts whether a claim becomes large, but settlement is determined months later. That amount is unavailable at first report and may nearly reveal the target. Exclude it; use details recorded at first report, then test the resulting score on later claims.
Watch the distinction: A field is not safe merely because it exists in today's historical file. Its value may have been recorded or updated after the original scoring decision.
Reference: [1]
6. Feasibility with available data
Assess feasibility before choosing a sophisticated model. Determine how many eligible cases have each proposed feature, whether coverage differs by customer group, and whether the data can be delivered reliably at scoring time. Then check whether the available technology can reproduce the necessary cleaning and scoring process. Missing coverage is more than a technical nuisance: a model that works only on a small, unusual subset may not answer the portfolio-wide question. Compare a broadly available baseline with a specialized model on the population each could actually serve. Consider the work needed to collect new data, monitor quality, and handle cases without a score. This practical framing is relevant across the ASA study pathway, though feasibility must be judged for this particular decision.
Worked example: Of 1,000 hypothetical policies, 900 have usable conventional rating fields and 100 have sensor histories. Coverage is 900 ÷ 1,000 = 90% for conventional fields and 100 ÷ 1,000 = 10% for sensors. A sensor-only model cannot score the other 900 policies today. A conventional model is the feasible initial portfolio candidate.
Watch the distinction: Strong accuracy on the 100 sensor policies does not establish portfolio-wide usefulness. Those policies may differ from the other 900, and their features are unavailable elsewhere.
Reference: [1]
7. Business impact and model priority
A modeling opportunity should be large enough to justify its full implementation cost. Estimate the number of decisions, the plausible benefit per effective action, and the cost of acting, developing, deploying, and maintaining the model. State which figures are upper bounds rather than forecasts. For instance, counting every preventable loss as if the model will find it and the intervention will stop it gives a ceiling on value, not an expected return. Compare that ceiling with the costs before spending effort on fine distinctions between algorithms. If the ceiling is already below cost, better prediction cannot rescue the proposal under those assumptions. If it is positive, examine capture rate, intervention effectiveness, capacity, and uncertainty to form a realistic estimate and decide what evidence is worth collecting next.
Worked example: Suppose a hypothetical intervention could prevent at most 50 losses worth $1,000 each during one period, while operating it costs $30,000. The potential net value before model development is 50 × $1,000 − $30,000 = $20,000. Because finding and preventing every loss is optimistic, $20,000 is a ceiling under these assumptions, not a guaranteed payoff.
Watch the distinction: A positive best-case net value does not prove the model is worth building. Development costs, missed cases, ineffective action, and uncertainty can erase that margin.
Reference: [1]
8. Prediction is not intervention effect
A risk model estimates an outcome under the conditions represented in its data. It does not estimate how an outcome would change if a new action were taken. High-risk people may be suitable targets, but they may also be difficult to help; low-risk people may respond more strongly to an intervention. To claim savings, compare outcomes under contact and no contact for comparable cases. Random assignment, where feasible, directly addresses this question; otherwise, a carefully designed comparison must account for factors that influence both contact and lapse. The relevant quantity is the incremental change caused by contact, multiplied by the value of retention, less contact cost. Risk ranking and intervention-effect estimation answer different questions, and both may be needed before choosing whom to contact.
Worked example: Suppose a scored group has a 15% observed lapse rate and the remaining group has 5%. The first group's observed risk is 15% ÷ 5% = 3 times as high. These figures compare groups, not contacted and uncontacted versions of the same group. They provide no numerical estimate of lapses prevented by contact.
Watch the distinction: Targeting the group with triple the lapse rate does not mean contact will prevent three times as many lapses. Baseline risk and response to contact can differ.
Reference: [1]
9. The next useful evidence
Choose the next investigation by identifying the uncertainty that could reverse the decision. If deployment will score future renewals, the key uncertainty may be whether performance holds in a later period, rather than whether another random split produces a similar statistic. Set a prediction date for each record, verify that every feature existed then, and reserve a later period that was untouched during model selection. Use the same error definition on both samples and examine changes in prevalence or data collection. A deterioration may indicate temporal drift, leakage in the original evaluation, or ordinary sampling variation; it does not identify the cause by itself. Follow the diagnostic trail that matters for action, such as checking timestamps, subgroup errors, or intervention effects, before investing in additional model complexity.
Worked example: A model reports 10% error on randomly mixed renewal records. On a later, untouched period, its error is 18% using the same definition, an increase of 18% − 10% = 8 percentage points. That is an 80% relative increase from 10%. Check feature timestamps and population changes before relying on the earlier estimate.
Watch the distinction: Another random split may repeat the same favorable result while mixing old and new records again. It cannot resolve whether performance is stable on future renewals.
Reference: [1]
Data Exploration and Visualization
10. Structured and unstructured records
Structured fields already have a defined place and type in a table, such as payment amount or cause code. Free-text notes are unstructured: their meaning must be extracted before a model can use them as a consistent feature. A tagging rule might mark a concept's presence, while a more elaborate representation could count terms or summarize text. Either approach needs validation against reviewed examples. Negation, uncertainty, abbreviations, and copied text can make a simple word match wrong. Check when the note was written, since text added after the decision creates leakage. If the model uses a derived tag, document its rule and assess whether its error varies by source or time. The relevant question is whether that tag adds dependable information to the business decision.
Worked example: A claims table has numeric payments and categorical causes, plus 200 free-text adjuster notes. A reviewed rule tags 50 notes as mentioning water damage, so the tagged share is 50 ÷ 200 = 25%. Inspect examples such as “no water damage”: a keyword match would mark it positive, while a context-aware rule should not.
Watch the distinction: Finding the word “water” is not the same as identifying water damage. Negated or unrelated mentions can inflate the derived feature and distort a model.
Reference: [1]
11. Variable roles and types
Variable type determines which summaries and model encodings make sense. A numeric variable has meaningful differences in magnitude; premium can be summarized with quantiles or modeled on a suitable scale. A binary variable has two states, such as lapse and no lapse. Nominal categories, such as geographic regions, have names but no inherent order. Ordinal categories have an order, such as low, medium, and high service ratings, yet the steps between levels need not be equal. Distinguish the target from predictors as well: a numeric-looking code may represent a category rather than a quantity. Inspect definitions before assigning types, and decide whether an ordinal effect can reasonably be treated as monotone. The ASA SRM guide provides related statistical context for interpreting these modeling choices.
Worked example: For a hypothetical lapse model, lapse status is binary, premium in dollars is numeric, region is nominal, and a low-medium-high service rating is ordinal. Encoding three regions as 1, 2, and 3 imposes an unjustified order and equal spacing. Separate indicator variables allow each region to differ from a reference region.
Watch the distinction: A numeric code does not automatically make a variable quantitative. Region 3 is neither necessarily larger than region 1 nor twice its value.
Reference: [1]
12. Time frame and prediction horizon
Time design starts with a scoring date. Define a historical feature window ending before that date and a later outcome window of the length relevant to the decision. Apply the same rules to every record, accounting for whether source systems record event dates, report dates, or update dates. A claim that occurred earlier but was reported after scoring may still have been unknown at scoring. Avoid overlapping outcome and predictor windows, and check whether policies have enough follow-up to observe the full target period. If some records have shorter follow-up, their apparent absence of claims may reflect incomplete observation rather than a true zero. A clear timeline makes both model evaluation and business interpretation possible, especially when data are assembled from systems with different reporting delays.
Worked example: A policy is scored on January 1 to predict claims over the following 12 months. Prior-claim features use information recorded through December 31. A claim first reported in February is inside the outcome window and was unavailable at scoring. Putting that February report into a prior-claims count would leak future information.
Watch the distinction: A claim's occurrence date alone may not establish predictor availability. If the insurer learned of it after scoring, it could not have informed that score.
Reference: [1]
13. Granularity and aggregation
Granularity is the level represented by a row: claim, policy, policy-year, or another unit. Match it to the decision. If a policy is scored, several claim rows may need aggregation into one policy-level history. Rates also require the correct exposure denominator. An average of individual rates gives equal influence to records with very different time at risk, whereas the pooled rate divides total events by total exposure. Before aggregating, verify that exposures use compatible units and that duplicated or overlapping periods are handled consistently. Preserve useful variation where the decision requires it; pooling everything can hide differences among policies or periods. State whether a reported rate is per policy-year, per claim, or per another unit so its meaning survives the calculation.
Worked example: One policy has one claim over 0.25 policy-years, giving 1 ÷ 0.25 = 4 claims per policy-year. Another has zero over 0.75 policy-years, giving 0. Their simple average is 2. Pooled experience is (1 + 0) ÷ (0.25 + 0.75) = 1 claim per policy-year, the appropriate combined rate.
Watch the distinction: Averaging the two annualized policy rates equally treats a quarter-year observation like a three-quarter-year observation. It misstates the combined exposure-weighted experience.
Reference: [1]
14. Sampling and prevalence
Sampling affects what a model learns and how its probabilities should be interpreted. A case-control sample deliberately changes the mix of events and nonevents, often to give rare events more representation during development. The resulting sample event share is a property of the sampling plan, not the population prevalence. A model trained on it may rank cases usefully while its raw probabilities are poorly calibrated for the portfolio. Recover population-level probabilities using known sampling fractions and suitable model assumptions, or recalibrate on a representative validation set. Evaluate decisions against the real event frequency and relevant costs. Also inspect whether selection varies by other predictors; if it does, a simple intercept correction may be insufficient. Keep the training sample, target population, and evaluation sample distinct in your explanation.
Worked example: Suppose 5% of all policies have a claim, but a development sample contains 100 claim records and 100 nonclaim records. The sample claim share is 100 ÷ 200 = 50%, ten times the portfolio prevalence. A raw 50% sample-based probability cannot be read as a 50% portfolio chance without accounting for the sampling design.
Watch the distinction: Balancing classes does not make claims equally common in production. Treating the development sample's 50% share as portfolio prevalence can badly distort expected costs.
Reference: [1]
15. Patterns of missing data
Start missing-data work by measuring how much is absent for each field and where the gaps occur. Cross-tabulate missingness by time, source system, customer group, and outcome when appropriate. This helps distinguish scattered omissions from a process failure or a variable that is absent for a meaningful reason. Median imputation supplies a numeric value but can conceal differences between observed and unobserved records, so a missingness indicator may carry useful information. Fit imputation rules using training data only and apply those rules unchanged to validation data. Consider whether a field will be missing at scoring time as often as it was historically. A validation gain from an indicator is helpful evidence, but it does not explain the cause of missingness or guarantee stability after a system change.
Worked example: Income is missing for 40 of 200 hypothetical records, a rate of 40 ÷ 200 = 20%. If 30 omissions came from one recent system conversion, that source accounts for 30 ÷ 40 = 75% of missing incomes. Investigate the conversion; compare a median-filled model with one that also marks missing income on later records.
Watch the distinction: Replacing every missing income with the overall median treats a concentrated system failure as ordinary values. It can hide a change that will also affect deployment.
Reference: [1]
16. Duplicates and inconsistent records
Before calculating a rate, decide what a row represents and what makes two rows duplicates. Repeated records may arise from joins, updates, or multiple legitimate events on one policy. A blind duplicate removal can erase real claims; failing to remove copied rows can inflate counts. Use stable identifiers, event dates, and source fields to reconcile records against the intended unit. Then check logical consistency, such as claim flags paired with claim identifiers and dates inside the observation window. Recalculate summaries after each correction and report the impact. This is especially important when duplicate events enter both numerator and denominator: the direction of rate bias depends on which rows were duplicated. Record-level audit examples are often more informative than a single global duplicate percentage.
Worked example: A hypothetical file has 110 rows and 30 claim flags. Audit shows 10 rows are copies of 10 claim records, leaving 100 distinct records and 20 claims. The apparent claim share was 30 ÷ 110 = 27.3%; after deduplication it is 20 ÷ 100 = 20%. The error was 7.3 percentage points.
Watch the distinction: Deleting every repeated policy ID could remove legitimate claims on the same policy. Identify duplicate events using the intended record definition before changing the data.
Reference: [1]
17. A numeric variable's distribution
A numeric summary needs both center and spread. The mean uses every value and is relevant to totals and expected cost, but an extreme value can move it far from a typical observation. The median divides ordered observations in half and is less affected by tails. Quantiles, range, and a dot plot or histogram reveal variation that either center alone conceals. Choose a plot scale and bin width that preserve the feature of interest, and check whether high values are valid, miscoded, or drawn from a different unit. If the variable is claim amount, clarify whether zeros for no claim are included; positive severities and total policy costs answer different questions. Report the summary that suits the decision while showing enough distributional detail to explain why it was chosen.
Worked example: Five hypothetical positive claim amounts, in thousands of dollars, are 2, 3, 3, 4, and 18. Their total is 30 thousand dollars, so the mean is 30 ÷ 5 = 6 thousand dollars; the median is 3 thousand dollars. A dot plot shows the right tail. Median describes the typical claim, while mean links to total cost.
Watch the distinction: Reporting only the mean of 6 thousand dollars suggests a typical claim twice the median. It conceals how one large claim drives the average.
Reference: [1]
18. Categorical composition
Categorical exploration begins with counts, a stated denominator, and categories that do not overlap. A bar chart compares frequencies clearly when bars share a baseline and categories are labeled consistently. Proportions help compare datasets of different sizes, but the denominator must match the question: share of all claims differs from claim rate among all policies in a cause group. Sparse categories deserve special care because their observed rates vary substantially with one extra record. Consider whether rare levels have substantive meaning, recording inconsistencies, or a defensible reason to combine them. Do not merge categories solely to make a chart look tidy if the distinction matters to the decision. Check missing or unknown categories explicitly rather than silently removing them from the displayed total.
Worked example: Among 100 hypothetical claims, causes A, B, and C occur 45, 30, and 25 times. Their shares of claims are 45 ÷ 100 = 45%, 30 ÷ 100 = 30%, and 25 ÷ 100 = 25%; together they total 100%. An ordered bar chart makes A's lead visible. A one-claim cause would need caution before interpreting its rate.
Watch the distinction: A cause's share of claims is not its claim rate among exposed policies. Those measures have different denominators and support different business conclusions.
Reference: [1]
19. Investigating extreme observations
An extreme observation is a cue for investigation, not an automatic deletion. First confirm its unit, source, and record definition. Then compare summaries with and without it to quantify influence, while keeping the original result visible. A high value may be a valid tail outcome that matters greatly for expected cost; removing it would understate risk. Alternatively, it may reflect a data-entry error, duplicated aggregation, or a mismatch in granularity. If one row combines many policies while others represent individual policies, correcting the record design may be more appropriate than trimming a number. Visualize the distribution and inspect nearby records for context. Any exclusion rule should follow a defensible data definition and be applied consistently to training and future scoring data.
Worked example: Five hypothetical exposure values are 1, 1, 1, 1, and 16 policy-years. Their mean is (1 + 1 + 1 + 1 + 16) ÷ 5 = 4 policy-years; their median is 1. The final value raises the mean by 3 policy-years above the median. Check whether it is valid long exposure or an aggregate of policies.
Watch the distinction: Deleting 16 merely because it is far from the others may remove genuine exposure. If it represents multiple policies, the main issue is record granularity.
Reference: [1]
20. Two numeric variables
A scatterplot places paired numeric observations on two axes and lets you inspect direction, shape, spread, and unusual leverage. A straight-line summary is reasonable only if the plotted relationship is sufficiently linear over the range relevant to prediction. Look for curvature, changing spread, clusters, and points far from the rest in the predictor direction; any of these can make one overall slope misleading. State the units of both variables, because slope is measured in outcome units per predictor unit. A strong association can be predictive within a similar population, but it does not establish that changing the predictor changes the outcome. Common causes, selection, and time order may explain the pattern. Validate on additional observations before relying on an apparent relationship drawn from a small plot.
Worked example: For hypothetical points (1, 2), (2, 4), and (3, 6), where x is exposure units and y is cost units, mean x is 2 and mean y is 4. The least-squares slope is [(-1)(-2) + 0 + (1)(2)] ÷ [(-1)² + 0 + 1²] = 4 ÷ 2 = 2 cost units per exposure unit.
Watch the distinction: An exact line through three points does not prove a durable or causal relationship. One more observation, a wider range, or a common cause could change the conclusion.
Reference: [1]
21. Numeric outcomes across groups
When a numeric outcome is compared across categories, begin with a plot that keeps the individual values visible when groups are small. A dot plot works well for a few claim sizes; side-by-side box plots help with larger groups. Compare medians for a typical observation and means when total cost matters, then examine spread, skew, and unusual values. A higher group mean might reflect one large claim rather than a general shift. Check how many observations support each summary and whether claim sizes are measured on the same basis, such as paid dollars at a common valuation date. For an actuarial decision, distinguish severity among claims from cost per policy: a group can have larger claims but fewer of them. The October 2026 PA syllabus includes bivariate exploration and graph construction.
Worked example: Suppose claim sizes, in thousands of dollars, are 2, 3, and 4 for group A and 5, 6, and 7 for group B. The medians are 3 and 6 thousand dollars, a difference of 3 thousand dollars. Both groups have a range of 2 thousand dollars. A dot plot shows no overlap in these six observations, but three claims per group provide little evidence about the full severity distributions.
Watch the distinction: A separated plot does not prove that every future claim in B will exceed every claim in A. The plotted observations are only small samples.
Reference: [1]
22. Two categorical variables
For two categorical variables, a contingency table gives the joint counts, but comparison requires the right denominator. If the question is whether lapse differs by group, divide lapses in each group by that group's policy count. Raw lapse counts can be larger simply because one group is larger. Show both the counts and within-group percentages so readers can judge the observed difference and its supporting sample size. A segmented bar chart with equal-height bars emphasizes composition, while a grouped bar chart can display the rates directly. Check that categories are mutually defined and that every policy had a comparable opportunity to lapse. The observed rate ratio describes association; it does not establish that membership in the group causes lapse. If exposure periods differ, align the observation windows before comparing proportions.
Worked example: Suppose group A has 20 lapses among 100 policies and group B has 10 among 100 over the same renewal window. Their lapse proportions are 20 ÷ 100 = 20% and 10 ÷ 100 = 10%. A's observed risk ratio relative to B is 20% ÷ 10% = 2. A segmented bar chart would show 20% and 10% lapse segments, each using its own 100-policy denominator.
Watch the distinction: Comparing 20 lapses with 10 lapses alone would be misleading if the groups had different sizes. Calculate a within-group rate before calling either group riskier.
Reference: [1]
23. Change over time
Time is ordered, so place dates in sequence on the horizontal axis and use a line or points to show the measured quantity. Label whether values are claim counts, rates, or costs. Counts may change because the number of insured policies changed; a claim rate needs a denominator such as policy-years. Look for isolated jumps, sustained movement, recurring seasonal patterns, and changes in the way records were collected. A short run of values cannot reliably distinguish a trend from ordinary fluctuation. When comparing periods, state the base for each percentage change: a fall after a rise is measured against the higher intermediate value. For a PA response, describe what the graph shows, then identify the additional exposure or data-quality evidence needed before recommending a model or operational change.
Worked example: Hypothetical monthly counts are 100, 120, and 90 claims. From month one to two, the change is (120 − 100) ÷ 100 = 20%. From month two to three, it is (90 − 120) ÷ 120 = −25%. A time plot shows a rise followed by a fall, ending 10 claims below the first month. Without monthly policy-years, these counts cannot establish how claim frequency changed.
Watch the distinction: A single increase followed by a decline is not a persistent upward trend. Also, a 20% rise and a 25% fall do not cancel because their bases differ.
Reference: [1]
24. Honest graph scales
A graph should preserve the magnitude and meaning of the comparison. For bars, length encodes value, so a zero baseline usually lets readers compare full lengths honestly. A line chart may use a narrower vertical range to reveal small changes, provided the axis is labeled clearly and the presentation does not imply a larger practical effect. State units, time period, population, and denominator; a percentage without its underlying count can conceal instability. Keep category widths and spacing consistent, and avoid visual effects that make one mark appear larger for reasons unrelated to data. If rates differ slightly but are estimated from small samples, show the supporting counts or uncertainty where available. The purpose is to make the business size of a difference legible, not merely to make it visible.
Worked example: Suppose two categories have rates of 98 and 102 per 1,000 policies. The difference is 4 per 1,000, or 4 ÷ 98 ≈ 4.1% relative to the first rate. With a bar axis beginning at 95, visible heights are 3 and 7, making the second appear over twice as tall. A zero baseline shows lengths of 98 and 102, closer to their actual scale.
Watch the distinction: A truncated bar axis can turn a modest rate difference into an apparent doubling. Labeling the axis helps, but full bar lengths still invite the wrong visual comparison.
Reference: [1]
Data Transformations and Unsupervised Learning Techniques
25. Features that normalize size
A raw amount can mainly reflect how large a policy is rather than how its risk differs. Dividing by a meaningful size measure can reveal a comparable intensity, such as claims per policy-year or premium per dollar of insured value. Name both numerator and denominator, retain the resulting units, and check that the denominator was known at the prediction date. Ratios become unstable when denominators are very small, and they are undefined when the denominator is zero. They can also hide useful scale information: two policies with the same ratio may have very different dollar impacts. Consider retaining the original size variable alongside the ratio, then validate whether the added feature improves the intended prediction. For aggregate rates, sum numerators and denominators before dividing rather than averaging individual ratios without weights.
Worked example: For a hypothetical policy with a $600 annual premium and $300,000 of insured value, premium divided by value is $600 ÷ $300,000 = 0.002, or 0.2% per year. Another policy can be compared on that basis if premium and insured value use consistent definitions. A missing or zero insured value makes this ratio unusable until its cause is resolved.
Watch the distinction: Dividing every amount by any available field does not guarantee comparability. The denominator must measure relevant size, use consistent units, and be valid for every scored record.
Reference: [1]
26. Lagged and rolling features
A lagged feature records a value from an earlier period; a rolling feature summarizes a fixed interval before each prediction date. Both require an explicit cutoff. For a renewal scored today, prior claims may be counted only if they were known by today, even if an earlier event is entered into the system later. Define whether a claim is dated by occurrence, report, or recording, since these choices produce different available histories. Recalculate the window for every scored policy rather than using a single end-of-file total. A fixed-length lookback improves comparability, but shorter observed history may require a history-length feature or an exposure-adjusted rate. In validation, construct features separately for each historical scoring date so future claims cannot enter older predictions.
Worked example: A policy has two reported claims in the first prior policy-year and one in the next. At the start of the following year, its two-year rolling count is 2 + 1 = 3 claims. If it then reports another claim in March, that claim belongs to later history. It cannot change the count used for the January score.
Watch the distinction: A rolling count computed using the latest database snapshot can include claims recorded after an earlier score date. That leakage makes past predictions appear artificially accurate.
Reference: [1]
27. Encoding nominal categories
Nominal categories, such as regions, have labels but no natural numeric spacing. Encoding them as 1, 2, and 3 makes many models treat the steps as equal and ordered, an assumption the categories do not support. With an intercept, choose one reference level and create one indicator for each remaining level. Each indicator is one when its category applies and zero otherwise; the omitted reference has zeros across those indicators. In a GLM, a category coefficient then compares that level with the reference on the model's link scale, holding other predictors fixed. Record the reference clearly so fitted output can be interpreted. Rare categories may yield unstable estimates, so consider a defensible grouping rule learned from training data. Handle new categories at scoring time with a planned encoding rather than silently assigning a familiar level.
Worked example: For regions A, B, and C, choose A as the reference and create B and C indicators. A policy in B has B = 1 and C = 0; a policy in A has B = 0 and C = 0. An intercept plus these two indicators represents all three regions. Including an additional A indicator would make one column redundant because A + B + C always equals 1.
Watch the distinction: Treating region code 3 as three times region code 1 invents a quantitative relationship. The codes identify categories; they are not measured distances.
Reference: [1]
28. Transforming a skewed predictor
Taking a logarithm compresses large positive values and turns multiplicative changes into additive ones. This can make a heavily right-skewed predictor easier to model and can reduce the influence of very large observations. A tenfold increase always changes the natural log by ln(10), regardless of the starting amount. Interpret a model coefficient in terms of changes in the log predictor, while remembering that a transform alone does not make a relationship linear or remove errors. Inspect the original and transformed distributions and assess validation performance. The natural log is defined only for positive values. If zero is a meaningful state, consider a separate zero indicator plus a transform for positive amounts, or another justified transformation. Choose that rule using training data and apply it consistently when scoring.
Worked example: Suppose two positive amounts are $100 and $1,000. Their raw difference is $900, while their natural-log difference is ln(1,000) − ln(100) = ln(10) ≈ 2.303. The same log difference would separate $1,000 and $10,000. Thus the transform represents the common tenfold ratio. A $0 amount cannot enter ln(amount) without a separate handling rule.
Watch the distinction: Adding 1 before taking every logarithm is not an automatic fix for zeros. The added constant changes low values substantially and needs a reason tied to the variable's units.
Reference: [1]
29. Standardizing before distances or penalties
Distance-based methods and coefficient penalties respond to the numerical scale of predictors. A dollar-valued field may otherwise dominate a count-valued field simply because its numbers are larger. Standardization subtracts the training mean and divides by the training standard deviation, producing values measured in training standard deviations. This helps compare distances and makes a common penalty act more evenly across coefficients. Fit the transformation on training records only, then reuse those values for validation and future scoring; recomputing them on validation data leaks information about that set. A near-zero standard deviation needs attention because division becomes unstable. Standardization does not make a skewed variable symmetric or an irrelevant variable useful. The underlying statistical foundations also appear in the SOA SRM study guide.
Worked example: Assume the training mean income is $50,000 and its training standard deviation is $10,000. An income of $80,000 becomes ($80,000 − $50,000) ÷ $10,000 = 3. It is three training standard deviations above the mean. If the validation mean differs, this record still uses the original $50,000 and $10,000 values so its score has the same interpretation.
Watch the distinction: Standardizing the complete dataset before splitting lets validation records influence the transformation. That can overstate performance, especially when the distribution shifts over time.
Reference: [1]
30. Principal component scores
Principal components analysis constructs new directions from the predictors without using the outcome. After centering variables, and often scaling them when units differ, a component score is a weighted sum of the transformed values. The first component points in the direction of greatest predictor variance; later components are orthogonal directions capturing remaining variance. A loading tells how strongly a variable contributes to a direction, but its sign is arbitrary: reversing every loading and score leaves the same component. Large positive scores mean a record is far along the chosen positive direction, relative to the centered data. Inspect the loadings before attaching a business label. High explained variance does not ensure high predictive value, because a low-variance direction can still help explain the target. Apply the training centering, scaling, and loadings to validation records.
Worked example: Suppose two standardized measures both equal 1 for a policy, and the first component has loadings 0.707 and 0.707. Its score is 0.707 × 1 + 0.707 × 1 = 1.414, approximately √2. The positive score means both measures are high in the shared direction. It is a derived coordinate, not a third measurement collected from the policy.
Watch the distinction: A principal component with a large score is not automatically a high-risk score. PCA ignores the target, so direction and predictive meaning need separate examination.
Reference: [1]
31. How many components to retain
The variance explained by a component is its eigenvalue divided by the sum of all component eigenvalues under the chosen scaling. Retaining fewer components reduces dimension, correlation, and sometimes noise, but discards information. A cumulative variance percentage describes preservation of predictor variation, not preservation of predictive signal. Use it as one diagnostic alongside the loadings, the purpose of the analysis, and validation performance in the downstream model. A sharp drop in component variance can suggest a compact representation, but there is no universal cutoff that works for every business problem. If interpretability matters, consider whether the retained directions can be explained in terms of original fields. Estimate the PCA transformation on training records only; projecting the holdout data through the same transformation gives a fairer assessment of information lost.
Worked example: Suppose two standardized variables produce component variance values of 1.6 and 0.4, totaling 2. The first component explains 1.6 ÷ 2 = 80%; the second explains 0.4 ÷ 2 = 20%. Keeping only the first turns two coordinates into one. That reduction discards 20% of predictor variance, which might still matter if it aligns with the outcome.
Watch the distinction: Retaining 80% of predictor variance does not mean retaining 80% of predictive accuracy. The excluded direction might contain a strong outcome relationship.
Reference: [1]
32. K-means assignment and update
K-means partitions observations into a chosen number of clusters by repeatedly assigning each record to its nearest center and replacing each center with the mean of its assigned records. The algorithm seeks a low total within-cluster squared distance, so distant observations have substantial influence. Before fitting, choose a distance-relevant representation and scale variables when their units would otherwise dominate. Cluster centers describe average feature profiles, not outcome classes or causal groups. Different starting centers can lead to different local solutions, so compare repeated starts and assess cluster stability and business usefulness. The number of clusters is a modeling choice: more clusters usually reduce training distance, but may create tiny groups with little interpretive value. If clusters become predictive features, fit clustering on training data and assign later records to the saved centers.
Worked example: In one dimension, suppose current centers are 0 and 5. A record at 2 is 2 units from 0 and 3 from 5, so it joins the first cluster. If that cluster's assigned records are 2 and 4, its updated center is (2 + 4) ÷ 2 = 3. The assignment and update can change again on the next iteration.
Watch the distinction: A cluster label is not an observed risk category. Its meaning depends on the chosen features, scaling, centers, and stability of the fitted grouping.
Reference: [1]
33. Hierarchical linkage choices
Hierarchical agglomerative clustering begins with each observation in its own cluster and repeatedly merges the closest pair under a chosen linkage rule. The distance between two clusters depends on that rule. Single linkage uses the smallest cross-cluster distance and can form long chains joined by nearby points. Complete linkage uses the largest cross-cluster distance and tends to favor groups with tighter maximum separation. Average linkage is another option, using the mean cross-cluster distance. A dendrogram records the sequence and distances of merges; cutting it at a height determines the groups. Standardize variables when differing units would distort the underlying pairwise distances. Before interpreting groups, inspect whether the clustering changes under reasonable scaling or linkage choices. The merger height is a distance under the selected definition, not a probability of common membership.
Worked example: Assume pairwise distances are AB = 2, AC = 5, and BC = 4 in common distance units. Both methods first merge A and B at distance 2. The distance from cluster {A, B} to C is min(5, 4) = 4 under single linkage and max(5, 4) = 5 under complete linkage. Thus the same observations produce different second-merge heights.
Watch the distinction: A dendrogram's height is not interchangeable across linkage rules. The rule defines what distance between clusters means, so compare heights within the specified method.
Reference: [1]
Generalized Linear Models
34. Choosing a GLM family and link
A generalized linear model specifies a response distribution and a link connecting the conditional mean to a linear predictor. Start with what one observation represents and which values its outcome can take. A binary claim indicator suits a binomial model with a logit link; a nonnegative count may start with a Poisson model and log link. Positive, right-skewed claim severity can motivate a Gamma model with a log link. Then check whether the mean relationship, variance pattern, and predictions are credible for the business use. Counts observed over different time at risk need an exposure term, commonly the log exposure as an offset in a log-link count model. A family is a starting assumption, not a guarantee of fit. Assess residual patterns, subgroup behavior, and holdout performance before selecting the final model.
Worked example: Suppose policies have annual claim counts of 0, 1, or 2, but some are observed for a quarter-year and others for a full year. A Poisson log-link model with a log policy-year offset models their count expectations from a common annual rate. Replacing count with an any-claim indicator changes the outcome to binary and calls for a binomial model. Positive paid amounts require a severity model.
Watch the distinction: Choosing a log link simply because claim data are skewed overlooks the response definition. Counts, binary events, and positive severities have different support and modeling needs.
Reference: [1]
35. Identity-link predictions
With an identity link, the fitted conditional mean equals the linear predictor directly. In a Gaussian GLM, an intercept gives the predicted mean when predictors equal their reference or zero values, and a slope gives an additive change in that mean for one predictor unit, holding other terms fixed. Translate coefficients back into the outcome's units. This direct interpretation can be useful for roughly symmetric continuous outcomes, but the model's straight-line form may yield implausible negative costs or miss curvature at the edges of the observed range. Check residual spread, unusual observations, and predictions across the range where decisions will be made. If variability grows with the mean or outcomes must be positive, a different family or link may better match the data. A fitted mean is not a guaranteed individual outcome.
Worked example: Suppose a hypothetical fitted model for mean cost, in dollars, is μ = 100 + 20x, where x is a service-use count. At x = 3, μ = $100 + $20 × 3 = $160. At x = 4, μ = $180, an increase of $20 for one additional unit. If x can be large enough to make predictions unreasonable, inspect the model's usable range.
Watch the distinction: A $20 coefficient does not mean every individual's cost rises exactly $20. It is the model's additive change in the conditional mean under its assumptions.
Reference: [1]
36. From log odds to probability
A logistic GLM models the log odds of a binary event as a linear combination of predictors. First compute that linear predictor, often called eta. Exponentiating eta gives odds, a ratio of event probability to nonevent probability. Convert odds to probability with odds divided by one plus odds, or use 1 divided by one plus exp of negative eta. This keeps fitted probabilities between zero and one. A coefficient changes log odds additively and odds multiplicatively; its effect on probability depends on the starting probability. Check the event definition and the reference levels before interpreting output. For a business action, also examine calibration: among records assigned a probability near a given value, does approximately that share experience the event? Good ranking alone does not ensure reliable probability estimates.
Worked example: Assume fitted log odds of lapse are −2 + 0.5x. For x = 2, eta = −2 + 0.5 × 2 = −1. The odds are exp(−1) ≈ 0.368 to 1. The lapse probability is 0.368 ÷ (1 + 0.368) ≈ 0.269, or 26.9%. The complementary probability of no lapse is approximately 73.1%.
Watch the distinction: The linear predictor −1 is neither a probability nor a negative risk. Convert log odds through the logistic function before reporting the event probability.
Reference: [1]
37. Interpreting a logistic coefficient
In a logistic model, increasing a predictor by one unit adds its coefficient to log odds, with other variables fixed. Exponentiating that coefficient gives an odds ratio. An odds ratio above one means higher odds; below one means lower odds. It does not give a fixed change in event probability, because probability has a nonlinear relationship with odds. To communicate a practical effect, choose a realistic baseline record, compute its probability, add the coefficient to its log odds, and convert again. State the predictor's unit: a one-dollar premium change is different from a one-thousand-dollar change. For categorical predictors, compare the specified level with the reference. If interactions are present, the one-unit effect can differ across groups. A coefficient describes association in the fitted data and does not by itself establish causation.
Worked example: Suppose a coefficient is ln(2) ≈ 0.693 for a one-unit increase. The odds ratio is exp(0.693) ≈ 2. If baseline odds are 1:4, baseline probability is 1 ÷ 5 = 20%. Doubling odds gives 2:4, or 1:2, and probability 2 ÷ 6 = 33.3%. The increase here is 13.3 percentage points, given that baseline.
Watch the distinction: An odds ratio of 2 does not generally double probability. Starting at 20%, doubled odds yield 33.3%; the probability change depends on the baseline.
Reference: [1]
38. Exposure offsets for counts
A count model must account for how long or how much each record was exposed to the possibility of a claim. Under a log link, include log exposure as an offset with its coefficient fixed at one. The model then estimates a rate through the other predictors, while expected count equals exposure multiplied by that fitted rate. Exposure must be positive for its logarithm to exist, and its unit must be consistent across observations. A quarter policy-year and a full policy-year with otherwise identical predictors receive expected counts in a one-to-four ratio. Check whether the exposure measure truly reflects time at risk, especially around cancellations or coverage changes. An offset expresses a specified proportional relationship, whereas an ordinary predictor has a coefficient estimated from data. Examine residuals if that proportionality appears inadequate.
Worked example: Suppose a fitted claim rate is 0.4 claims per policy-year. A policy observed for 0.25 policy-year has expected count 0.25 × 0.4 = 0.1 claim. A comparable policy observed for 1 policy-year has expected count 1 × 0.4 = 0.4 claim. Their combined expected count is 0.1 + 0.4 = 0.5 claim across 1.25 policy-years.
Watch the distinction: Putting raw exposure into a count model as an ordinary predictor does not impose proportional expected counts. The log offset encodes that relationship explicitly.
Reference: [1]
39. Recognizing overdispersion
A basic Poisson model equates conditional mean and conditional variance. If claim counts vary much more than their fitted means suggest, standard errors and predictive uncertainty from that model may be too small. First compare counts among genuinely comparable records or examine residual dispersion after accounting for predictors and exposure. A large raw variance-to-mean ratio can reflect mixed risk groups, unequal observation time, dependence among claims, or a response distribution with extra variation. Investigate those mechanisms before changing families. If substantial overdispersion remains, a negative binomial model is one candidate because it permits variance above the mean; other approaches may address dependence or excess zeros. Compare fit and validation behavior, including subgroup predictions, rather than selecting a distribution from one summary ratio. SOA PA practice questions can help rehearse the written interpretation.
Worked example: For a hypothetical comparable group, mean annual count is 2 claims and observed variance is 8 claims squared. The variance-to-mean ratio is 8 ÷ 2 = 4, whereas a Poisson count with mean 2 has variance 2. This flags extra variation. Check whether exposures and risk mix are truly comparable; if the excess persists after modeling them, compare a negative binomial fit and its validation results.
Watch the distinction: A variance-to-mean ratio above one is a diagnostic cue, not proof that negative binomial is required. Unequal exposure or omitted groups may explain it.
Reference: [1]
40. Positive claim severity
Claim severity concerns the amount of a claim given that a claim has occurred. A Gamma GLM is a candidate for strictly positive, right-skewed amounts; its log link keeps fitted conditional means positive. A coefficient on that link scale represents a multiplicative change in mean severity when exponentiated, with other terms fixed. Interpret the effect as a ratio and, where useful, convert it to dollars for a reference claim profile. Check for zero or negative amounts, since they do not fit a strictly positive severity response without a separate treatment or changed outcome definition. Examine residuals and unusually large claims because a few tail observations may materially influence conclusions. Severity alone does not estimate total cost per policy: that also requires claim frequency or occurrence. Keep valuation basis, currency, and claims handling consistent across compared groups.
Worked example: Suppose a hypothetical Gamma log-link model predicts mean positive claim severity of $500 for a reference group. A comparison-group coefficient of 0.1 multiplies that mean by exp(0.1) ≈ 1.10517. Its fitted mean is $500 × 1.10517 ≈ $552.59, or about $52.59 and 10.5% higher. This comparison applies to positive claims; it gives no expected cost for policies with no claim.
Watch the distinction: A 0.1 log-link coefficient is not a $0.10 addition or exactly a 10% increase. Exponentiate it, then apply the resulting ratio to the reference mean.
Reference: [1]
41. Combining frequency and severity
Expected claim cost joins how often claims occur with how large they are. If a policy can have several claims, expected aggregate cost equals expected claim count times expected size per claim, provided the severity mean is appropriate for those claims. When the outcome is limited to zero or one claim, the corresponding calculation uses the probability of a claim times its conditional mean size. A two-part analysis can fit a count or occurrence model and a positive severity model separately, then combine their predictions for the same policy and period. This makes the two components easy to inspect, but errors in either affect the cost estimate. A suitable compound response model can instead represent a mass at zero and a continuous range of positive costs. Choose between approaches using the claim process, data volume, and validation on total cost. These models fall within the GLM work identified in the October 2026 PA syllabus.
Worked example: Suppose a policy has a 20% chance of exactly one claim next year and no chance of more than one. Its predicted mean size, conditional on a claim, is $1,000. Expected annual cost is 0.20 × $1,000 = $200 per policy. Across 50 comparable policies, the expected total is 50 × $200 = $10,000. These are expectations, not promised payments.
Watch the distinction: Multiplying any claim probability by severity fails when several claims are possible. In that setting, use expected claim count, or model aggregate cost directly with a suitable response distribution.
Reference: [1]
42. Weights in an aggregated GLM
An aggregated binomial row may record both an event proportion and its number of trials. The trial count tells the model how much information that proportion contains: a rate based on 100 comparable trials generally deserves more influence than one based on 10. In a grouped binomial GLM, supply the event and nonevent counts or use the proportion with its trial count as a weight. Check the software convention, since a generic case weight can have a different interpretation. An exposure offset serves another purpose. In a log-link count model, adding log exposure with a fixed coefficient of one scales the expected count to time or units at risk while retaining a modeled rate. A weight changes the contribution of an observation to estimation; an offset changes its fitted mean. Neither repairs biased sampling or an incorrectly defined trial.
Worked example: One row contains 10 events in 100 trials, or 10%; another contains 2 in 10, or 20%. Weighting by trials gives (10 + 2) ÷ (100 + 10) = 12 ÷ 110 ≈ 10.9%. Averaging the two row rates gives 15%, granting the 10-trial row equal influence. For estimating one common event probability, the trial-weighted result is appropriate.
Watch the distinction: Treating trial weights as exposure offsets confuses precision with time at risk. A binomial weight reflects how many trials a row summarizes; a count offset scales its expected count.
Reference: [1]
43. Reference levels in a GLM
When a categorical predictor has an intercept, one category is omitted as the reference. Its fitted linear predictor uses the intercept and any other covariates, while each displayed category coefficient measures a difference from that reference on the link scale. Under a log link, exponentiating the coefficient gives a ratio of fitted means, such as claim rates, at otherwise identical predictor values. Under a logit link, it gives an odds ratio, not a probability ratio. Changing the reference alters the reported intercept and factor coefficients but leaves each record's fitted value unchanged. Before interpreting a coefficient, identify the reference, link, unit of the response, and any interactions. With an interaction, a category's difference may depend on another predictor, so its main coefficient describes the difference only at that predictor's reference or zero value.
Worked example: Suppose a log-rate model has intercept −1 for region A and a region-B coefficient of 0.4, with other predictors held fixed. A's rate is exp(−1) ≈ 0.368 claims per policy-year. B's is exp(−1 + 0.4) = exp(−0.6) ≈ 0.549. Their rate ratio is exp(0.4) ≈ 1.49, so B's fitted rate is about 49% higher.
Watch the distinction: A coefficient of 0.4 under a log link is not an addition of 0.4 claims per policy-year. Exponentiate it to compare fitted rates at equal covariate values.
Reference: [1]
44. Interaction terms
An interaction lets one predictor's effect vary with another predictor. For a binary group B and numeric x, a linear predictor can contain an intercept, an x term, a B term, and an x-by-B product. In group A, where B equals zero, the x coefficient is the slope on the link scale. In group B, the x slope is the sum of the x and interaction coefficients. Likewise, the group difference at a chosen x equals the B coefficient plus x times the interaction coefficient. For logistic regression, convert each complete linear predictor to a probability before comparing event risks; equal changes in log odds do not produce equal changes in probability. Inspect whether the data contain enough observations across groups and x values to support the term. A large interaction estimate from a sparse subgroup can be unstable.
Worked example: Let log odds equal −2 + 0.5x + 0.2B + 0.3xB. At x = 1, group A has log odds −1.5 and probability 1 ÷ (1 + exp(1.5)) ≈ 18.2%. Group B has log odds −1 and probability 1 ÷ (1 + exp(1)) ≈ 26.9%. The x slopes are 0.5 and 0.8 on the log-odds scale.
Watch the distinction: Reading the B coefficient as the group difference at every x ignores the interaction. Here the log-odds difference is 0.2 + 0.3x and changes with x.
Reference: [1]
45. Curved predictor effects
A straight-line term imposes the same change in the linear predictor for every one-unit increase in a numeric variable. A quadratic term allows the slope to change with x and, when its coefficient has the opposite sign to the linear term, can produce a turning point. For an identity-link mean written as a + bx + cx², the local slope is b + 2cx. Set that expression to zero to find the turning point, then check whether it lies inside the observed range. A negative c gives a peak; a positive c gives a trough. Interpret fitted values at meaningful x values because the linear and quadratic coefficients alone are harder to explain. Plot residuals against x and compare validation performance to judge whether curvature helps. Avoid treating behavior outside the observed range as established: quadratic predictions can become implausible quickly.
Worked example: For the hypothetical fitted mean μ = 1 + 0.2x − 0.02x², at x = 5 it is 1 + 1 − 0.5 = 1.5 units. At x = 10 it is 1 + 2 − 2 = 1 unit. The slope is 0.2 − 0.04x, which reaches zero at x = 5. The fitted relationship rises, then falls.
Watch the distinction: A positive coefficient on x does not mean the fitted mean always rises. With a negative quadratic term, the local slope may turn negative within the observed range.
Reference: [1]
46. Residual and subgroup diagnostics
A good overall fit can conceal systematic errors in particular risk groups. Start by comparing observed and expected outcomes across fitted-value bands and business-relevant subgroups. For a count model, sum expected counts over the same records used to sum observed counts; comparing incompatible exposure periods can create a false discrepancy. A Pearson-style standardized difference, observed minus expected divided by the square root of expected, gives a quick scale check when a Poisson variance assumption is reasonable. Its value is diagnostic rather than a complete significance test, especially when observations are dependent or overdispersed. Look for repeated direction and size of errors, changing spread across fitted values, and influential observations. Then investigate missing predictors, time effects, nonlinearity, interactions, or response distribution. Repeat the assessment on held-out data to learn whether a proposed fix generalizes.
Worked example: Suppose a subgroup's observed count is 9 claims and the fitted Poisson model expects 4 claims over the same exposure. The aggregate difference is 9 − 4 = 5 claims. Its Pearson-style discrepancy is 5 ÷ √4 = 2.5. That warrants investigation of the subgroup, but dependence or extra count variation could change how unusual the difference is.
Watch the distinction: A small portfolio-wide error does not imply every segment is well fitted. Overprediction in one group and underprediction in another can cancel in the total.
Reference: [1]
47. Fit penalized for complexity
Adding predictors usually improves maximized training likelihood, even when the additions have little value beyond the observed sample. Akaike's information criterion, AIC, balances this improvement against model size: AIC equals minus twice the maximized log-likelihood plus twice the number of estimated parameters. Lower values are preferred among models fitted to the same response observations with comparable likelihood definitions. The penalty charges each additional parameter, including estimated interaction or nonlinear terms where applicable. AIC is a relative ranking, not an absolute measure of goodness or a guarantee of future performance. It also cannot decide whether the fitted distribution, calibration, or business interpretation is adequate. If models use different records because of missing data, their AIC values may reflect different samples rather than model quality. Use residual checks and validation alongside the criterion, especially when deployment data differ from training data.
Worked example: On the same records and outcome, model A has −2 log-likelihood of 120 and 4 estimated parameters. Its AIC is 120 + 2 × 4 = 128. Model B has −2 log-likelihood of 116 and 7 parameters, giving 116 + 2 × 7 = 130. A ranks better by AIC despite B's higher training likelihood.
Watch the distinction: Choosing the model with the largest training likelihood alone favors added flexibility. The likelihood gain must be judged against complexity and performance on data excluded from fitting.
Reference: [1]
48. Validation beyond training fit
Validation estimates how a fitted model behaves on observations that did not determine its coefficients. First choose a performance measure tied to the business outcome: a count error, cost error, probability calibration, or decision value may answer different questions. Then divide data so that training precedes validation when future periods are the intended use. Keep every step that learns from data, including imputation, scaling, feature selection, and tuning, inside the training portion. Otherwise information from the validation set leaks into model development. Compare candidates on identical validation records and the same metric, and inspect material subgroups and time periods. A model with slightly worse training fit may generalize better if its structure is more stable. Repeatedly changing models after viewing one holdout's results uses up that holdout's independence; a separate final test or later monitoring can then provide a cleaner check. The SOA PA practice questions can help you rehearse explaining that choice.
Worked example: Suppose lower error is better and both GLMs use the same error measure. Model A records training error 90 and later-period validation error 130. Model B records 100 and 110. Although A fits its training records more closely, B's validation error is 20 units lower, or 20 ÷ 130 ≈ 15.4% lower than A's. B is the stronger candidate on this evidence.
Watch the distinction: Selecting by training error alone rewards fit to the development sample. A later-period holdout can reveal deterioration that an apparently excellent training score hides.
Reference: [1]
49. Ridge regularization
Ridge regression adds an L2 charge, proportional to the sum of squared coefficients, to the model's fitting objective. As the penalty grows, coefficients are pulled toward zero; they generally remain nonzero. This can stabilize estimates when predictors overlap strongly or when an unpenalized model follows sample noise. Standardize numeric predictors before applying a common penalty so a change of measurement units does not arbitrarily determine which coefficient shrinks most. Treat the intercept separately according to the modeling convention. Choose penalty strength using validation data or cross-validation performed within the training period, and judge it on a metric that fits the response. The selected penalty is a tuning choice, not evidence that a predictor causes an outcome. Ridge can improve predictions while making individual coefficients harder to interpret when correlated variables share the same signal.
Worked example: For hypothetical ridge penalties of 0, 1, and 10, validation mean squared errors are 110, 95, and 103 cost-units squared on the same holdout set. Penalty 1 has the lowest error. It improves over no penalty by 110 − 95 = 15 cost-units squared, about 13.6% of 110, while the stronger penalty loses some predictive accuracy.
Watch the distinction: Ridge is not a dependable automatic variable selector. Its squared-coefficient penalty usually shrinks predictors together, including correlated ones, without setting their coefficients exactly to zero.
Reference: [1]
50. Lasso regularization
Lasso adds an L1 charge, proportional to the sum of absolute coefficient values, to the fitting objective. The shape of that penalty allows some estimated coefficients to become exactly zero, yielding a smaller set of predictors. This can simplify a model, but the selected set may change when strongly correlated predictors provide similar information; one may enter while another is excluded. Standardize numeric predictors when a shared penalty applies, keep preprocessing inside each training fold, and choose the penalty using held-out performance. A stronger penalty usually creates a simpler model, yet it can introduce enough bias to worsen predictions. Compare candidates using both validation loss and the practical value of the resulting predictor set. A zero coefficient means that the predictor was excluded under this data, penalty, and feature representation; it does not prove the variable has no relationship with the outcome.
Worked example: Suppose lasso penalties 0, 0.5, and 2 give validation losses 80, 75, and 95 on one consistent scale, with 3, 2, and 0 nonzero predictor coefficients. Penalty 0.5 lowers loss by 80 − 75 = 5, or 6.25%, and removes one predictor. Penalty 2 is simpler but raises loss by 20 relative to 0.5.
Watch the distinction: The model with the fewest predictors is not automatically best. A penalty that removes every predictor can sacrifice too much validated predictive performance.
Reference: [1]
51. Turning probabilities into actions
A predicted event probability becomes an action rule only after specifying the action's cost and its effect if the event would otherwise occur. If action costs C per case and prevents a loss of B whenever the event occurs, expected net value under those assumptions is pB − C. Acting breaks even when p = C ÷ B. If the action prevents only a fraction of the loss, use that effective benefit instead. The threshold therefore belongs to the decision problem, not to the GLM itself. Before applying it, check calibration: among cases assigned probabilities near a given level, does roughly that share experience the event? Ranking cases accurately is insufficient if probabilities are systematically too high or low. Also test whether the action really changes outcomes; high predicted risk alone does not establish intervention benefit. Capacity constraints may require prioritizing by expected net value rather than applying a single cutoff.
Worked example: Assume a hypothetical action costs $20 per policy and prevents a $100 loss whenever the event occurs. Break-even probability is $20 ÷ $100 = 0.20, or 20%. At a calibrated 30% risk, expected net value is 0.30 × $100 − $20 = $10. At 10%, it is 0.10 × $100 − $20 = −$10.
Watch the distinction: A high event probability alone does not justify action. The cutoff depends on intervention cost, actual preventable benefit, and whether predicted probabilities are calibrated.
Reference: [1]
Tree-Based Models
52. A regression tree split
A regression tree divides observations into leaves and predicts the mean response within each leaf. For squared-error fitting, assess a candidate split by adding the squared deviations from each proposed leaf mean and comparing that total with the parent node's squared-error total. The reduction measures how much the split improves training fit. The algorithm searches among eligible predictors and cut points, then repeats the process within resulting leaves. Each additional split can lower or preserve training error, so a large reduction on the fitting records is not sufficient evidence of future benefit. Minimum leaf sizes, pruning, and validation limit the tree's tendency to follow noise. A leaf prediction applies to records satisfying its path rules; it is an estimated conditional mean rather than an explanation that the split variable caused the response.
Worked example: Suppose four responses, in predictor order, are 2, 4, 8, and 10 units. Their parent mean is 6, giving squared error 16 + 4 + 4 + 16 = 40 units squared. Splitting after the second record creates means 3 and 9. Each leaf has squared error 1 + 1 = 2, so the split reduces total error by 40 − 4 = 36.
Watch the distinction: A split's large training-error reduction does not guarantee a useful tree. Repeated splits can fit incidental patterns, so assess the grown or pruned tree on held-out records.
Reference: [1]
53. A classification tree split
A classification tree seeks leaves with more concentrated class membership. For two classes with event share p, Gini impurity is 1 − p² − (1 − p)². It is zero in a pure leaf and highest at an even split. To assess a proposed division, calculate impurity in each child and take their average weighted by the number of observations in each child. Subtract this from parent impurity to obtain the split's improvement. The weights matter: a tiny pure leaf may have little effect on the whole node. Gini measures class mixing on the training data, not calibrated event probability or business cost. If false positives and false negatives have different consequences, inspect decision performance separately. Check leaf sizes and validation results because very small leaves can look pure by chance, especially when events are rare.
Worked example: A parent has five events and five nonevents, so p = 0.5 and Gini is 1 − 0.5² − 0.5² = 0.5. Suppose a split creates two five-record leaves, one with four events and the other with four nonevents. Each leaf has Gini 1 − 0.8² − 0.2² = 0.32. Weighted child impurity is 0.32, an improvement of 0.18.
Watch the distinction: Adding the child Gini values without weighting can misrank splits of unequal size. Weight each child by its share of parent records before measuring improvement.
Reference: [1]
54. Pruning a grown tree
A fully grown tree often creates leaves that describe training records closely but predict future records poorly. Cost-complexity pruning considers subtrees of that grown tree by adding a charge for the number of terminal leaves to the training error. A larger charge favors a smaller tree. Pruning removes whole branches whose fit improvement is too small for their added complexity; it does not alter the underlying data. Candidate subtree size should be chosen using validation or cross-validation, since the charged training score alone is only a device for generating and comparing tree sizes. For classification, the error or impurity measure used in the pruning objective must be stated. Smaller trees can be easier to explain and less variable, but excessive pruning can miss real subgroup differences. Report both predictive performance and the path rules that matter to the decision.
Worked example: In a hypothetical squared-error pruning calculation, a six-leaf tree has training squared error 20 and a three-leaf subtree has 27, both in outcome-units squared. With a charge of 3 outcome-units squared per leaf, their scores are 20 + 3 × 6 = 38 and 27 + 3 × 3 = 36. The subtree wins at that charge; validation must still assess it.
Watch the distinction: Choosing a pruning charge solely because its penalized training score is low mistakes the construction rule for future evidence. Compare resulting subtree predictions on excluded records.
Reference: [1]
55. Validating tree depth
Tree depth controls how many successive split decisions a record can encounter. Greater depth can capture interactions and local patterns, but each terminal leaf may then contain fewer training records and have a less stable estimate. Reserve validation records before selecting depth, keep the evaluation population and error definition the same across candidates, and compare the resulting errors. For classification, an overall misclassification rate is easy to compute but may conceal poor performance on a rare event; inspect event recall, false alerts, calibration, or decision cost when those matter. If policies are scored in later periods, a later-period validation set is more relevant than a randomly mixed set. Depth is only one control: leaf-size limits and pruning also affect complexity. After choosing settings, assess whether the tree's improvement is large and consistent enough to matter in use.
Worked example: On the same 50 later-period policies, a shallow classification tree misclassifies 4 and a deeper one misclassifies 7. Their error rates are 4 ÷ 50 = 8% and 7 ÷ 50 = 14%. The shallow tree improves this measure by 6 percentage points. Even if the deeper tree fits training records better, the holdout favors the shallow tree.
Watch the distinction: Fewer training mistakes do not establish that a deeper tree predicts better. Its extra leaves can capture random variation, so compare candidate depths on the same excluded records.
Reference: [1]
56. Reading a tree path
A tree prediction can be explained by following one record from the root through each split until it reaches a terminal leaf. State the tested condition at each step, then describe the leaf estimate and its denominator. For a claim-rate tree, a leaf containing a total claim count and policy-year exposure can provide an estimated annual claim frequency by dividing claims by exposure. The resulting rate applies to records matching that path, subject to the stability of the leaf and the population used to build it. If the target is an event indicator instead, the leaf's event fraction estimates an event probability, with a different unit. A path is useful for communicating how the model groups records, but it does not establish a causal effect of any split variable. Check whether leaf size and later-period performance support the estimate.
Worked example: Suppose a tree sends policies with age under 40 and exposure above one year into a leaf with 6 claims across 30 policy-years. A matching policy receives a fitted frequency of 6 ÷ 30 = 0.2 claims per policy-year. If its coming exposure is 0.5 year and a proportional exposure assumption is reasonable, its expected count is 0.5 × 0.2 = 0.1 claim.
Watch the distinction: Reading a leaf's 0.2 claim rate as a 20% chance of at least one claim confuses frequency with probability. Multiple claims are possible, and conversion requires a count distribution.
Reference: [1]
57. Bagging and out-of-bag records
Bagging grows many trees on bootstrap samples, each drawn with replacement from the training records. Repeated records can appear in one draw, while some original records are omitted. The omitted records are out of bag for that tree and can be used to evaluate its prediction without fitting that tree on them. For a new observation, average regression-tree predictions or combine classification predictions according to the chosen forest output. Averaging reduces the variance caused by an individual tree's sensitivity to its training sample, although highly similar trees provide less reduction. An out-of-bag estimate combines predictions only from trees that omitted each record; it is not the same as evaluating on an entirely later population. Examine that distinction when time drift matters. Tree ensembles are part of the PA scope; the separate ATPA study guide concerns another assessment.
Worked example: From training records A, B, C, and D, one four-record bootstrap draw is A, A, C, D. B is out of bag for that tree. For a new claim, suppose three bagged regression trees predict $100, $130, and $160. Their ensemble prediction is ($100 + $130 + $160) ÷ 3 = $130. This averaging does not ensure that every tree is accurate.
Watch the distinction: An out-of-bag record is omitted from a particular tree's bootstrap draw, not from the entire training dataset. It may be included in other trees.
Reference: [1]
58. Random forests and candidate predictors
A random forest combines bootstrap sampling with a further random choice at each split: only a subset of available predictors is considered. If one strong predictor would otherwise dominate most trees, withholding it at some splits can produce trees with different structures. Less correlated tree errors can make averaging more effective, though choosing too few candidate predictors may weaken individual trees. The candidate count is a tuning setting, not the number of predictors permanently retained in the forest. For regression, average tree predictions. For event probabilities, an implementation may average tree probabilities; inspect calibration before treating that average as a decision probability. Use held-out or out-of-bag performance to tune settings such as candidate count and leaf size, then inspect subgroup errors. Variable importance can suggest where predictive information lies, but correlated predictors can share or distort that importance.
Worked example: Assume 10 predictors are available and a hypothetical forest setting considers 3 randomly selected candidates at each split. A predictor omitted at one split remains eligible elsewhere. If three trees assign a new policy event probabilities of 0.2, 0.4, and 0.3, their average is (0.2 + 0.4 + 0.3) ÷ 3 = 0.3, or 30%. Check calibration before acting on it.
Watch the distinction: Considering three predictors at a split does not restrict the whole forest to three predictors. New candidate subsets are drawn at other splits and trees.
Reference: [1]
59. Sequential boosting updates
Boosting builds an additive model sequentially. In squared-error boosting, begin with an initial prediction, calculate each training record's residual, and fit a new shallow tree to those residuals. Add a fraction of that tree's fitted correction to the current prediction, then calculate fresh residuals for the next step. The learning rate controls the size of each update; smaller steps commonly require more trees. For other losses, the tree targets a related loss gradient rather than ordinary residuals, so interpretation must follow the objective. Because later trees respond to earlier model errors, boosting can capture patterns that a single shallow tree misses. It can also follow noise if iterations continue too long or trees are too complex. Tune learning rate, tree size, and number of trees using excluded data, then examine calibration or error in the groups relevant to the business decision.
Worked example: For a hypothetical squared-error boosting step, a record's observed claim cost is $130 and the current prediction is $100, so its residual is $30. The next shallow tree predicts a $20 correction for that record. With learning rate 0.1, update to $100 + 0.1 × $20 = $102. Its remaining residual is $130 − $102 = $28.
Watch the distinction: A tree's fitted correction is not necessarily added in full. The learning rate scales the update, and subsequent trees fit the errors left after earlier updates.
Reference: [1]
60. Choosing among tree ensembles
Select a tree ensemble by comparing candidates on the same excluded records, outcome, and error scale, then ask whether the improvement serves the business decision. Root mean squared error emphasizes large errors in a numeric outcome and retains that outcome's units. It does not reveal whether predictions are biased for a particular subgroup or whether event probabilities are calibrated. Compare a simpler tree or GLM alongside bagging, random forest, and boosting when they address the same target. Examine stability across periods, sensitivity to tuning, and the level of explanation needed by decision makers. A modest average gain may be less useful if it comes with large errors in a critical segment or cannot support the required action. Conversely, a consistent material gain may justify an ensemble if its predictions can be monitored and explained at the level the decision requires.
Worked example: On one common holdout set, suppose claim-cost RMSE values are $120 for a GLM, $115 for a pruned tree, $105 for a random forest, and $108 for boosting. The forest has the lowest RMSE. Relative to the GLM, its improvement is ($120 − $105) ÷ $120 = 12.5%. Review subgroup errors and, if probabilities drive action, calibration before selecting it.
Watch the distinction: The lowest overall RMSE does not settle every business choice. It can hide weak performance in important groups and says nothing by itself about probability calibration.
Reference: [1]