BivLaplaceRL is an R package that implements statistical methods from three research papers on bivariate Laplace transforms and entropy measures in reliability theory:
The package provides four bivariate distributions commonly used in reliability modelling.
# Simulate 200 observations
set.seed(42)
dat <- rgumbel_biv(200, k1 = 1, k2 = 1.5, theta = 0.3)
head(dat)
#> X1 X2
#> [1,] 0.1983368 0.520919155
#> [2,] 0.6608953 0.076339189
#> [3,] 0.2834910 0.156729738
#> [4,] 0.0381919 0.294297662
#> [5,] 0.4731766 0.305411898
#> [6,] 1.4636271 0.000850079
# Survival function at a point
sgumbel_biv(1, 1, k1 = 1, k2 = 1.5, theta = 0.3)
#> [1] 0.06081006The key result from Jayalekshmi et al. (2022) is:
\[L^*_{X_{t_1|t_2}}(s_1) = \frac{1}{k_1 + s_1 + \theta t_2}, \quad L^*_{X_{t_2|t_1}}(s_2) = \frac{1}{k_2 + s_2 + \theta t_1}.\]
For a user-supplied survival function:
sim_blt_residual(n_obs = 200, n_sim = 50, s1 = 1, s2 = 1,
t1 = 0.3, t2 = 0.3, k1 = 1, k2 = 1, theta = 0.5)
#> component true_value mean_est bias variance mse
#> L1_star L1_star 0.4651163 0.4682817 0.003165417 0.0009658125 0.0009758324
#> L2_star L2_star 0.4651163 0.3951277 -0.069988580 0.0004963515 0.0053947528# FGM distribution
blt_reversed(s1 = 1, s2 = 1, t1 = 0.5, t2 = 0.5, theta = 0.3)
#> L1 L2
#> 0.791495 0.791495
# G form (used for characterisation)
blt_reversed(s1 = 1, s2 = 1, t1 = 0.5, t2 = 0.5, theta = 0.3, g_form = TRUE)
#> G1 G2
#> 0.3049546 0.3049546
# Reversed hazard gradient
biv_rhazard_gradient(x1 = 0.5, x2 = 0.5, theta = 0.3)
#> rh1 rh2
#> 1.860465 1.860465
# Reversed MRL
biv_rmrl(x1 = 0.5, x2 = 0.5, theta = 0.3)
#> m1 m2
#> 0.255814 0.255814sX <- function(x1, x2) sgumbel_biv(x1, x2, k1 = 1, k2 = 1, theta = 0.2)
sY <- function(x1, x2) sgumbel_biv(x1, x2, k1 = 2, k2 = 2, theta = 0.2)
res <- blt_order_residual(sX, sY, s1 = 1, s2 = 1,
t1_grid = c(0.5, 1), t2_grid = c(0.5, 1))
cat("X <=_BLt-rl Y:", res$order_holds, "\n")
#> X <=_BLt-rl Y: TRUEhead(prof)
#> alpha REGF
#> 1 0.1 9.9995227
#> 2 0.3 3.3333333
#> 3 0.5 2.0000000
#> 4 0.7 1.4285714
#> 5 0.9 1.1111111
#> 6 1.1 0.9090909# Log-linearity in t characterises exponential distribution
ch <- regf_characterise(f, Fb, alpha = 2, t_grid = seq(0, 2, 0.4))
ch
#> t REGF log_REGF slope
#> 1 0.0 0.5 0.000000e+00 4.123686e-16
#> 2 0.4 0.5 -1.221245e-15 4.123686e-16
#> 3 0.8 0.5 6.661338e-16 4.123686e-16
#> 4 1.2 0.5 1.110223e-15 4.123686e-16
#> 5 1.6 0.5 1.110223e-15 4.123686e-16
#> 6 2.0 0.5 -3.330669e-16 4.123686e-16Jayalekshmi S., Rajesh G., Nair N.U. (2022). Bivariate Laplace transform of residual lives and their properties. Communications in Statistics—Theory and Methods. https://doi.org/10.1080/03610926.2022.2085874
Jayalekshmi S., Rajesh G. Bivariate Laplace transform order and ordering of reversed residual lives. International Journal of Reliability, Quality and Safety Engineering.
Smitha S., Rajesh G., Jayalekshmi S. (2024). On residual entropy generating function. Journal of the Indian Statistical Association, 62(1), 81–93.