arXiv reader

Sequential Detection of Transient Signals with Exponential Family Distribution

Yanhong Wu

arXiv
2206.11471v1 · PDF · 23 June 2022
Categories
math.ST, stat.TH
Licence
CC0 1.0 The site shows the text.

Abstract

We first consider the sequential detection of transient signals by generalizing the moving average chart to exponential family and study the false detection probability (FDP) and power of detection (POD) in the steady state. Then windowed adjusted signed (or modified directed) likelihood ratio chart is studied by treating it as normal random variable. In the multi-parameter exponential family, the detection of the transient change of one of the canonical parameters or a function of canonical parameters is considered by using the generalized adjusted signed likelihood ratio chart. Comparisons with window restricted CUSUM and Shiryayev-Roberts (S-R) procedures show that the generalized signed likelihood ratio chart performs quite well. Several important examples including the mean or variance change under normal model and a real example are used for illustration.

Items 18

Theorem

Theorem 1

T3QT

As b, w \rightarrow \infty such that b/\sqrt{w} \rightarrow h>0 and L=O(w),

P_0^*(\tau_{MA} \leq L ) \approx \frac{Lb e^{-\theta b +wc(\theta/\sqrt{w})}}{\sqrt{2\pi} w (c''(\theta/\sqrt{w}))^{1/2}} e^{-\frac{\theta}{\sqrt{w}} \rho_+},

where \rho_+ =E_0S_{\tau_+}^2/(2E_0S_{\tau_+}) is the mean overshoot with

\tau_+ =\inf\{ n>0: S_n = \sum_{i=1}^n (X_i-X_i')>0\}

and X_i' are i.i.d. copies of X_i for i=1,2,... under P_0(.).

Proof of Theorem 1

We use the following change of measure technique. For 1\leq t \leq L, define a changed measure P_t(.) that under P_t(.), X_{t-w+1}, ...,X_t follow f_{\theta/\sqrt{w}}(x) and other X_i’s follow f_0(x). The log-likelihood ratio of X_1, ..., X_L under P_t(.) with respect to P_0^*(.) is

l_t = \theta Z_{t;w} -wc(\theta/\sqrt{w}).

Note that E_t(Z_{t;w}) = \sqrt{w}c'(\theta/\sqrt{w}). So the value of \theta will be selected such that the boundary b equals to the mean of E_t(Z_{t;w}), i.e. b= \sqrt{w} c'(\theta /\sqrt{w}). Due to the monotone property of c'(\theta), we can assume the solution exists and is unique. Denote \tilde{l}_t= \theta ( Z_{t;w} -b). The change of measure technique in Siegmund and Yakir (2000) shows that

\begin{aligned} P_0^*(\tau_{MA} \leq L ) &= P_0^*(\max_{1\leq t\leq L} Z_{t;w} \geq b ) \\ &= \sum_{t=1}^L E_t [\frac{1}{\sum_1^L \exp(l_s^w)};\max_{1\leq t\leq L} Z_{t;w} \geq b ] \\ &= e^{\tilde{l}_t -l_t} \sum_{t=1}^L E_t [\frac{M_t}{S_t} e^{-(\tilde{l}_t +\ln(M_t)}; \tilde{l}_t +\ln(M_t) \geq 0 ], \end{aligned}

where M_t =\max_{1\leq s\leq L} e^{l_s -l_t} and S_t =\sum_{1\leq s\leq L} e^{l_s -l_t}.

As w \rightarrow \infty, \tilde{l}_t is asymptotically normal with mean 0 and variance \theta^2 c''(\theta/\sqrt{w}) under P_t(.). By applying the localization technique in Siegmund, et al. (2010) along with the saddle-point approximation, we have

P_0^*(\tau_{MA} \leq L ) \approx L\frac{e^{-\theta b +wc(\theta/\sqrt{w})}}{\sqrt{2\pi} \theta (c''(\theta/\sqrt{w}))^{1/2}} \lim_{L\rightarrow \infty} E_t[\frac{M_t}{S_t}].

In the following, we study in detail the approximation for E_t[\frac{M_t}{S_t}] in the exponential family case. For s<t and s \geq t-w,

l_s-l_t =\frac{\theta}{\sqrt{w}} (\sum_{s-w+1}^{t-w} X_i -\sum_{s+1}^t X_i) =\frac{\theta}{\sqrt{w}} \sum_{s+1}^t (X_{i-w} -X_i) ,

which is a two-sided random walk with drift

E_t[l_s-l_t]= - \frac{\theta}{\sqrt{w}} (t-s) c'(\frac{\theta}{\sqrt{w}}) =-\frac{\theta b}{w} |t-s|,

and variance

Var_t(l_s-l_t)= |t-s| \frac{\theta^2}{w} (c''(0)+c''(\frac{\theta}{\sqrt{w}} )).

Same result holds for s>t, s\leq t+w. Thus we have the following approximation

E_t[\frac{M_t}{S_t}] \approx \frac{b \theta}{w} \upsilon(\frac{\theta}{\sqrt{w}} (c''(0)+c''(\theta/\sqrt{w}))^{1/2} ),

where the last factor equals to \lim_{d \rightarrow \infty} E\exp(-(\theta/\sqrt{w})(S_{\tau_d}-d)) with

\tau_d =\inf\{ t>0: S_t =\sum_{k=1}^t (X_i-X_i') >d\}

where X_i follows f_{\theta} (x) and X_i' follows f_0(x) and can be approximated as

\upsilon(\frac{\theta}{\sqrt{w}} (c''(0)+c''(\theta/\sqrt{w}))^{1/2} ) \approx e^{-\frac{\theta}{\sqrt{w}} \rho_+}.

Theorem 1 is proved by combining the above approximations,

Note that typically h is quite small, thus \theta/\sqrt{w} is also small. The above approximation can further be simplified as

P_0^*(\tau_{MA} \leq L ) \approx \frac{Lb}{w\sqrt{c''(0)}}\phi(\frac{b}{\sqrt{c''(0)}} ) e^{-b\rho_+/(\sqrt{w} c''(0))} = \frac{Lh}{\sqrt{wc''(0)}}\phi(\frac{h\sqrt{w}}{\sqrt{c''(0)}} ) e^{-h\rho_+/c''(0)},

where \phi(x) is the standard normal density function.

Remark

Remark

QT41

In the normal case, to detect a change of mean from 0 to a positive value, \rho_+ \approx 0.5826\sqrt{2} \approx 0.824 and

P_0^*(\tau_{MA} \leq L ) \approx \frac{Lb}{w} \phi (b ) e^{ - 0.5826\sqrt{2}b/\sqrt{w}} \approx \frac{Lh}{\sqrt{w}} \phi (h \sqrt{w} ) e^{ - 0.824 h },

as shown in Wu and Siegmund (2022).

Example

Example 1 (Rate change)

H5OM

Suppose the original observations Y_i follow Exp(\lambda_0) for i\leq \nu and Exp(\lambda ) for i > \nu and \lambda <\lambda_0. By making a transformation X_i = \lambda_0 Y_i -1 and defining f_0(x) =\exp(-(x+1)) for x \geq -1, we see that for \theta = 1-\lambda /\lambda_0,

c(\theta)= -\theta -\ln (1-\theta) =-(1-\lambda /\lambda_0) -\ln (\lambda/\lambda_0).

This gives c'(\theta )= \theta/(1-\theta) and c''(\theta)=1/(1-\theta)^2. From c'(\theta/\sqrt{w})=b/\sqrt{w}, we have

\theta =b/(1+b\sqrt{w}).

Equation (2.1) gives

P_0^*(\tau_{MA} \leq L )\approx \frac{Lb}{\sqrt{2\pi} w} (1+ \frac{b}{\sqrt{w}})^{w-1} e^{-\sqrt{w} (b+\rho_+/w)}.

In the exponential case, because of the memoryless property, \rho_+ =1.

Example

Example 2 (Variance change)

EMJ6

Suppose the original data Y_i follow N(0,\sigma_0^2) for i\leq \nu and N(0, \sigma^2) for i > \nu and \sigma^2 >\sigma_0^2. By defining X_i = (Y_i^2/\sigma_0^2 -1)/\sqrt{2} and f_0(x) as the density function under N(0, \sigma_0^2), then for \theta = (1-\sigma_0^2/\sigma^2)/\sqrt{2}, we have

c(\theta)= -\frac{\theta}{\sqrt{2}} -\frac{1}{2} \ln (1-\sqrt{2}\theta) =-\frac{1}{2} (1-\frac{\sigma_0^2}{\sigma^2}) -\frac{1}{2} \ln (\sigma_0^2/\sigma^2).

Note c'(\theta)= \theta /(1-\sqrt{2}\theta) and c''(\theta) =1/(1-\sqrt{2}\theta)^2. From c'(\theta/\sqrt{w})=b/\sqrt{w}, we get

\theta = b/(1+\sqrt{2}b/\sqrt{w}).

Equation (2.1) gives

P_0^*(\tau_{MA} \leq L )\approx \frac{Lb}{\sqrt{2\pi} w} (1+\sqrt{2} \frac{b}{\sqrt{w}})^{w/2-1} e^{-\sqrt{w} (b+\sqrt{2}\rho_+/w)/\sqrt{2}}.

For the variance change, \rho_+ \approx 1.167 by simulation.

Theorem

Theorem 2

4AIE

As w, b \rightarrow \infty such that b/\sqrt{w} \rightarrow h>0 and L=O(\sqrt{w}),

P_0^*(\tau_{LR} \leq L ) \approx \frac{L\theta c'(\theta)}{b} \phi(b) \upsilon (\theta \sqrt{c''(0)+c''(\theta)} ) \approx \frac{Lb}{w}\phi(b ) e^{-b\rho_+/\sqrt{w c''(0)}},

where \rho_+ is defined as in Theorem 1.

Proof of Theorem 2

We extend the techniques as in Section 2. Define a changed measure P_t(.) such that X_{t-w+1},..., X_t follow f_{\theta}(x) and others follow f_0(x) such that under P_t(.), the likelihood ratio can be approximated by

\frac{dP_t}{dP_0}(R_t^*) \approx \exp(b R_t^* -b^2/2 ) (1+O(w^{-3/2})).

The value of \theta will be decided by equating the mean E_t^* R_t^* =b, the boundary. Thus, the log-likelihood ratio is l_t =b R_t^* -b^2/2. Denote \tilde{l}_t = b(R_t^* -b) with mean 0 and variance b^2. By applying the localization technique, for L =O(w), we can immediately get the following approximation

\begin{aligned} P_0^*(\tau_{LR} \leq L) &= P_0^*(\max_{1\leq t\leq L} R_t^* \geq b ) \\ &= \sum_{t=1}^L E_t [\frac{1}{\sum_1^L \exp(l_s^w)};\max_{1\leq t\leq L} R_t^* \geq b ] \\ &= e^{\tilde{l}_t -l_t} \sum_{t=1}^L E_t [\frac{M_t}{S_t} e^{-(\tilde{l}_t +\ln(M_t)}; \tilde{l}_t +\ln(M_t) \geq 0 ] \\ &\approx & \frac{L}{b} \phi (b) \lim_{L\rightarrow \infty} E_t [\frac{M_t}{S_t}]. \end{aligned}

where M_t=\max_{0\leq s \leq L} \exp((b(R_s^* -R_t^*)) and S_t =\sum_{0\leq s\leq t}\exp((b(R_s^* -R_t^*)).

As w\rightarrow \infty, since E_t R_t^* \approx b, by assuming b/\sqrt{w} \rightarrow h, by using the stochastic expansion under P_t(.) below, \theta satisfies

\psi (\theta) =\theta c'(\theta ) -c(\theta) \approx b^2/2w .

When b^2/w is small, \theta \approx b/\sqrt{c''(0) w}. To study the limit of E_t [\frac{M_t}{S_t}], we use the following stochastic expansion under the changed measure P_t(.) with parameter \theta

\begin{aligned} R_t &\approx & \approx (2w (\hat{\theta}_t \bar{X}_{t;w} -c( \hat{\theta}_t ))^{1/2} \\ & =& \sqrt{2w} (\psi (\theta) +(\hat{\theta}_t -\theta) c'(\theta) +\hat{\theta}_t (\bar{X}_{t;w} -c'(\theta)) -(c(\hat{\theta}_t) -c(\theta)))^{1/2} \\ & =& \sqrt{2w} (\psi (\theta) +\theta(\bar{X}_{t;w} -c'(\theta))+ (\hat{\theta}_t -\theta)(c'(\hat{\theta}_t ) -c'(\theta)) -\frac{(\hat{\theta}_t -\theta))^2}{2} c''(\theta) +o_p(1/w ))^{1/2} \\ &= \sqrt{2w} (\psi (\theta) +\theta(\bar{X}_{t;w} -c'(\theta)) +\frac{(\hat{\theta}_t -\theta))^2}{2} c''(\theta) +o_p(1/w ))^{1/2} \\ &= \sqrt{2w \psi(\theta)} \left( 1+ \frac{\theta}{\psi (\theta)} (\bar{X}_{t;w} -c'(\theta)) +\frac{c''(\theta)}{2\psi (\theta)} (\hat{\theta}_t -\theta))^2 +o_p(1/w )\right)^{1/2} \\ &= \sqrt{2w \psi(\theta)} \left( 1+ \frac{\theta}{2\psi (\theta)} (\bar{X}_{t;w} -c'(\theta)) +\frac{c''(\theta)}{4\psi (\theta)} (\hat{\theta}_t -\theta))^2 -\frac{\theta^2}{8\psi^2(\theta)} (\bar{X}_{t;w} -c'(\theta))^2 +o_p(1/w) \right ) \\ &= \sqrt{2w \psi(\theta)} +\sqrt{\frac{w}{2\psi (\theta)}} \theta (\bar{X}_{t;w} -c'(\theta)) +o_p(1) \\ & =& b+ \frac{w}{b} \theta (\bar{X}_{t;w} -c'(\theta)) +o_p(1) . \end{aligned}

When \theta is small,

R_t \approx b+ \frac{\sqrt{w}}{\sqrt{c''(0))}} \bar{X}_{t;w} (1+o_p(1)).

For s= t \pm O(\sqrt{w}), since E_t \bar{X}_{s;w} = (1-\frac{|t-s|}{w})c'(\theta), we see the same expansion still holds for R_s. On the other hand, at the first order, E_tR_t \approx b =O(\sqrt{w}) and E_t U_t = \theta \sqrt{w c''(\theta)} (1+o(1)). Thus

E_t [\frac{1}{R_t} \ln \frac{U_t}{R_t} ] = \frac{1}{b} \ln \frac{ \theta \sqrt{w c''(\theta)}}{b} (1+o(1)).

Thus, just like the MA chart, as w\rightarrow \infty,

R_s^* -R_t^* \approx R_s -R_t \approx \frac{w}{b} \theta (\bar{X}_{s;w} -\bar{X}_{t;w}).

It behaves like a two-sided random walk with drift

E_t[l_s-l_t] \approx - \theta |t-s)| c'(\theta) \approx -\frac{b^2}{wc''(0)} |t-s|,

and variance

Var_t(l_s-l_t)\approx \theta^2 |t-s| (c''(0)+c''(\theta)) \approx 2|t-s| \frac{b^2}{wc''(0)}.

The theorem is proved by using the above approximations.

Remark

Remark

5TFL

The above adjusted signed likelihood ratio chart, in principle, can be applied to any parametric model (e.g. Brazzale, et al. (2006, pg 17) or Severini (2000, pg 242)). Denote l_{t;w} (\theta; \hat{\theta}_t, a) =\sum_{k=t-w+1}^t \ln f_{\theta}(X_k) as the log-likelihood where (\hat{\theta}_t, a) is a transform of the data and a_t is an asymptotic ancillary with \hat{\theta}_t the MLE from W_{t-w+1}, ..., X_t. The signed log-likelihood ratio can be written as

R_t =sgn(\hat{\theta}_t -\theta_0) [2(l_{t;w}(\hat{\theta}_t) - l_{t;w}(\theta_0)]^{1/2}.

Then the adjusted signed log-likelihood ratio R_{t;w}^* can be calculated with

U_t = \hat{j}^{-1/2} (l_{;\hat{\theta}_t} (\hat{\theta}_t) -l_{;\hat{\theta}_t} (\theta_0)),

where \hat{j} = -\frac{\partial^2}{\partial \theta^2} l_{t;w} (\theta; \hat{\theta}_t, a_t) |_{\theta=\hat{\theta}_t} and l_{;\hat{\theta}_t} (\theta) =\frac{\partial} {\partial \hat{\theta}_t} l_{t;w} (\theta; \hat{\theta}_t, a_t).

Example

Example 1 (Cont’d)

3B5K

For the exponential case,

R_t =\sqrt{2w} sgn(\bar{X}_{t;w}) (\bar{X}_{t;w} -\ln (1+\bar{X}_{t;w}))^{1/2},

and

U_t= \sqrt{w} \bar{X}_{t;w}.

Therefore,

R_t^*= R_t+\frac{1}{2R_t} \ln \frac{(\bar{X}_{t;w})^2}{2 (\bar{X}_{t;w} -\ln (1+\bar{X}_{t;w}))}.

On the other hand, for a reference rate \lambda_1 <\lambda_0, the CUSUM process becomes

\max_{1\leq k \leq w} l_k^{\delta} (t) = \max_{1\leq k \leq w} [(\lambda_0 -\lambda_1) \sum_{t-k+1}^t Y_i +k\ln (\lambda_1 \lambda_0 )],

and the S-R process becomes

R_{t;w} =\ln \sum_{1\leq k \leq w} \exp[(\lambda_0 -\lambda_1) \sum_{t-k+1}^t Y_i +k\ln (\lambda_1 \lambda_0 )].
Example

Example 2 (Cont’d)

XG8S

For the variance change case,

R_t = sgn(\bar{X}_{t;w}) \sqrt{w} ( \sqrt{2} \bar{X}_{t;w} -\ln (1+\sqrt{2} \bar{X}_{t;w}))^{1/2},

and U_t =\sqrt{w} \bar{X}_{t;w}. Thus

R_t^* = R_t+\frac{1}{2R_t} \ln \frac{(\bar{X}_{t;w})^2}{\sqrt{2} \bar{X}_{t;w} -\ln (1+\sqrt{2} \bar{X}_{t;w})}.

For a reference value \sigma_1^2 >\sigma_0^2, the CUSUM process with window width w is given by

\max_{1\leq k \leq w} l_k^{\delta} (t) = \max_{1\leq k \leq w} [(1/\sigma_0^2 -1/\sigma_1^2) \sum_{t-k+1}^t Y_i^2 +k\ln (\sigma_0^2/\sigma_1^2 )]/2,

and the S-R process is

R_{t;w} =\ln \sum_{1\leq k \leq w} exp([(1/\sigma_0^2 -1/\sigma_1^2) \sum_{t-k+1}^t Y_i^2 +k \ln (\sigma_0^2/\sigma_1^2 )]/2).
Remark

Remark

60X1

Equation (4.8) may have multiple solutions, we can take \theta^{(2)} to be any specific convenient values. Note that in multiparameter case, U_t is different from Wald’ statistic and Rao’s score statistic. Wald’s statistic is

W_t = \sqrt{w} (\hat{\theta}_1 -\theta_{01}) |\sigma_{11} -\Sigma_{12} \Sigma_{22}^{-1} \Sigma_{21}|^{1/2} ,

where all \Sigma’s are evaluated at \hat{\theta}. Rao’s statistic, however, is defined as

V_t = \sqrt{w} (\bar{t}_1 -c_{\theta_1}'(\hat{\theta}_0)) |\sigma_{11} -\Sigma_{12} \Sigma_{22}^{-1} \Sigma_{21}|^{-1/2},

where all \Sigma’s are evaluated at \hat{\theta}_0.

Example

Example 3

XRSN

We consider the detection of variance \sigma^2 increase from 1 when the mean \mu is treated unknown in normal random variable. By writing \theta_1 = -\frac{1}{2\sigma^2}, \theta_2 =\mu /\sigma^2, t_1(x) = x^2, and t_2(x) =x, the density function of N(\mu, \sigma^2) has an exponential form with

c(\theta_1, \theta_2) = -\frac{\theta_2^2}{4\theta_1}- \frac{1}{2} \ln(-2\theta_1) .

For observations X_{t-w+1},..., X_t, we denote by \bar{X}_{t;w} = \sum_{i=1}^w X_{t-i+1}/w and \sigma_{t;w}^2 =\sum_{i=1}^w (X_{t-i+1}- \bar{X}_{t;w})^2 /w.

Example

Example 4

PZHB

We consider Example 3 with \theta_1 = -\frac{1}{2\sigma^2}, \theta_2 =\mu /\sigma^2, t_1(x) = x^2, and t_2(x) =x, the density function of N(\mu, \sigma^2) has an exponential form with

c(\theta_1, \theta_2) = -\frac{\theta_2^2}{4\theta_1}- \frac{1}{2} \ln(-2\theta_1) .

Here we detect change of \mu from 0 to a positive number \delta with \beta =(\sigma^2, \mu). Again, l(\hat{\theta}) = (\hat{\theta}_1, \hat{\theta}_2) ( \bar{t}_1, \bar{t}_2)^T -c(\hat{\theta}_1, \hat{\theta}_2) = -w/2 -w\ln (\hat{\sigma}_{t;w}^2) /2. At \mu =0, \hat{\theta}_{01} = -1/(2\hat{\sigma}_0^2) for \hat{\sigma}_0^2 =\bar{t}_1 =\sum_{i=t-w+1}^t X_i^2 /w and

l(\hat{\theta}_0) = -w/2-w\ln(\hat{\sigma}_0^2) /2.

Thus,

R_t =sgn(\bar{X}_{t;w}) \sqrt{w} (\ln ( \hat{\sigma}_0^2/\hat{\sigma}_{t;w}^2 ))^{1/2}.

To calculate U_t, we first note that |\Sigma(\hat{\theta})| = 1/(4\hat{\theta_2}^3). This gives |\Sigma(\hat{\theta})|^{1/2} = \sqrt{2}\hat{\sigma}_{t;w}^3.

Example

Example 5

OBEX

We use IBM stock daily closing prices from May 2, 2021 to May 2, 2022 (downloaded from finance.yahoo.com) to demonstrate the applications. The simple geometric random walk model is used. By taking the differences of the logarithms, the first figure in Figure 1 shows the plot the data. To make the data stable, we first trimmed the outliers using the \pm 3 \sigma-rule. The auto-correlation functions of the data and squared data do not show significant correlations.

Theorem

Theorem 3

1X0R

As b, w \rightarrow \infty such that b/\sqrt{w} \rightarrow h>0,

P_0^*(\tau_W \leq L) \approx L \frac{(b^2/p)^{p/2} e^{p/2}}{2\sqrt{p\pi}} e^{-b^2/2} (\theta -\theta_0)(c'(\theta)-c'(\theta_0)) \upsilon(\theta^* ([(\theta-\theta_0) (c''(\theta) + c''(\theta_0))(\theta -\theta_0)^T]^{1/2} ).
Proof of Theorem 3

The evaluation of FDP will be carried by directly assuming W_t^* follows chi-square distribution with p degrees of freedom. Define a changed measure P_t^*(.) on X_{t-w+1},..., X_t such that under P_t^*(.) the log-likelihood ratio of X_1,..., X_t under P_t^*(.) with respect to P_0^*(.) is equal to

l_t =\theta^* W_t^* +\frac{p}{2} \ln (1-2\theta^*).

The value of \theta^* is taken such that

E_t^*[W_t^*] \approx \frac{d}{d\theta^*} [-\frac{p}{2} \ln (1-2\theta^*)] = \frac{p}{1-2\theta^*} = b^2.

This gives \theta^*= \frac{1}{2} (1-\frac{p}{b^2}). Now let \tilde{l}_t =\theta^* (W_t^* -b^2). So \tilde{l}_t has approximately mean zero and variance 2p \theta^{*2}/(1-2\theta^*)^2.

By assuming w\rightarrow \infty and b\rightarrow \infty, we can have the following approximation for FDP

\begin{aligned} P_0^*(\tau_W \leq L) &= P_0^*(\max_{1\leq t\leq L} W_t^* >b^2) \\ &\approx& L e^{-p(\theta^*/(1-2\theta^*) +\ln (1-2\theta^*)/2)} \frac{1}{\sqrt{2\pi}} \frac{1-2\theta^*}{\sqrt{2p}\theta^* } \lim_{L\rightarrow \infty}E_t^* [\frac{M_t}{S_t}] \\ &\approx & L \frac{(b^2/p)^{p/2} e^{p/2}}{\sqrt{p\pi}(1-p/b^2)} e^{-b^2/2} \lim_{L\rightarrow \infty}E_t^* [\frac{M_t}{S_t}] \\ &\approx & L \frac{(b^2/2)^{p/2-1} e^{-b^2/2}}{\Gamma(p/2)(1-p/b^2)} \lim_{L \rightarrow \infty}E_t^* [\frac{M_t}{S_t}] , \end{aligned}

where the last equation is obtained by using Sterling’s formula when p is relatively large and M_t =\max_{1\leq s\leq L} (l_s-l_t) and S_t =\sum_{1\leq s \leq L} (l_s-l_t). Similar approximation is also obtained in Wu and Siegmund (2022) for the multi-dimensional data stream case.

In the following, we just need to show that l_s-l_t is approximately a local random walk. For simplicity, we only verify it in the exponential family case by assuming that X_{t-w+1}, ...., X_t follow f_{\theta}(x) =\exp(\theta t(x) -c(\theta)). By ignoring the lower order terms, we have

\begin{aligned} W_t^* \approx W_t &= 2w [(\hat{\theta}_t -\theta_0 ) \bar{t} -c(\hat{\theta}_t)+c(\theta_0)] \\ &\approx &2w[(\theta -\theta_0) \bar{t} -c(\theta)+c(\theta_0) +\frac{1}{2} (\hat{\theta}_t -\theta)c''(\theta) (\hat{\theta}_t -\theta)^T ]. \end{aligned}

Similar expansion is true for s=t \pm O(\sqrt{w}) under P_t^*(.). Thus, at the first order, \theta should be chosen such that

2w((\theta-\theta_0)c'(\theta)-c(\theta)+c(\theta_0) = b^2.

Now it is easy to see that l_s-l_t = \theta^*(W_s^*-W_t^*) behaves like a two sided random walk with drift -\theta^*|t-s| (\theta -\theta_0)(c'(\theta)-c'(\theta_0)) and variance \theta^{*2} |t-s| (\theta-\theta_0) ( c''(\theta) +c''(\theta_0))(\theta -\theta_0)^T. Therefore

\lim_{L \rightarrow \infty}E_t^* [\frac{M_t}{S_t}] \approx \theta^* (\theta -\theta_0)(c'(\theta)-c'(\theta_0)) \upsilon(\theta^* ([(\theta-\theta_0) (c''(\theta) + c''(\theta_0))(\theta -\theta_0)^T]^{1/2} ).

The result is obtained by combining the above results. When b^2/w is small, \theta -\theta_0 is also small. The approximation can be simplified to

\begin{aligned} P_0^*(\tau_W \leq L) &\approx& \frac{Lb^2 (b^2/p)^{p/2}e^{p/2}}{4w \sqrt{p\pi}} e^{-b^2/2} \upsilon ((1-p/b^2)(\theta-\theta_0) (c''(\theta) +c''(\theta_0))(\theta -\theta_0)^T]^{1/2}/\sqrt{2} ) \\ &\approx& \frac{Lb^2 (b^2/p)^{p/2}e^{p/2}}{4w \sqrt{p\pi}} e^{-b^2/2} e^{-\rho_+ b(1-p/b^2)/\sqrt{2w}}, \end{aligned}

where \rho_+ is calculated as \rho_+ =E_{\theta_0}S_{\tau_+}^2/(2E_{\theta_0}S_{\tau_+}) from the ladder time defined by

\tau_+ =\inf\{ t>0: S_t= \gamma (\sum_{i=1}^t (t(X_i)-t(X_i'))>0 \},

where X_i follows f_{\theta_0}(.) and X_i' is independent copy of X_i and \gamma =\lim_{\theta \rightarrow \theta_0} (\theta-\theta_0)/((\theta -\theta_0)c''(\theta_0)(\theta -\theta_0)^T)^{1/2} is the direction.

Example

Example 6

OTD4

We consider the detection of change of both mean \mu and variance \sigma^2 from 0 and 1 respectively. The likelihood ratio statistics for H_0:\mu=0 , \sigma^2=1 vs H_a: \mu \neq 0 or \sigma^2 \neq 1 is

W_t = 2(l(\hat{\theta})-l(\theta_0)) = w (\bar{X}_{t;w}^2 +\hat{\sigma}^2 -1 -\ln \hat{\sigma}^2 ),

where \hat{\sigma}^2 = \sum_{t-w+1}^t (X_i -\bar{X}_{t;w})^2 /w. At the first order, W_t is asymptotically chi-square with 2 degrees of freedom. It is easy to calculate

E_0[W] =2 (1+ \frac{3}{4w} +o(1/w)).

The Bartlett’s adjustment gives

W_t^* = W_t/(1+3/(4w)) ,

with error at the order of O(w^{-2}). An alarm is made at the stopping time

\tau_W =\inf\{ t>0: W_t^* >b^2 \}

Table 5 gives simulation results for \mu=0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0 and \sigma^2 =1, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75, 3.0. To match with Tables 3 and 4, we take FDP=0.08 covering four one-sided detection charts. The control limit is found to be b^2 \approx 9.3. As a numerical comparison, the approximation without the overshoot correct in (5.13) gives FDP = 0.112; while by multiplying the overshoot correct with normal approximation gives FDP=0.0821. The simulation is replicated 50,000 times.

Example

Example 5 (Cont’d)

HXWE

For the IBM stock prices considered in Example 5, Figure 2 gives the plot of the adjusted likelihood ratio statistic with window width 20. We can see in addition to the three changed segments detected from the four one-sided charts, another change is detected around day 100 that is caused by combination of mean increase and variance decrease.

Source and licence

The text on this page is from arXiv:2206.11471v1 by Yanhong Wu, under the licence CC0 1.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.

The record of each item is in analysis/objects/2206/2206.11471.jsonl.