Principle:Avhz RustQuant Bond Pricing
| Knowledge Sources | |
|---|---|
| Domains | Fixed_Income, Quantitative_Finance |
| Last Updated | 2026-02-07 21:00 GMT |
Overview
Bond pricing theory provides the mathematical framework for valuing fixed-income securities, including zero-coupon bonds and coupon-bearing bonds, using discount factors derived from short-rate models such as Vasicek, Cox-Ingersoll-Ross, and Hull-White.
Description
Bond pricing is the process of determining the fair value of a debt instrument by discounting its future cashflows to the present. In RustQuant, bonds are modeled as instruments that implement the Instrument trait, which provides a price() method returning the net present value.
A zero-coupon bond (also called a pure discount bond) pays no periodic interest and instead returns its full face value at maturity. Its price equals the present value of the face value discounted at the appropriate rate.
A coupon bond pays periodic interest and can be viewed as a portfolio of zero-coupon bonds. For example, a 2-year bond with semi-annual 5% coupons and $100 face value is equivalent to four zero-coupon bonds corresponding to each coupon payment plus the final principal repayment.
RustQuant implements three analytic short-rate models for pricing zero-coupon bonds:
- Vasicek model: The short rate follows , with mean-reversion speed , long-term level , and volatility . The bond price is .
- Cox-Ingersoll-Ross (CIR) model: The short rate follows , where the volatility is proportional to , ensuring non-negative interest rates when .
- Hull-White model: The short rate follows , where is a time-dependent function that allows exact calibration to the initial term structure.
Usage
Use bond pricing when valuing fixed-income securities, constructing yield curves, computing bond portfolio present values, or calibrating short-rate models to market data. The analytic formulas are preferred over numerical methods when closed-form solutions are available, as they provide exact results with no simulation error.
Theoretical Basis
The general zero-coupon bond price under an affine short-rate model takes the form:
For the Vasicek model:
For the CIR model, with :
For the coupon bond, the price is the sum of discounted cashflows:
where is the cashflow at time and is the corresponding discount factor from the discount curve.