HazardFunction
HazardFunction[dist,x]
gives the hazard function for the distribution dist evaluated at x.
HazardFunction[dist,{x1,x2,…}]
gives the multivariate hazard function for the distribution dist evaluated at {x1,x2,…}.
HazardFunction[dist]
gives the hazard function as a pure function.
Details
- HazardFunction is also known as a force of mortality.
- For continuous distributions, HazardFunction[dist,x] dx gives the probability that an observed value lies between x and x+dx, given that it is larger than x for infinitesimal dx.
- For continuous distributions, HazardFunction[dist,x] dx is equivalent to Probability[x≤ξ<x+dxξ≥x,ξdist] for infinitesimal dx. »
- For discrete distributions, HazardFunction[dist,x] is equivalent to Probability[ξxξ≥x,ξdist].
- For continuous multivariate distributions, HazardFunction[dist,{x1,…,xn}]dx1 ⋯ dxn is equivalent to Probability[x1≤ξ1<x1+dx1∧⋯∧xn≤ξn<xn+dxnξ1≥x1∧⋯∧ξn≥xn,{ξ1,…,ξn}dist].
- For discrete multivariate distributions, HazardFunction[dist,{x1,…,xn}] is equivalent to Probability[ξ1x1∧⋯ ∧ξnxnξ1≥x1∧⋯∧ξn≥xn,{ξ1,…,ξn}dist].
Examples
open allclose allBasic Examples (4)
Scope (20)
Parametric Distributions (6)
Nonparametric Distributions (3)
Derived Distributions (8)
Product of independent distributions:
Component mixture distribution:
Quadratic transformation of a discrete distribution:
Formula distributions defined by its PDF:
Defined by its survival function:
Hazard function for QuantityDistribution assumes the argument is a Quantity with compatible units:
Random Processes (3)
Find the hazard function for a SliceDistribution of a discrete-state random process:
A continuous-state random process:
Find the multiple time-slice hazard function for a discrete-state process:
A multi-slice for a continuous-state process:
Hazard function for the StationaryDistribution of a discrete-state random process:
Generalizations & Extensions (1)
HazardFunction threads element-wise over lists:
Applications (4)
Find the mortality rate for lifetime distributions including exponential distribution:
Given the reliability function of a component, compute its failure rate:
Define the corresponding probability distribution:
Compute the failure rate using the distribution:
Study the hazard function for a family of Weibull distributions:
With , used is better than new:
With , used is as good as new:
With , used is worse than new:
A casino offers you a game where you pay amount to participate and then choose a stake amount . A positive continuous random variable following a known distribution is then generated. If you collect the stake; otherwise you lose. Find the value that maximizes the profit:
Find the equation for the maximum of the expected gain:
Assuming WeibullDistribution, find the optimal stake size:
Properties & Relations (3)
Text
Wolfram Research (2010), HazardFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/HazardFunction.html.
CMS
Wolfram Language. 2010. "HazardFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HazardFunction.html.
APA
Wolfram Language. (2010). HazardFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HazardFunction.html