I would like to plot a hazard function when the CDF and PDF are not in the closed form. The PDF and CDF are given below
pdf[μ_, σ_, λ_, α_, β_] := ProbabilityDistribution[
(1/(E^(y^2/2)*(σ*Sqrt[2*Pi]*(α + 2))))*(2 + (α*Integrate[
1/(E^(u^2/2)*Sqrt[2*Pi])/E^(u^2/2)
, {u, -Infinity, λ*y + β*Sqrt[1 + λ^2]}])/Integrate[
E^(-(v^2/2))
, {v, -Infinity, β}
]
)
, {y, -Infinity, Infinity}
]
CDF has the form of
cdf[μ_, σ_, λ_, α_, β_] := (1/(E^(y^2/2)*(Sqrt[2*Pi]*(α + 2))))*(2 + α/2/((1/Sqrt[2*Pi])*Integrate[
E^(-(v^2/2))
, {v, -Infinity, β}
])) - ((α/(α + 2))*Integrate[
(1/(E^(u^2/2)*Sqrt[2*Pi]))*(1/(E^(v^2/2)*Sqrt[2*Pi]))
, {u, x, Infinity}
, {v, 0, λ*y + β*Sqrt[1 + λ^2]}])/ ((1/Sqrt[2*Pi])*Integrate[E^(-(v^2/2))
, {v, -Infinity, β}
]
)
Integrate[E^(-(v^2/2)), {v, -Infinity, β}]
can be replaced withSqrt[Pi/2] (1 + Erf[β/Sqrt[2]])
? $\endgroup$