# Cox–Ingersoll–Ross model

In mathematical finance, the Cox–Ingersoll–Ross (CIR) model describes the evolution of interest rates. It is a type of "one factor model" (short-rate model) as it describes interest rate movements as driven by only one source of market risk. The model can be used in the valuation of interest rate derivatives. It was introduced in 1985 by John C. Cox, Jonathan E. Ingersoll and Stephen A. Ross as an extension of the Vasicek model, itself an Ornstein–Uhlenbeck process.

## The model

The CIR model describes the instantaneous interest rate $r_{t}$ with a Feller square-root process, whose stochastic differential equation is
    $dr_{t}=a(b-r_{t})\,dt+\sigma {\sqrt {r_{t}}}\,dW_{t},$
where $W_{t}$ is a Wiener process (modelling the random market risk factor) and $a$, $b$, and $\sigma \,$ are the parameters. The parameter $a$ corresponds to the speed of adjustment to the mean $b$, and $\sigma \,$ to volatility. The drift factor, $a(b-r_{t})$, is exactly the same as in the Vasicek model. It ensures mean reversion of the interest rate towards the long run value $b$, with speed of adjustment governed by the strictly positive parameter $a$.
The standard deviation factor, $\sigma {\sqrt {r_{t}}}$, avoids the possibility of negative interest rates for all positive values of $a$ and $b$. An interest rate of zero is also precluded if the condition
    $2ab\geq \sigma ^{2}\,$
is met. More generally, when the rate ($r_{t}$) is close to zero, the standard deviation ($\sigma {\sqrt {r_{t}}}$) also becomes very small, which dampens the effect of the random shock on the rate. Consequently, when the rate gets close to zero, its evolution becomes dominated by the drift factor, which pushes the rate upwards (towards equilibrium).
In the case $4ab=\sigma ^{2}\,$, the Feller square-root process can be obtained from the square of an Ornstein–Uhlenbeck process. It is ergodic and possesses a stationary distribution. It is used in the Heston model to model stochastic volatility.

### Distribution

* Future distribution
    The distribution of future values of a CIR process can be computed in closed form:
       $r_{t+T}={\frac {Y}{2c}},$
    where $c={\frac {2a}{(1-e^{-aT})\sigma ^{2}}}$, and Y is a non-central chi-squared distribution with ${\frac {4ab}{\sigma ^{2}}}$ degrees of freedom and non-centrality parameter $2cr_{t}e^{-aT}$. Formally the probability density function is:
       $f(r_{t+T};r_{t},a,b,\sigma )=c\,e^{-u-v}\left({\frac {v}{u}}\right)^{q/2}I_{q}(2{\sqrt {uv}}),$
    where $q={\frac {2ab}{\sigma ^{2}}}-1$, $u=cr_{t}e^{-aT}$, $v=cr_{t+T}$, and $I_{q}(2{\sqrt {uv}})$ is a modified Bessel function of the first kind of order $q$.
* Asymptotic distribution
    Due to mean reversion, as time becomes large, the distribution of $r_{\infty }$ will approach a gamma distribution with the probability density of:
       $f(r_{\infty };a,b,\sigma )={\frac {\beta ^{\alpha }}{\Gamma (\alpha )}}r_{\infty }^{\alpha -1}e^{-\beta r_{\infty }},$
    where $\beta =2a/\sigma ^{2}$ and $\alpha =2ab/\sigma ^{2}$.

### Properties

* Mean reversion,
* Level dependent volatility ($\sigma {\sqrt {r_{t}}}$),
* For given positive $r_{0}$ the process will never touch zero, if $2ab\geq \sigma ^{2}$; otherwise it can occasionally touch the zero point,
* $\operatorname {E} [r_{t}\mid r_{0}]=r_{0}e^{-at}+b(1-e^{-at})$, so long term mean is $b$,
* $\operatorname {Var} [r_{t}\mid r_{0}]=r_{0}{\frac {\sigma ^{2}}{a}}(e^{-at}-e^{-2at})+{\frac {b\sigma ^{2}}{2a}}(1-e^{-at})^{2}.$

### Calibration

* Ordinary least squares
    The continuous SDE can be discretized as follows
       $r_{t+\Delta t}-r_{t}=a(b-r_{t})\,\Delta t+\sigma \,{\sqrt {r_{t}\Delta t}}\varepsilon _{t},$
    which is equivalent to
       ${\frac {r_{t+\Delta t}-r_{t}}{{\sqrt {r}}_{t}}}={\frac {ab\Delta t}{{\sqrt {r}}_{t}}}-a{\sqrt {r}}_{t}\Delta t+\sigma \,{\sqrt {\Delta t}}\varepsilon _{t},$
    provided $\varepsilon _{t}$ is n.i.i.d. (0,1). This equation can be used for a linear regression.
* Martingale estimation
* Maximum likelihood

### Simulation

Stochastic simulation of the CIR process can be achieved using two variants:
* Discretization
* Exact

## Bond pricing

Under the no-arbitrage assumption, a bond may be priced using this interest rate process. The bond price is exponential affine in the interest rate:
    $P(t,T)=A(t,T)e^{-B(t,T)r_{t}}\!$
where
    $A(t,T)=\left({\frac {2he^{(a+h)(T-t)/2}}{2h+(a+h)(e^{h(T-t)}-1)}}\right)^{2ab/\sigma ^{2}}$
    $B(t,T)={\frac {2(e^{h(T-t)}-1)}{2h+(a+h)(e^{h(T-t)}-1)}}$
    $h={\sqrt {a^{2}+2\sigma ^{2}}}$

## Extensions

The CIR model uses a special case of a basic affine jump diffusion, which still permits a closed-form expression for bond prices. Time varying functions replacing coefficients can be introduced in the model in order to make it consistent with a pre-assigned term structure of interest rates and possibly volatilities. The most general approach is in Maghsoodi (1996). A more tractable approach is in Brigo and Mercurio (2001b) where an external time-dependent shift is added to the model for consistency with an input term structure of rates.
A significant extension of the CIR model to the case of stochastic mean and stochastic volatility is given by Lin Chen (1996) and is known as Chen model. A more recent extension for handling cluster volatility, negative interest rates and different distributions is the so-called "CIR #" by Orlando, Mininni and Bufalo (2018, 2019, 2020, 2021, 2023) and a simpler extension focussing on negative interest rates was proposed by Di Francesco and Kamm (2021, 2022), which are referred to as the CIR- and CIR-- models.