Technical Reference & Strategy Overview

Methodology & Model Formulation

A plain-language and mathematical explanation of the Vasicek stochastic rate model, amortization engine, and mortgage strategy comparison framework — for both technical users and senior management.

1. What This Tool Does

The Mortgage Rate Strategy Analyser is an Asset-Liability Management (ALM) tool that helps borrowers, financial advisors, and treasury teams make an evidence-based decision between a fixed-rate and a variable-rate mortgage — or a hybrid of both.

The core question it answers is: "Given uncertainty about future interest rates, which mortgage strategy minimises total interest cost, and what is the cost of that certainty?"

It answers this through four analytical layers:

  • Deterministic amortization — exact schedules under flat-rate assumptions for each strategy.
  • Stochastic rate simulation — Monte Carlo paths of future short rates using the Vasicek model, revealing the probabilistic distribution of outcomes for a variable-rate borrower.
  • Opportunity cost analysis — models what happens if the payment savings from choosing variable are invested in an equity portfolio instead of prepaying debt.
  • Sensitivity analysis — convexity of lump-sum prepayments and break-even inflation thresholds.

2. The Four Strategies Compared

Every analysis compares four scenarios side-by-side:

Strategy Payment Used Rate Used Lump Sum Purpose
Fixed Baseline Fixed payment \(M_f\) Fixed rate \(r_f\) throughout \(\$L\) at period \(k\) Certainty benchmark — locks in known cost
Standard Variable Lower variable payment \(M_v\) Variable rate \(r_v\) (flat assumption) \(\$L\) at period \(k\) Lower cost if rates stay flat or fall
Hedged Variable Fixed payment \(M_f\) at variable rate Variable rate \(r_v\) \(\$L\) at period \(k\) Best of both: variable rate, fixed-rate discipline, accelerated paydown
Stress (+2%) Stressed payment \(r_v + 2\%\) throughout None Regulatory / affordability stress test
Key Insight for Decision-Making
The lump-sum prepayment \(\$L\) applies to the Fixed, Standard Variable, and Hedged Variable strategies equally — allowing a fair, apples-to-apples comparison of how the same prepayment performs under each rate structure. The Hedged Variable strategy is typically the most efficient: the borrower benefits from the lower variable rate but maintains the higher fixed payment, so every dollar of payment delta attacks the principal directly — compounding the savings over the full amortization period.

3. Amortization Model

3.1 Level-Payment (Annuity) Formula

The standard per-period payment \(M\) for a loan of principal \(P\), annual nominal rate \(r\), over \(n\) total amortization periods, with \(f\) payment periods per year, is:

$$M = P \cdot \frac{r_p \,(1 + r_p)^n}{(1 + r_p)^n - 1}$$

where \(r_p = r / f\) is the per-period rate. The tool supports three payment frequencies: monthly (\(f = 12\)), bi-weekly (\(f = 26\)), and weekly (\(f = 52\)). All amortization calculations and Monte Carlo simulations automatically scale to the selected frequency.

3.2 Per-Period Decomposition

At each period \(t\), the payment splits into:

$$\text{Interest}_t = B_{t-1} \cdot r_p \qquad \text{Principal}_t = M - \text{Interest}_t \qquad B_t = \max(0,\; B_{t-1} - \text{Principal}_t)$$

where \(B_t\) is the outstanding balance after payment \(t\). The balance declines slowly in early periods (most of \(M\) is interest) and accelerates toward zero as the loan matures — the characteristic convex amortization profile visible in the Balance Trajectories chart. Higher-frequency payments (bi-weekly, weekly) reduce the balance slightly faster because interest accrues over a shorter period between payments.

3.3 Lump-Sum Prepayment

When a prepayment \(L\) is applied at period \(k\), it reduces the balance after the regular payment for that period:

$$B_k = \max\!\left(0,\; B_{k-1} - \text{Principal}_k - \min(L,\, B_{k-1} - \text{Principal}_k)\right)$$

The lump-sum month entered by the user (e.g. month 12) is automatically converted to the equivalent period index for non-monthly frequencies. Because the reduced balance compounds for the remaining \(n - k\) periods, the interest saving from a prepayment is highly non-linear (see §8 Convexity).

4. The Vasicek Interest Rate Model

4.1 Motivation

A fixed-rate mortgage eliminates rate uncertainty entirely, but at a cost premium. A variable-rate mortgage exposes the borrower to future rate movements. To quantify that exposure, we need a stochastic model of how rates evolve over time.

The Vasicek (1977) model is one of the most widely used equilibrium short-rate models in fixed-income risk management. It captures two empirically observed features of interest rates:

  • Mean reversion — rates tend to drift back toward a long-run equilibrium \(\theta\) (central bank policy anchor). When rates are above \(\theta\), the drift is negative; when below, positive.
  • Random shocks — rates are continuously disturbed by unpredictable market forces, modelled as a Brownian motion \(W_t\).

4.2 The Stochastic Differential Equation (SDE)

The Vasicek model defines the instantaneous change in the short rate \(r_t\) as:

$$\boxed{dr_t = \kappa\,(\theta - r_t)\,dt + \sigma\,dW_t}$$
SymbolNameInterpretationTypical Value
κ (kappa)Mean-reversion speedHow quickly rates snap back to \(\theta\). Higher \(\kappa\) = faster reversion.0.10 – 0.50
θ (theta)Long-run equilibriumThe rate level rates are attracted to over time. Calibrated to central bank targets.2.5% – 4.5%
σ (sigma)Instantaneous volatilityMagnitude of random shocks. Higher \(\sigma\) = wider fan chart bands.0.8% – 1.5%
\(dW_t\)Brownian incrementRandom shock: \(dW_t \sim \mathcal{N}(0, dt)\)

4.3 Analytical Properties

The Vasicek model has a closed-form solution. Conditional on \(r_0\), the rate at time \(T\) is normally distributed:

$$r_T \;\sim\; \mathcal{N}\!\left(\theta + (r_0 - \theta)\,e^{-\kappa T},\;\; \frac{\sigma^2}{2\kappa}\!\left(1 - e^{-2\kappa T}\right)\right)$$

The mean reverts exponentially from \(r_0\) toward \(\theta\) at speed \(\kappa\). The variance grows initially and saturates at \(\sigma^2 / (2\kappa)\) — which is why the fan chart widens and then stabilises.

Limitation to Note
The Vasicek model allows negative rates, which is theoretically possible but practically constrained. This tool applies a rate floor (default 2.25%) to clip simulated paths — matching the Bank of Canada's effective lower bound convention. Alternative models (CIR, Hull-White) guarantee non-negativity but are more complex to calibrate.

5. Euler–Maruyama Discretisation (Monte Carlo)

5.1 From Continuous to Discrete Time

To simulate thousands of rate paths on a computer, the continuous SDE is discretised to period steps \(\Delta t = \tfrac{1}{f}\) (where \(f\) is the number of payment periods per year: 12 monthly, 26 bi-weekly, or 52 weekly) using the Euler–Maruyama scheme:

$$r_{t+\Delta t} = \max\!\left(r_{\text{floor}},\;\; r_t + \kappa(\theta - r_t)\,\Delta t + \sigma\sqrt{\Delta t}\;Z_t\right)$$

where \(Z_t \sim \mathcal{N}(0,1)\) is a standard normal random draw, independent across time and paths.

5.2 Vectorized Implementation

All \(N\) paths (default 2,000) are simulated simultaneously in a matrix of shape \((\text{periods} \times N)\). At each time step \(t\), the update is:

$$\mathbf{r}_{t+1} = \max\!\left(r_{\text{floor}},\;\; \mathbf{r}_t + \kappa(\theta - \mathbf{r}_t)\,\Delta t + \sigma\sqrt{\Delta t}\;\mathbf{Z}_t\right)$$

where bold denotes the \(N\)-dimensional vector of all paths. NumPy broadcasts this across all paths in a single operation, making 10,000 paths feasible in under 2 seconds.

5.3 Fan Chart Interpretation

The fan chart plots cross-sectional percentiles across all simulated paths at each period:

  • P50 (median) — the most likely rate trajectory.
  • P10 / P90 band — 80% of all simulated scenarios fall within this range.
  • P25 / P75 band — the interquartile range (50% of scenarios).

The MC histogram tab shows the resulting distribution of total interest paid over the term — the quantity that directly affects the borrower's out-of-pocket cost.

6. Opportunity Cost — Invest-the-Difference

Choosing the variable rate frees up the per-period payment delta \(\delta = M_f - M_v\) each period. The invest-the-difference model asks: what if this saving were invested in equities instead of used to pay down the mortgage faster?

If the equity portfolio compounds at CAGR \(g\), the per-period growth factor is:

$$\mu_p = (1 + g)^{1/f} - 1$$

The portfolio value at period \(t\) evolves as:

$$V_t = (V_{t-1} + c_t)\,(1 + \mu_p), \qquad c_t = \delta + L \cdot \mathbf{1}[t = k]$$

where \(c_t\) is the total per-period contribution (payment delta plus any lump sum at period \(k\)). The terminal value is compared against the interest savings of the Hedged strategy to determine which creates more wealth.

Decision Rule
If \(V_{60} > \text{Interest Saving (Hedged vs. Fixed)}\), investing the delta outperforms prepaying the mortgage. The crossover depends on the equity CAGR assumption relative to the mortgage rate — a classic debt vs. invest trade-off.

7. Break-Even Inflation — Fisher Equation

A nominal mortgage rate \(i\) can be decomposed into a real cost of borrowing \(r\) and an inflation compensation component \(\pi\) via the Fisher Equation:

$$(1 + i) = (1 + r)(1 + \pi) \approx 1 + r + \pi \quad\Longrightarrow\quad \pi \approx i - r$$

Setting \(r = 0\) gives the break-even inflation rate \(\hat{\pi}\):

$$\hat{\pi} = i$$

This is the inflation rate at which the real cost of the debt is zero. If actual inflation exceeds \(\hat{\pi}\), the borrower is being paid (in real terms) to hold debt — a strong argument for locking in a fixed rate for as long as possible. If inflation is below \(\hat{\pi}\), the real burden of debt is positive.

8. Lump-Sum Convexity

The interest saving from a prepayment \(L\) is a convex, non-linear function of \(L\). Let \(I(L)\) denote total interest paid over the term as a function of lump-sum size. Then:

$$\text{Marginal Saving}(L) = -\frac{\partial I}{\partial L} > 0$$ $$\text{Convexity} = -\frac{\partial^2 I}{\partial L^2}$$

In the discrete approximation (sweeping \(L\) in $5,000 increments):

$$\text{Marginal Saving}_j = I(L_{j-1}) - I(L_j), \qquad \text{Convexity}_j = \text{Marginal Saving}_j - \text{Marginal Saving}_{j-1}$$

Positive convexity means each additional dollar prepaid saves more than the previous dollar. In practice, convexity is highest for prepayments made early in the amortization period because the balance is still large and there are many compounding months ahead for the saving to accumulate.

9. Full Parameter Reference

Parameter Symbol Default Description
Principal\(P\)$750,000Initial outstanding mortgage balance (CAD)
Amortization\(n\)25 years (300 months)Full loan repayment horizon
Payment Frequency\(f\)Monthly (12/yr)Payment cadence: Monthly (12), Bi-Weekly (26), or Weekly (52) periods per year
Term60 monthsEvaluation / renewal window (typically 5 years in Canada)
Fixed rate\(r_f\)4.10%Annual nominal rate for fixed-rate mortgage
Variable rate start\(r_v\)3.35%Initial annual variable rate (Bank of Canada prime-linked)
Lump-sum amount\(L\)$20,000One-time prepayment applied at period \(k\)
Lump-sum month\(k\)12Month in which the lump sum is applied; auto-converted to the equivalent period for non-monthly frequencies
Mean reversion speed\(\kappa\)0.35Vasicek mean-reversion speed toward \(\theta\)
Long-run rate\(\theta\)3.5%Vasicek equilibrium rate (calibrated to BoC neutral rate)
Rate volatility\(\sigma\)1.2%Vasicek instantaneous volatility of rate changes
Rate floor\(r_{\text{floor}}\)2.25%Hard lower bound on simulated rates (effective lower bound)
Equity CAGR\(g\)7.0%Assumed long-run equity portfolio growth (opportunity cost)
Simulations\(N\)2,000Number of Monte Carlo rate paths

10. Management Summary — What This Means for You

The following section is written for clients and senior management who need to understand the strategic implications without the mathematical detail.

The Core Trade-Off

When you choose a fixed-rate mortgage, you are purchasing certainty. You know exactly what your payment will be for the full term, regardless of what happens to interest rates. That certainty has a price: fixed rates are typically higher than variable rates at the time of signing.

A variable-rate mortgage starts cheaper, but your payments — and total interest cost — can rise if the Bank of Canada increases rates. You are accepting some risk in exchange for a lower starting cost.

What "Hedged Variable" Actually Means

The most powerful strategy in this tool is the Hedged Variable. Here, you take the variable rate (lower interest cost) but continue making the higher fixed-rate payment voluntarily. The difference does not go to the bank as interest — it attacks your principal directly.

This means you pay down your mortgage faster than either the pure fixed or pure variable borrower, while also benefiting from the lower rate. Adding a one-time lump-sum payment amplifies this further, because every dollar off the principal today eliminates all future interest on that dollar.

What the Monte Carlo Simulation Tells You

Rather than assuming rates will stay flat, the fan chart shows thousands of plausible rate paths — high, low, and everything in between — consistent with how rates have historically behaved. The histogram shows the distribution of what your total interest bill would be across all those scenarios.

If the bulk of that distribution is still below the fixed-rate total, variable wins even in most adverse scenarios. If it overlaps significantly with — or exceeds — the fixed-rate line, the certainty of a fixed rate becomes more attractive.

The Invest-the-Difference Question

One legitimate alternative to prepaying your mortgage is to invest the savings. If equity markets return more than your mortgage rate (after tax), you are better off letting the cheap debt run and growing your wealth elsewhere. The Opportunity Cost chart quantifies this trade-off directly.

Key Takeaways at a Glance

Choose Fixed If…
  • You need payment certainty for budgeting
  • You expect rates to rise significantly
  • Current inflation is near or above the break-even rate
  • The rate spread between fixed and variable is unusually narrow
Choose Hedged Variable If…
  • The variable rate is meaningfully below fixed (≥ 50 bps)
  • You can absorb short-term payment fluctuations
  • You have surplus cash for a lump sum in Year 1
  • P50 Monte Carlo outcome is favourable vs. fixed
Disclaimer
This tool is an analytical aid for informed decision-making. It is not financial advice. All Monte Carlo projections are based on model assumptions that may not reflect actual future market conditions. Always consult a licensed mortgage advisor or financial planner before making mortgage decisions.