Follow the study from the first benefit payment to the hedge and cash-stress decision. Each entry links an implementation decision to a check and a project artifact.
04
Illustrative weeks
28
Calendar entries
OCT 11 – NOV 07
2026
Calendar note. The dates are illustrative and organize a retrospective walkthrough. The observed calibration and valuation dates are shown separately in the study.
WEEK 01 / Oct 11–Oct 17
Build the pension balance sheet
Define the plan, source public inputs and value the opening assets and liabilities in Canadian dollars.
DAY 01
Set the plan’s opening budget
Start a fictional closed defined-benefit plan with CAD 1.0B of liabilities and CAD 1.05B of assets. Allocate 30% to public equity, 35% to long bonds, 15% to real assets, 10% to private equity and 10% to credit.
Check. Reconcile the five sleeve balances to CAD 1.05B, a CAD 50M opening surplus and a 105% funding ratio.
Create annual payments for years 1 through 60 using a hump-shaped runoff. Choose its decay by root finding to produce 15 years of opening liability duration. Scale the payment vector to the target liability PV.
Check. Confirm all benefit payments are positive, opening PV matches the plan target, and the duration comes from PV weights.
Read the Bank of Canada’s published zero yields at nine knots from 3 months to 30 years. Store a separate 2026-10-21 valuation snapshot and keep quote dates distinct from the publication lag.
Check. Verify finite continuously compounded decimal rates in increasing tenor order. Save the exact source URL and both local file hashes.
Represent public equity with XIU and VFV, long bonds with XLB, real assets with ZRE and IGF, listed private-equity exposure with PSP, and credit with XCB. Preserve both rates and credit-spread exposure in the credit proxy.
Check. Check ticker, currency and underlying mandate against the fund issuers. Treat listed exposures as imperfect proxies for private assets.
Convert USD-listed IGF and PSP to CAD using the same-date USD/CAD close. Use the last joint observed close in each completed month and chain both 50/50 baskets with monthly rebalancing.
Check. Exercise a fixture with a currency move and a partial final month. Reject any gap in the monthly sequence so a multi-month move cannot enter as a one-month change.
Linearly interpolate the zero rate at each payment horizon, carry the 30Y yield flat past the last observed knot, and apply a fixed 50 bp liability spread. Discount each payment separately.
Check. Remove the first benefit from the liability PV after one year, and shorten the maturity of each remaining payment by one year.
Compute positive liability and bond DV01s for individual curve knots. Model the direct long-bond sensitivity with 20Y par cash flows and the direct credit sensitivity with 8Y par cash flows plus a fixed spread.
Check. Compare the sum of key-rate DV01s with the sensitivity to a parallel 1 bp move. The opening bond and credit sleeves cover about 38.4% of liability DV01.
Fit a joint market law, carry both sides of the plan through the same scenarios and decompose the resulting risk.
DAY 08
Convert levels to joint changes
Use 167 joint month-end observations to build 166 monthly moves. Use log total returns for the five asset sleeves and absolute decimal changes for each of the nine GoC yields.
Check. Check that the first usable change is December 2012 and that the final observation is the last joint September 2026 close. Hold October for the valuation snapshot.
Apply a one-lag smoothing filter with alpha 0.55 to the CAD-translated listed proxy returns. Invert the filter to illustrate the effect of stale valuations on observed risk.
Check. The inversion recovers the original listed proxy by construction. Report about 10.0% annualized volatility for the smoothed illustration and 18.5% after reversal. No private NAV data enters the model.
Reprice the 20Y and 8Y structural sleeves for every historical yield move and subtract the direct repricing effect from the corresponding ETF log returns. Fit residuals and curve changes together.
Check. In projections, add direct curve repricing back once. Leave carry and other drivers, including credit spread moves, embedded in the historical residuals.
Estimate a 14-factor monthly mean and covariance from the aligned moves. Aggregate to one year using twelve IID monthly increments and generate 20,000 joint Gaussian paths with a fixed seed.
Check. Use a covariance factor that handles tiny numerical eigenvalues. Reuse the same draws for every hedge target to make differences attributable to the overlay.
Compound residual returns, revalue the direct bond and credit rate exposures, and discount remaining benefits along each shocked curve. Deduct the year-one benefit from assets when it leaves liabilities.
Check. Review the timing in a zero-shock path and make sure that the year-one payment is reflected once on each side of the balance sheet.
For each path, subtract end-year liability PV from assets to get surplus. Divide assets by liabilities for the funding ratio. Define 95% surplus-at-risk as opening surplus less the fifth-percentile end-year surplus.
Check. Tabulate mean end-year surplus and the fraction of paths below 100% funding. Keep probability of underfunding separate from the loss quantile.
Compute each Euler contribution as covariance of the component with total surplus divided by total surplus volatility. Include five sleeve residuals and a net rate mismatch component that includes the swap.
Check. Reconcile the signed components to total surplus standard deviation. Treat negative contributions as diversification under this sample and metric.
Compare 101 DV01 targets and assess collateral calls, capital calls and benefit payments under stress.
DAY 15
Price a 15Y swap overlay
Derive the par fixed rate from annual payments on the opening curve. Reprice the remaining swap plus first net coupon at the one-year horizon, and use clean instantaneous repricing in the liquidity test.
Check. An opening par swap has zero value. A receive-fixed overlay loses value when the entire curve rises. Above the natural hedge, positive notional means receive fixed.
Subtract natural asset DV01 from the target dollar DV01, then divide by swap DV01 per CAD of notional. Evaluate targets from 0% to 100% in one-point increments.
Check. Verify the natural book requires zero overlay, 0% requires pay-fixed and 100% matches total parallel DV01. Residual tenor-specific exposures remain.
For each target, evaluate common Monte Carlo paths and plot expected end-year surplus against 95% surplus-at-risk. Preserve a separate natural-book benchmark rather than rounding it to the slider grid.
Check. Compare about CAD 90.0M of surplus-at-risk for the natural book with CAD 78.4M for the 100% parallel hedge. Verify the difference on the underlying report table.
Assign monetizable shares and haircuts to public equity, long bonds and credit. Apply stressed mark changes before the sale fractions and haircuts. Exclude real assets and private equity from immediate eligible resources.
Check. Reprice the bond and credit sleeves over a 0 to 400 bp stress grid. Ensure stronger equity losses reduce stressed equity sale proceeds.
Use 30% equity drawdown and +200 bp as the sample shock. Combine variation margin on a negative swap mark with a 20% private equity capital call and one-twelfth of year-one benefits.
Check. Only unfavorable swap value enters margin outflows. A swap gain does not count as immediately spendable cash in this simplified stress.
Calculate liquidity coverage as stressed resources divided by cash outflows. Calculate headroom as resources less outflows, independently of one-year funding ratios.
Check. The 100% DV01 hedge leaves about CAD 61.7M of cash shortfall under the default stress despite lower modeled surplus-at-risk. Reconcile resources and all three outflow lines.
Filter the default frontier to cases where stressed resources cover outflows, then choose the smallest modeled surplus-at-risk among the survivors.
Check. The unconstrained minimum is 83% coverage with CAD 73.3M of surplus-at-risk. The cash screen selects 76%, with CAD 73.9M of surplus-at-risk and CAD 1.41M of stressed headroom under this case.
Reconcile the numbers, disclose the limitations and expose the Python outputs in an interactive decision lab.
DAY 22
Verify pricing and simulation invariants
Test par instruments, finite-difference DV01, swap direction, repeatable scenarios and the Euler reconciliation with synthetic fixtures. Run market alignment and liquidity tests alongside the model suite.
Check. Require tests to run without downloading data. Keep the published statistical result reproducible from separately fetched public inputs.
Write tables for benefit cash flows, key-rate DV01, baseline and full-hedge comparison, Euler contributions and the 101-point frontier. Export the same model outputs to the website payload.
Check. Use common histogram edges so comparisons retain consistent bins. Assert that every path is counted for every displayed target.
Add presets for the natural book, a 75% sample target and the full DV01 match. Update the frontier marker, funding distribution, swap notional and decomposition from the selected case.
Check. Check that the natural case uses exact asset DV01, and that moving the slider does not reroll simulated paths.
Let visitors change equity drawdown, parallel rate rises and the private capital call. A sample button populates the default stress. Split cash resources and outflows so the source of a shortfall stays visible.
Check. Verify that the same hedge target feeds both labs and compare the displayed default cash values with the Python output.
Check the repository-relative URLs, keyboard controls, mobile sizing and public result payload. Verify the notebook can read the published outputs from a clean checkout.
Check. Keep the Yahoo close series in the local workspace. Publish aggregated outputs and metadata with the code and documentation.
Serve the interactive study and this handbook from the repository. Link both pages to the model and its published evidence so visitors can reproduce the work.
Check. Verify the live example changes the funding view and runs the default cash stress. Keep illustrative dates separate from the observed market dates.