Documente Academic
Documente Profesional
Documente Cultură
states
i to j i, j 1, 2,..., m
n
j 1
ij
1, 2,..., m
until
nij
be the number of
. Let
ni
1
2
3
M
m
1
n11
n21
n31
M
nm1
3
n13
2
n12
n22
n32
M
nm 2
n23
n33
M
nm 3
Total
Let the stationary transition matrix of the Markov chain is
L
L
L
L
L
m
n1m
n2m
n3m
M
nmm
Total
n1
n2
n3
M
nm
n
P , given by
P . .
.
. .
.
pm1 pm2 . . . pmm
(2)
Pij .
p
j 1
ij
can be
ni1 !
ni1 !ni 2 !...nim !
where
ni
ni ,
nij ni
and
j 1
j 1
ij
..... (3)
n1 , n2 ,..., nm
m
n !
i 1
..... (4)
f ( p ) A
i 1
ni1 !
ni1 !ni 2 !...nim !
Pij
m m
L( p) ln B nij ln Pij
.....
..... (5)
(6)
i 1 j 1
p
j 1
ij
pij s
m m
i 1 j 1
i 1
we can write:
...... (7)
ni1
nim
0
Pi1 1 Pi1 Pi 2 ... Pim 1
ni 2
nim
0
Pi 2 1 Pi1 Pi 2 ... Pim 1
M
nim 1
nim
0
Pim 1 1 Pi1 Pi 2 ... Pim 1
Combining these equations we may write:
Markov Chain Estimation ~ 2 of 9
ni1 ni 2
n
nim
... im 1
Pi1 Pi 2
Pim 1 1 Pi1 Pi 2 ... Pim 1
This leads us to write
ni1
Pi1 Pi1
ni1
ni 2
Pi1 Pi 2
ni1
.....
(8)
nim
n
Pi1 i1
ni
In a similar manner, we can derive estimates of other elements. Thus we get:
Pij
nij
nj
i, j 1, 2,3,..., m
Hypothesis Testing
There are several hypothesis testing problems related to Markov chains. The major ones one of the following:
i.
ii.
iii.
iv.
H 0 : P P0
For large
ni ( Pij Pij 0 ) 2
j 1
Pij 0
~ 2m 1
has
and variance
ni 2 p ij pij
i 1, 2,..., m ....(1)
2
distributed as with m 1 degrees of freedom.
In obtaining
1 ,
pij0
i th
row, only
0
ni ( Pij Pij ) 2
Pij
i 1 j 1
is
) is the maximized value of the likelihood function. From statistical theory, it is known that when
where f ( p
H0
is
has a
2 with m 1
i, j
for which
p0
pij0 0 .
f ( P0 )
f ( P )
2 ln ~ 2
true.
H 0 : P P 0 can be obtained as
with
m m 1
nij
i 1 j 1
ni Pij0
2 ln 2 L( P ) L( P 0 ) 2 nij ln
pijt
Pijt P X (t 1) j | X (t ) i
Let
nijt
transition counts
nijt ; t 1, 2,..., T
(1)
during the
t th
2
ni12
3
ni13
L
L
m
1
nim
ni21
ni22
ni23
2
nim
3
M
T
ni31
M
niT1
ni32
M
niT2
ni33
M
niT3
3
nim
M
T
nim
nijt
ni
t 1
where ni
t 1
i , the
can be represented as
1
ni11
i j
.....
X t , such that,
pijt
can be obtained:
m
nijt
j 1
is given by
f ( Pt )
f ( P)
Here,
2 ln 2 L( P ) L( P)
t
2 n ln
t 1 i 1 j 1
t
ij
nijt
nijt 1 Pij
Markov Chain Estimation ~ 4 of 9
Under
H 0 , 2 ln ~ 2
with
T 1 m m 1
degrees of freedom.
pijk P X n k | X n 1 j , X n 2 i
And
nijk
pijk
nijt nijk
k
. The estimates of
pijk
is obtained as
nijk
nijt
Now consider the null hypothesis that the Markov chain is a first order Markov chain against the alternative that it is
of order to can be given as
test static
ijk P
jk )
nijt ( P
jk
P
i , j,k
which has a 2 distribution with
m m 1
degrees of freedom. The likelihood ratio test static can be written as,
i , j ,k
r 1
2 ln 2 nijk ln
i , j ,k
with
m r 1 m 1
m m 1
nijk ni
nijt nij
nijk ni
~ 2
t
nij nij
degrees of freedom.
P 0 . The appropriate P 0
should
Let
P0
( 1 , 2 ,..., m ) .
Let
nij nij
i 1
L( ) ln B nij ln j
j 1
Hence the log likelihood function leads to the maximum likelihood estimate
n. j
n
Markov Chain Estimation ~ 5 of 9
2
The test statistic can be written as
nn
nij i . j
m m
n
ni n. j
i 1 j 1
n
nij
2 ln 2 nij ln
ni n. j
i 1 j 1
2
has a distribution with
m 1
degrees of freedom.
Problem
A telephone receptionist at a department store can process only one call at a time. The two states the receptionist
can be in are idle and busy. It is conjectured that a two state Markov chain model would be reasonable for this
individuals walk habits with observations being taken once every 30 seconds. The following data were obtained by
observing the receptionists state of work for a period of 25 minutes (0 = idle; 1= busy)
110111010111001101011110111110100111011010101111010
a)
b)
Is it fair to assume that the observed process is a realization of a Markov chain with the transition probability
matrix
0.2 0.8
0.5 0.5
Solution
a)
From the given information, we have the following transition probability matrix
0
0 3
1 15
1
14 17
18
33
0
0
1
b)
17
15
33
0 0.18 0.82
18
33
1 0.45 0.55
14
17
0.2 0.8
H0 : P P
0.5 0.5
0
ni Pij Pij 0
Pij
j 1
So that 2
Here
has
0.18 0.82
Here, Pij
0.45 0.55
0.3725
0.2
0.8
0.5
0.5
2
tab
3.841
2
2
Since cal
0.3725 tab
3.841, we accept the null hypothesis
So, we may conclude that the observed process is a realization of a Markov chain with the transition probability
matrix
0.2 0.8
0.5 0.5
Estimating Parameters of an M|M|1 Queue
Let us consider an M|M|1 queue with an arrival rate
, we
2 S n
is
Sn
n
.
Sn
2n
degrees of freedom, a
100 1 %
confidence interval
is given by
22n ,1 22n ,
2
2
,
2Sn
2 Sn
X 1 , X 2 ,..., X m
Ym i
i 1
is given by,
m
M
Ym
Since
2 Ym
interval for
2m
100 1 %
confidence
is
22n ,1 22n ,
2
2
,
2Ym
2Ym
is given by
n
Ym
S
n
R
m
Sn
M m
Ym
n
2 Ym
R Ym m / S n n
2m
2 S n
2n
Now, since
Ym
and
Sn
R
~ F2 m ,2 n
To obtain a 100 1 %
and d so that
P( F c) 2
and
R
d)
1 P (c F d ) P( c
Select
2 Ym , 2 S n
and
P( F d ) 1 2
Then we get,
c F2 m , 2 n ;1 and
2
d F2 m , 2 n ;
F2 m , 2 n ;
and
is given by ( L,
v), where
F2 m , 2 n ;1
H of . Thus H ( L ), H ( u )
is the
Problem
Assume that a communication channel can be modeled as an M|M|1 queue. Suppose we observe the time until 30
message arrivals to be 59.46 minutes and these 30 messages keep the channel busy for a total of 29 minutes.
Find the estimates of average arrival rate, average service rate and the average channel utilization.
Solution
Here,
m n 30 , S n 59.46
minutes and
ym 29
n
30
0.505
Sn 59.46
message per minute, the average service rate is
m
30
1.03
Ym 29
0.488
and
we use a 2 with
2m, 2n 60
degrees of freedom. We
2
60,0.975
40.48
and
is
40.48
83.3
(0.34,0.7)
2 59.46 2 59.46
and for
is
40.48 83.3
,
(0.698,1.436)
2 29 2 29
To obtain a confidence interval for
, we use F
distribution with
60, 60
F60, 60,0.025
E(N )
and u
0.292
F60, 60,0.975
0.815
0.488
0.953
1 0.488
E N
is given by
0.292
0.815
,
(0.412, 0.405)
1 0.292 1 0.815