Censored Distribution#
This is not a distribution per se, but a modifier of univariate distributions.
A censored distribution arises when the observed data is limited to a certain range, and values outside this range are not recorded. For instance, in a study aiming to measure the impact of a drug on mortality rates it may be known that an individual’s age at death is at least 75 years (but may be more). Such a situation could occur if the individual withdrew from the study at age 75, or if the individual is currently alive at the age of 75. Censoring can also happen when a value falls outside the range of a measuring instrument. For example, if a bathroom scale only measures up to 140 kg, and a 160-kg person is weighed, the observer would only know that the individual’s weight is at least 140 kg.
Key properties and parameters#
Parameters:
dist: (PreliZ distribution) Univariate distribution to be censored.lower: (float, int, ornp.inf) Lower (left) censoring point,np.infindicates no lower censoring.upper: (float, int, ornp.inf) Upper (right) censoring point,np.infindicates no upper censoring.
Probability Density Function (PDF)#
Given a base distribution with cumulative distribution function (CDF) and probability density mass/function (PDF). The pdf of a Censored distribution is:
where lower and upper are the lower and upper bounds of the censored distribution, respectively.
Cumulative Distribution Function (CDF)#
The given expression can be written mathematically as:
where lower and upper are the lower and upper bounds of the censored distribution, respectively.
See also
Related Distributions:
Truncated - In a truncated distribution, values outside the range are not recorded, while in a censored distribution, they are set to the nearest bound.
References#
Wikipedia - Censored distribution