Introduction
In our previous lessons, we've journeyed from rigid parametric formulas to the more adaptable method of graduating by reference to a standard table. While these are powerful, they still impose a significant amount of structure on the data. What if we want to let the data dictate the shape of the mortality curve more freely, while still ensuring a smooth and plausible result?
This lesson introduces graduation methods that prioritize flexibility and data-driven shape. We will start with a brief look at graphical graduation, a historical method that relies on visual judgment. We will then transition to its modern, statistically rigorous successor: spline-based graduation. As a statistician, you'll find the concepts behind splines—piecewise polynomials, basis functions, and penalized estimation—to be a fascinating application of non-parametric regression and regularization techniques to the field of mortality modeling.
Graphical Graduation: The Art of Smoothing
The most intuitive way to graduate crude rates is to simply plot them and draw a smooth curve that you feel best represents the underlying trend. This is the essence of graphical graduation. The process involves:
- Plotting the crude mortality rates () on a graph, often with a logarithmic scale for the y-axis.
- Drawing a freehand curve that passes through the "middle" of the plotted points, ignoring what appear to be random fluctuations.
- Reading the graduated rates directly from the hand-drawn curve at each age.
While this method is simple to understand and can be a useful exploratory tool, it has significant drawbacks:
- Subjectivity: Two different actuaries will almost certainly produce two different sets of graduated rates from the same data.
- Lack of Reproducibility: The process is not based on a formal mathematical or statistical procedure.
- Difficulty in Testing: It is challenging to statistically assess the goodness-of-fit of a hand-drawn curve.
Because of these limitations, graphical graduation is rarely used for final, formal graduations in modern practice. However, it serves as the conceptual foundation for more sophisticated methods that aim to automate this "curve-drawing" process, which leads us to splines.
Spline-Based Graduation: A Rigorous Approach to Flexibility
How can we create a flexible curve that follows the data, but do so in an objective and reproducible way? The answer lies in using splines. A spline is a function constructed by joining several simple polynomial functions together, piece by piece.
The points where the polynomial pieces connect are called knots. To ensure the final curve is smooth, we impose continuity conditions at these knots. For cubic splines, which are very common in mortality work, we require that the value of the function, its first derivative, and its second derivative are all continuous at each knot. This ensures a seamless transition between the polynomial segments, resulting in a curve that is not only continuous but also has continuous slope and curvature.
The following short video provides an excellent introduction to the core concepts of cubic splines.
This video from the channel of Oscar Veliz clearly explains the properties of a cubic spline.
Please watch the first minute of the video, from the introduction. Focus on the visual examples and the key definition: a cubic spline is continuous and has a continuous first and second derivative at the points where the polynomial pieces join. Note the mention of a natural cubic spline, which has the additional constraint of being linear beyond the end knots; this is a common choice for graduation.
The great advantage of splines is their flexibility. By placing knots at appropriate ages, we can create a curve that captures complex features in mortality data, such as the "accident hump" in the teenage years, which traditional parametric models like Gompertz or Makeham would miss.

P-splines: Taming Flexibility with Penalization
Splines solve the flexibility problem, but they introduce a new one: how many knots should we use, and where should we place them?
- Too few knots, and the spline might not be flexible enough (high bias).
- Too many knots, and the spline can become overly "wiggly," fitting to random noise in the data instead of the underlying trend (high variance).
This is a classic bias-variance trade-off. Penalized splines, or P-splines, offer an elegant solution. The idea, introduced by Eilers and Marx (1996), is to use a generous number of knots (often regularly spaced) and then add a penalty to the estimation process that discourages "roughness."
The estimation is typically done by maximizing a penalized log-likelihood:
Let's break this down:
- is the standard log-likelihood function (e.g., from a Poisson model), which encourages the curve to fit the data closely.
- is the roughness penalty. It's a function of the spline's coefficients () that becomes large if the curve is too wiggly. A common choice for is the sum of the squared second differences of adjacent spline coefficients. A smooth, straight line would have a penalty of zero.
- is the smoothing parameter. This non-negative parameter controls the trade-off.
- If , there is no penalty, and the spline will fit the data as closely as possible, likely overfitting.
- As , the penalty dominates, forcing the spline to become as smooth as possible. For a second-difference penalty, this forces the fit towards a straight line on the log-mortality scale (i.e., a Gompertz model).
This concept of penalized estimation is central to modern statistics (e.g., ridge regression, LASSO) and provides a powerful way to manage model complexity. The following video from Stanford's Statistical Learning course explains this fundamental idea beautifully.
Statistical Learning: 7.3 Smoothing Splines
This video, featuring Prof. Trevor Hastie, introduces smoothing splines and the concept of a roughness penalty. While it uses a residual sum of squares (RSS) framework for regression, the principle is identical for the log-likelihood framework we use.
First, watch the introduction to the smoothing spline criterion. The key takeaway is the objective function, which seeks a function g that minimizes (Fidelity to data) + λ * (Roughness penalty). Next, watch the explanation of the tuning parameter λ. This segment clearly illustrates how λ controls the smoothness of the resulting fit, from a wiggly interpolating function to a simple linear model.
The P-spline Graduation Process
Putting this all together, graduating with P-splines follows a clear, statistical workflow.
[PDF] A Practitioner's Guide to Statistical Mortality Graduation - SOA.org
This guide from the Society of Actuaries provides a concise technical overview of P-splines in an actuarial context.
Please read the section titled "Smoothing through P-splines and Similar" (page 27). Focus on the key components: The model representation: The log force of mortality, \ln(\mu_x), is expressed as a linear combination of basis splines (B-splines), as shown in Equation (9). The penalty function: Note the example for a penalty based on second-order differences. The penalized log-likelihood: See Equation (11), which formalizes the objective function we've discussed. Modeling decisions: The practitioner must choose the key parameters.
The choice of the smoothing parameter is crucial. Rather than being chosen arbitrarily, it is typically selected using statistical criteria like minimizing the Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), or through cross-validation. This makes the entire process objective and data-driven.
The result is a smooth curve that captures the underlying trend in the data without overfitting to random noise.

A sophisticated concept related to the penalty is the effective degrees of freedom. While a spline model might have many parameters (coefficients), the penalty "uses up" some of these parameters to enforce smoothness. The effective degrees of freedom, which is typically a non-integer value, measures the true flexibility of the fitted model. A model with a large will have very few effective degrees of freedom. This concept, which is discussed in the optional video segment below, provides a formal way to quantify model complexity in penalized models.
Statistical Learning: 7.3 Smoothing Splines
This optional segment from the Stanford video discusses advanced topics related to smoothing splines.
If you're interested, you can watch the segment from effective degrees of freedom to the end. It explains how the complexity of a smoothing spline is measured not by the number of knots, but by the effective degrees of freedom, and how cross-validation can be used to choose the optimal smoothing parameter λ.
Conclusion
In this lesson, we have moved from the subjective art of graphical graduation to the powerful and objective science of spline-based methods. P-splines, in particular, represent the state-of-the-art in non-parametric graduation, offering a superb balance between fidelity to the data and the necessary smoothness of a mortality curve.
Key Takeaways:
- Graphical Graduation: An intuitive but subjective method involving hand-drawing a smooth curve through plotted crude rates.
- Cubic Splines: Provide a flexible way to model mortality curves by joining cubic polynomial pieces smoothly. They can capture complex features that parametric models cannot.
- P-splines (Penalized Splines): Address the knot-selection problem by using many knots and adding a roughness penalty to the log-likelihood.
- The Smoothing Parameter (): This crucial parameter controls the trade-off between fitting the data closely (adherence) and keeping the curve from being too wiggly (smoothness). It is chosen objectively using statistical criteria like AIC, BIC, or cross-validation.
- The Process: P-spline graduation is a complete statistical modeling procedure that combines a statistical model for deaths (e.g., Poisson), a flexible spline function, and a penalty term to deliver a robust and reproducible graduation.
Preview of the Next Lesson
We have now learned three distinct ways to graduate mortality rates: using parametric formulas, referencing a standard table, and using flexible splines. But how do we judge the quality of our results? Is the fit good enough? Is the curve sufficiently smooth? In our next lesson, we will dive into the essential statistical tests used to assess a graduation, covering tests for adherence to data, such as the Chi-squared test.