Continuous distribution · also called Rician
Rice distribution
The length of a two-dimensional vector made of a fixed part of length plus independent normal noise of standard deviation in each direction: the amplitude of a radio signal with a direct line of sight plus scattered paths, the magnitude in an MRI image, the distance a shot lands from the centre when the sights are off by . With no fixed part () it is the Rayleigh distribution.
Rice probability calculator
P(X ≤ 1.8) = 0.488695
At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.
CDF
mean 1.875 · variance 0.7346 · sd 0.8571
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode |
is the modified Bessel function of the first kind, the Marcum function, and . The site computes the CDF as a Poisson mixture: is noncentral chi-squared with 2 degrees of freedom and noncentrality . SciPy's rice takes b and scale .
Worked example
A received signal has a direct component of amplitude 2 and scattered noise with in each of the in-phase and quadrature channels. The link fails when the received amplitude drops below 1. How often does it fail?
The amplitude is Rice(, ), so the outage probability is , about 8% of the time. answer checked by code
How it relates to others
- Special case→ Rayleigh: Rice() is Rayleigh(). checked by code
- Transformation← Normal: If is Normal() and an independent Normal(), is Rice(). checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.rice(b=1.5, scale=1)
X.pdf(1.5) # f(1.5) = 0.4311
X.cdf(1.5) # P(X ≤ 1.5) = 0.3563
X.mean(), X.var() # 1.875, 0.7346
X.ppf(0.95) # 95th percentile
X.rvs(size=10, random_state=0)
rng = np.random.default_rng(0)
np.hypot(rng.normal(loc=1.5, scale=1, size=10), rng.normal(loc=0, scale=1, size=10))NumPy has no Rice sampler; this builds it from its definition.
Choosing between this and its neighbours? Which distribution for measurements and errors?