Professional Documents
Culture Documents
Wang 1990
Wang 1990
To cite this article: Dong Qian Wang & J.S. Maritz (1990) Note on testing a three state markov chain for independence,
Journal of Statistical Computation and Simulation, 37:1-2, 61-68, DOI: 10.1080/00949659008811294
Taylor & Francis makes every effort to ensure the accuracy of all the information (the “Content”) contained
in the publications on our platform. However, Taylor & Francis, our agents, and our licensors make no
representations or warranties whatsoever as to the accuracy, completeness, or suitability for any purpose of
the Content. Any opinions and views expressed in this publication are the opinions and views of the authors,
and are not the views of or endorsed by Taylor & Francis. The accuracy of the Content should not be relied
upon and should be independently verified with primary sources of information. Taylor and Francis shall not be
liable for any losses, actions, claims, proceedings, demands, costs, expenses, damages, and other liabilities
whatsoever or howsoever caused arising directly or indirectly in connection with, in relation to or arising out of
the use of the Content.
This article may be used for research, teaching, and private study purposes. Any substantial or systematic
reproduction, redistribution, reselling, loan, sub-licensing, systematic supply, or distribution in any
form to anyone is expressly forbidden. Terms & Conditions of access and use can be found at http://
www.tandfonline.com/page/terms-and-conditions
J . Statist. Comput. Simul.. Vol. 37, pp. 61-68 C 1990 Gordon and Breach Science Publishers S.A.
Reprints available directly from the publtsher
Printed in the United Kingdom
Photocopying permitted by license only
A statistic is presented for testing a three state observed Markov chain for independence. The test
procedure is compared with the traditional x2 test. Examples are given in which the proposed test has
better power than the X 2 test.
KEY WORDS: Three state Markov chain, eigenvalues, power, x2 test, statistic.
Downloaded by [University of Glasgow] at 03:24 20 December 2014
1. INTRODUCTION
2. PRELIMINARIES
Consider a Markov chain i r k ,k = 1,2,. . .) with state space S = {1,2,3) and
transition probability matrix
62 D. Q. WANG AND J. S. MARITZ
asymptotic mean values and second moments of the observed transition prob-
ability matrix can be calculated. If we let
then from the asymptotic joint normality of the nij we deduce the joint asymptotic
normality of ~ e (P).
c
From formula (2.1) the following results are derived.
i) The asymptotic mean value of fiij is
and
In this note we restrict attention to a three state Markov chain. Let us suppose
that the transition probability of a three state Markov chain is
Then for an observed seqence (to,(,, . . ., t,), the transition frequencies nij may be
written as a contingency table. The maximum likelihood estimates of transition
probability pij are fiij=nij/ni.. It is well known that if both the non-unit
eigenvalues of P are zero, then P represents an independent trials process. Hence
for a three state Markov chain, we propose a test of independence based on the
non-unit eigenvalues of the observed transition matrix.
64 D. Q. WANG AND J. S. MARITZ
where
Downloaded by [University of Glasgow] at 03:24 20 December 2014
It is easily seen that the non-unit eigenvalue solutions, 2, and I,, of this equation
are
and
respectively, where
We know if the Markov chain is to be independent we have ILil =0, for i > 1, that
is, the non-unit eigenvalues L2 and 2, are both zero. Hence, according to the
formula (3.1) we can easily obtain condition A + B - 1= 0 if the Markov chain is
independent.
Firstly we find the asymptotic mean and variance of d +B- 1, where 2 and 8
are defined as above. Using the results in Section 2, we obtain after some
calculation the asymptotic results
A THREE STATE MARKOV CHAIN 65
and
var(A+B-1)
d ( A + B - 1)=0
and
z l = ( ( l + h l ) + ( I +h.Jhl/hz)-l,
where
b I-f-e
h3 = --- and h,=------.
1- c l -c
J.S.C.S. C
66 D. Q. WANG AND J. S. MARITZ
From Table 1 and matrix we derive the following observed values of the
statistics / W S (and x2:
According to both statistics the hypothesis is clearly rejected. This example with its
large number of transitions and rather obvious lack of independence is not
A THREE STATE MARKOV CHAIN
informative about the relative powers of the two tests. However, we shall use it in
the next section as the basis of a simulation study involving smaller sample sizes.
where 0 1 6 5 1, P,, is the transition matrix of a Markov chain, and matrix PIN,
has for each row the stationary distribution of the chain represented by P,,.
Matrix P(6) represents a Markov chain whose degree of dependence is determined
by the value of 6.
a
For our simulations we have taken P,,= b, where is the matrix in (4.1), and
Table 2 shows some results for the case 6 = 1, i.e. independence. They indicate
that the normal approximation of the distribution of WS, at level c(=0.10, is
accurate enough for practical purposes if the total number of transitions exceeds
200.
To compare the power of the two test methods, we take the parameter 6=0.225,
the new observed Markov chain closes to non-independent, and its transition
matrix is
D. Q. WANG AND J. S. MARITZ
Table 3 shows the results of test power for 6=0.225 under the level rx=O.lO in
100 trials.
These results indicate the new test statistic WS has greater power, and the test
method is better than X 2 test method and bootstrap test.
Downloaded by [University of Glasgow] at 03:24 20 December 2014
References
Ahmad, R. (1985). O n test of independence for the multi-way Markovian contingency tables. Pak. J.
Statist. 1 ( I ) , 39-58.
Bartlett, M . S. (1951), The frequency goodness of fit test for probability chains. Proc. Camb. Phil. Soc.
47, 86-95.
Parzen, E. (1962). Stochastic Processes. Holden-Day, San Francisco, p. 257.
Patel, H . I . and Ahmad, R. (1973). O n test of independence for r x c Markovian contingency tables.
Ann. Inst. Stat. Math. 25, 355-361.
Prais, S. J. (1955). Measuring social mobility. J. Royal Stat. Soc. A , 118, 5 6 6 6 .
Wang, D.Q . and Scott, D. J. (1988). Testing a Markov chain for independence. Communications in
Statistics-Theory and Methods. 18 ( 1 I), 40854103.
Whittle, P. (1955). Some distribution and moment formulae for the Markov chain. J . Royal Stat. Soc.
B, 17, 235-242.