Statistics
HazardRate
compute the hazard rate
Calling Sequence
Parameters
Description
Computation
Options
Examples
References
HazardRate(X, t, options)
FailureRate(X, t, options)
X
-
algebraic; random variable or distribution
t
algebraic; point
options
(optional) equation of the form numeric=value; specifies options for computing the hazard rate of a random variable
The HazardRate rate computes the hazard (failure) rate of the specified random variable at the specified point.
The first parameter can be a distribution (see Statistics[Distribution]), a random variable, or an algebraic expression involving random variables (see Statistics[RandomVariable]).
By default, all computations involving random variables are performed symbolically (see option numeric below).
For more information about computation in the Statistics package, see the Statistics[Computation] help page.
The options argument can contain one or more of the options shown below. More information for some options is available in the Statistics[RandomVariables] help page.
numeric=truefalse -- By default, the hazard rate is computed using exact arithmetic. To compute the hazard rate numerically, specify the numeric or numeric = true option.
with⁡Statistics:
Compute the hazard rate of the beta distribution with parameters p and q.
HazardRate⁡Β⁡p,q,t
0t<0tp−1⁢1−tq−1Β⁡p,qt<10otherwise1−0t<0tp⁢hypergeom⁡p,1−q,1+p,tΒ⁡p,q⁢pt<11otherwise
Use numeric parameters.
HazardRate⁡Β⁡3,5,12
10564⁢1−35⁢hypergeom⁡−4,3,4,128
HazardRate⁡Β⁡3,5,12,numeric
7.241379317
Define new distribution.
T≔Distribution⁡`=`⁡PDF,t↦1π⋅t2+1:
X≔RandomVariable⁡T:
CDF⁡X,t
π+2⁢arctan⁡t2⁢π
FailureRate⁡X,t
1π⁢t2+1⁢1−π+2⁢arctan⁡t2⁢π
Another distribution
U≔Distribution⁡`=`⁡CDF,t↦F⁡t,`=`⁡PDF,t↦f⁡t:
Y≔RandomVariable⁡U:
CDF⁡Y,t
F⁡t
FailureRate⁡Y,t
f⁡t1−F⁡t
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
See Also
Statistics[Computation]
Statistics[Distributions]
Statistics[RandomVariables]
Download Help Document