H_delta
parameter with learning for upward detection in Gamma CUSUM control chartsThis function calculates the optimal value of H_delta
using a dynamic learning scheme
based on the ARL_Clplus
function, iteratively adjusting H_delta
to achieve an expected ARL
with higher accuracy and adaptability.
Based on the methodology proposed by Madrid-Alvarez, García-Díaz, and Tercero-Gómez (2024),
this function allows adjusting H_delta
in different sample size scenarios, ensuring
that the control chart progressively adapts to changes in the Gamma distribution.
Implements Monte Carlo simulations to estimate H_delta
.
Relies on parameter estimates obtained in Phase I.
Iteratively adjusts H_delta
until the specified ARL is reached.
Incorporates a cautious learning mechanism to improve adjustment precision.
Displays the total execution time using tictoc
.
This function is useful for estimating H_delta
values when the sample size differs from the values reported in the reference article:
Madrid-Alvarez, H. M., García-Díaz, J. C., & Tercero-Gómez, V. G. (2024). A CUSUM control chart for the Gamma distribution with cautious parameter learning. Quality Engineering, 1-23.
The adjustment process is iterative and computationally intensive, as execution time depends on the number of iterations (N_init + N_final
)
and the sample size (n_I
).
It is recommended to define a proper convergence criterion to optimize execution time without compromising the accuracy of H_delta
estimation.
For selecting values of a
, b
, k_l
, delay
, tau
, and H_plus
, consulting the reference article is recommended, as it provides specific strategies
for their calibration in different scenarios.
getDeltaHL_up(
n_I,
alpha,
beta,
beta_ratio,
H_plus,
a,
b,
ARL_esp,
replicates,
N_init,
N_final,
known_alpha,
K_l,
delay,
tau
)
A numeric value corresponding to the optimal H_delta
estimated with learning for the upward CUSUM control chart.
Sample size in Phase I.
Shape parameter of the Gamma distribution.
Scale parameter of the Gamma distribution.
Ratio between beta
and its posterior estimate.
Initial limit of the CUSUM chart.
Tolerance level for the expected ARL. (0 <= a < 1).
Tolerance level for the expected ARL. (0 < b < 1)
Desired expected ARL value.
Number of replications in the Monte Carlo simulation.
Number of initial iterations for adjustment.
Number of final iterations for averaging H_delta
.
TRUE
if alpha
is fixed, FALSE
if it should be estimated.
Secondary control threshold for parameter updating.
Number of observations before updating beta0_est
.
Point in time where beta
changes.
# \donttest{
getDeltaHL_up(
n_I = 200, alpha = 1, beta = 1, beta_ratio = 2,
H_plus = 6.8313, a = 0.1, b = 0.05, ARL_esp = 370,
replicates = 100, N_init = 100, N_final = 500,
known_alpha = TRUE, K_l = 2, delay = 25, tau = 1
)
# }
Run the code above in your browser using DataLab