Bonds, swaps, and rate derivatives require a model for the short interest rate $r_t$ under the risk-neutral measure. Vasicek (1977) proposed a Gaussian mean-reverting SDE; Cox, Ingersoll & Ross (1985) a square-root diffusion that keeps rates non-negative. Both are one-factor affine models with closed-form zero-coupon bond prices and tractable yield curves. Hull-White (1990) extended Vasicek with time-varying parameters to fit observed curves; HJM (1992) generalised to arbitrary forward-rate dynamics.
Both Vasicek and CIR have closed-form bond prices $P(t, T) = A(t,T) \exp[-B(t,T) r_t]$. For Vasicek:
Simulated short-rate paths $r_t$. Gold dashed = long-run level $b$; coloured lines = sample trajectories under Euler-Maruyama discretisation.
Closed-form zero-coupon yield curve $y(0, T)$ at the current parameters. Long-end yield converges to the stationary expectation; shape depends on $(r_0, b, a, \sigma)$.