The Feller condition is a single inequality that tells you whether a CIR process can reach zero:
![]()
For positive parameters and a strictly positive initial state, satisfying it makes zero unattainable. If it is violated, zero is attainable and instantaneously reflecting; the continuous CIR process remains nonnegative. That matters because CIR is the standard model for two things that cannot go negative — short rates and variance — and a negative internal numerical state must be handled according to an explicitly defined scheme; it must not be mistaken for a state of the continuous CIR process.
The process
![]()
with
the mean-reversion speed,
the long-run level and
the volatility of the rate. The
is what makes it interesting: as
approaches zero the diffusion term shrinks, so the process gets quieter near the boundary while the drift
keeps pushing it up.
Feller’s condition is the statement of who wins that race. The upward push at zero is
; the noise trying to drag it through is governed by
. When
the drift dominates and zero is unreachable.
What it looks like in practice
We simulate 200,000 paths of the full-truncation Euler scheme over one year with 252 steps and
. The statistic is the fraction of numerical paths with at least one grid state
. It is not the continuous CIR zero-hitting probability.
| Feller | Paths with a non-positive numerical state | |||||
|---|---|---|---|---|---|---|
| 2.0 | 0.04 | 0.10 | 0.1600 | 0.0100 | satisfied | 0.00% |
| 2.0 | 0.04 | 0.30 | 0.1600 | 0.0900 | satisfied | 1.67% |
| 1.0 | 0.04 | 0.40 | 0.0800 | 0.1600 | violated | 45.94% |
| 0.5 | 0.04 | 0.55 | 0.0400 | 0.3025 | violated | 75.46% |
For these parameter sets, the numerical scheme visits non-positive grid states frequently when the boundary is attainable. The percentages depend on the time step and scheme; they cannot be reported as continuous-process hitting probabilities. Even when Feller holds, the full-truncation Euler state may become negative.
The middle row deserves attention. Feller is technically satisfied — 0.16 against 0.09 — and 1.67% of numerical paths still register a non-positive grid state. That is not the theory failing. It is the **discretisation** failing: an Euler step can jump below zero even when the continuous process never would, because the step is finite and the square root is evaluated at the start of it. Feller is a statement about the continuous process, not about your code.
Why this bites in real calibrations
Some Heston calibrations violate Feller. Constraining the parameters may restrict the volatility-surface fit, but the impact depends on the data and calibration objective. Whether or not the constraint is imposed, validate the simulation scheme across the fitted parameter range.
Either way, the value of the condition is diagnostic: compute
every time you calibrate, and you know immediately whether the boundary is going to be an issue before you see a single simulated path.
What to do when it is violated
Check Feller as a boundary diagnostic, then validate the selected scheme for the actual parameter range and payoff. Feller-satisfying parameters do not make every discretisation safe. Some Heston calibrations violate the condition; imposing it can restrict the fit, but the impact is data-dependent. The standard explicit Milstein correction is not a general positivity guarantee, while specialised implicit or boundary-aware schemes have different properties.
What works:
**Full truncation and exact transitions.** Full truncation uses
in both drift and diffusion, while allowing the internal Euler state to be negative. It controls how coefficients are evaluated; it does not make that state nonnegative. Exact noncentral-chi-square transition sampling gives the correct distribution at chosen grid times. It does not reveal whether the continuous path hit zero between observations, and it does not remove time-integration or payoff-monitoring error.
**Reflection.** Take
instead. Easy, but it introduces a bias by adding mass near the boundary rather than absorbing it.
**The Andersen QE scheme.** Matches the first two moments of the exact transition using a quadratic-exponential approximation. More work to implement and much better behaved when Feller is badly violated — the standard choice in production Heston engines.
Exact transition sampling is a useful benchmark for grid-time distributions; path-dependent functionals still require their own error checks.
Code
import numpy as np
def cir_nonpositive_grid_fraction(kap, th, xi, r0=0.04, T=1.0, n=252, M=200_000, seed=3):
rng = np.random.default_rng(seed); dt = T/n
r = np.full(M, r0); hit = np.zeros(M, bool)
for _ in range(n):
p = np.maximum(r, 0.) # full truncation
r = r + kap*(th - p)*dt + xi*np.sqrt(p*dt)*rng.standard_normal(M)
hit |= (r <= 0)
return hit.mean()
for kap, th, xi in [(2.0, 0.04, 0.10), (2.0, 0.04, 0.30),
(1.0, 0.04, 0.40), (0.5, 0.04, 0.55)]:
feller = 2*kap*th - xi**2
print(f"2*k*th - xi^2 = {feller:+.4f} "
f"{'OK ' if feller >= 0 else 'VIOLATED'} "
f"non-positive numerical state: {100*cir_nonpositive_grid_fraction(kap, th, xi):.2f}%")
Make that first line part of your calibration output. A single number that tells you whether the parameters you just fitted are going to fight your simulation scheme.
The takeaway
Feller’s condition is
. With positive parameters and initial state, it distinguishes an unattainable zero boundary from an attainable one. It does not guarantee the positivity or accuracy of a discretisation. Validate the scheme for the chosen parameters and payoff.
Compute it at calibration time, not after you have found negative rates in your output.
Related: Euler vs Milstein, including the limits of the standard explicit correction near a boundary, and fixing negative rates in a CIR simulation.
Learn how CIR fits into stochastic differential equations and how to test numerical schemes in Stochastic Calculus, with Python implementations and convergence checks.
Get the Quant Reference Card — four pages covering stochastic calculus, measure change, the models you’ll meet, discretisation, rates, credit and XVA. Free.