I am new to Mathematica, and I need help with integration of the following Reliability expression (from a well-known Reliability Model).
$$R(t)=e^{-Ne^{-bt_i}(1-e^{-bt})}, t \geq 0$$
I have simplified this by saying $m = b*t_i$.
Integrate[Exp[-N*Exp[-m]*(1 - Exp[-b*t])], {t, 0, ∞}, Assumptions -> t >= 0]
But in return, I get the same expression back.
I tried numerical integration using NIntegrate
and substituting values for N
, m
, b
, but the result is too high and unrealistic.
Any suggestions would be great?
Since I care about the result after integration, i substituted numbers for n, b, $t_i$. However,
NIntegrate[Exp[-16.136 (1 - Exp[-0.012*t])], {t, 0, Infinity}]
Gives a warning NIntegrate::slwcon: Numerical integration converging too slowly; suspect one of the following: singularity, value of the integration is 0, highly oscillatory integrand, or WorkingPrecision too small. Also the output result is too large (8.430340033003202*10^27942) which doesn't make sense.
So I did this instead,
NIntegrate[Exp[-16.136 (1 - Exp[-0.012*t])], {t, 0, 1000}]
and the result is 5.53443, which makes sense for a Exp. decreasing function. I repeated this in R, with the following code
integrand <- function(t) {exp(-16.136*(1 - exp(-0.012*t)))}
integrate(integrand, 0, Inf)
And get the result with no warnings / errors.
5.534328 with absolute error < 0.00055
Since this is a part of my data analysis exercise, I will do this in R along with my other code. Thanks :)
N
is a symbol with build in meaning. You could replace it with e.g.n
. You should also add additional information about all parameters asAssumptions
. $\endgroup$Assumptions -> t >= 0 && n < 0 && b < 0 && m < 0
will give you an analytical solution for that integral. $\endgroup$NIntegrate
? The latter is typically a much easier proposition than the former. $\endgroup$