Computation of the (zero-state) Average Run Length (ARL) for modified Shewhart charts deployed to the original AR(1) data where the residuals follow a Student t distribution.
xtshewhart.ar1.arl(alpha, cS, df, delta=0, N1=50, N2=30, N3=2*N2, INFI=10, mode="tan")
It returns a single value resembling the zero-state ARL of a modified Shewhart chart.
lag 1 correlation of the data.
critical value (alias to alarm limit) of the Shewhart control chart.
degrees of freedom -- parameter of the t distribution.
potential shift in the data (in-control mean is zero.
number of quadrature nodes for solving the ARL integral equation, dimension of the resulting linear equation system is N1
.
second number of quadrature nodes for combining the probability density function of the first observation following the margin distribution and the solution of the ARL integral equation.
third number of quadrature nodes for solving the left eigenfunction integral equation to determine the margin density (see Andel/Hrach, 2000),
dimension of the resulting linear equation system is N3
.
substitute of Inf
-- the left eigenfunction integral equation is defined on the whole real axis; now it is reduced to (-INFI,INFI)
.
Controls the type of variables substitution that might improve the numerical performance. Currently, "identity"
, "sin"
, "sinh"
, and "tan"
(default) are provided.
Sven Knoth
Following the idea of Schmid (1995), 1-alpha
times the data turns out to be an
EWMA smoothing of the underlying AR(1) residuals. Hence, by combining the solution of
the EWMA ARL integral equation and the stationary distribution of the AR(1) data
(here Student t distribution is assumed) one gets easily the overall ARL.
J. Andel, K. Hrach (2000). On calculation of stationary density of autoregressive processes. Kybernetika, Institute of Information Theory and Automation AS CR 36(3), 311-319.
H. Kramer, W. Schmid (2000). The influence of parameter estimation on the ARL of Shewhart type charts for time series. Statistical Papers 41(2), 173-196.
W. Schmid (1995). On the run length of a Shewhart chart for correlated data. Statistical Papers 36(1), 111-130.
xtewma.arl
for zero-state ARL computation of EWMA control charts in case of Student t distributed data.