Skip to content

HazardFunction ​

The hazard function PDF(dist,x)/SurvivalFunction(dist,x)PDF(dist, x) / SurvivalFunction(dist, x).

HazardFunction(dist, x)generic over every distribution this package's PDF and CDF answer, old or new.
Typed signatures
TypePackageApplies
(distribution, list<real> | real | signed_infinity) -> realstatisticsalways

Domain: Statistics

Details
  • Exact wherever PDF and CDF are both exact for dist; unevaluated otherwise.
  • For RayleighDistribution(σ\sigma), this reduces to the well-known linear hazard x/σ2x/\sigma^2.

Examples

Basic #
live ↗
InHazardFunction(RayleighDistribution(3),2)\mathrm{HazardFunction}(\mathrm{RayleighDistribution}(3), 2)Out29\frac{2}{9}
About
Examples1

See also: PDF, CDF, SurvivalFunction