ee132b hw6 sol

3
EE132B-HW Set #6 UCLA 2014 Fall Prof. Izhak Rubin Problem 1 (a) We calculate the stationary distribution by using the following equations: π = πP ; iS π i =1. (1) This set of equations yields π = 52 93 21 93 20 93 . (b) Let A 0 = {X 0 = c},A 1 = {X 1= b},A 2 = {X 2 = c},A 3 = {X 3 = a},A 4 = {X 4 = c},A 5 = {X 5 = a},A 6 = {X 6 = c}, and A 7 = {X 7 = b}. Then we have: P ( 6 i=1 A i )= 7 k=1 P (A k | k-1 i=1 A i )= 7 k=1 P (A k | A k-1 ) = p(c, b)p(a, c)p(c, a)p(a, c)p(c, a)p(b, c)p(c, b)= 3 2500 . (2) (c) Due to the time-homogeneous property, we have P (X k+2 = c | X k = b)= P (2) (b, c)= kS P (b, k)p(k,c)= 1 6 . (3) Problem 2 (a) We calculate the stationary distribution by using the following equations: π = πP ; iS π i =1. (4) This set of equations yields π = 1 4 1 3 5 12 . (b) We have P (X 1 = b, X 3 = a, X 4 = c, X 6 = b | X 0 = a) = nS mS P (X 1 = b, X 2 = m, X 3 = a, X 4 = c, X 5 = n, X 6 = b | X 0 = a) = nS mS P (X 1 = b | X 0 = a)P (X 2 = m | X 1 = b)P (X 3 = a | X 2 = m) P (X 4 = c | X 3 = a)P (X 5 = n | X 4 = c)P (X 6 = b | X 5 = n) = 1 180 . (5) 1

Upload: dylan-ler

Post on 28-Sep-2015

222 views

Category:

Documents


3 download

DESCRIPTION

ee

TRANSCRIPT

  • EE132B-HW Set #6 UCLA 2014 Fall Prof. Izhak Rubin

    Problem 1(a)

    We calculate the stationary distribution by using the following equations:pi = piP ;

    iS

    pii = 1. (1)

    This set of equations yields pi =[

    5293

    2193

    2093

    ].

    (b)Let A0 = {X0 = c}, A1 = {X1 = b}, A2 = {X2 = c}, A3 = {X3 = a}, A4 = {X4 =

    c}, A5 = {X5 = a}, A6 = {X6 = c}, and A7 = {X7 = b}. Then we have:

    P (6i=1

    Ai) =7

    k=1P (Ak |

    k1i=1

    Ai) =7

    k=1P (Ak | Ak1)

    = p(c, b)p(a, c)p(c, a)p(a, c)p(c, a)p(b, c)p(c, b) = 32500 .(2)

    (c)Due to the time-homogeneous property, we have

    P (Xk+2 = c | Xk = b) = P (2)(b, c) =kS

    P (b, k)p(k, c) = 16 . (3)

    Problem 2(a)

    We calculate the stationary distribution by using the following equations:pi = piP ;

    iS

    pii = 1. (4)

    This set of equations yields pi =[

    14

    13

    512

    ].

    (b)We haveP (X1 = b,X3 = a,X4 = c,X6 = b | X0 = a)=nS

    mS

    P (X1 = b,X2 = m,X3 = a,X4 = c,X5 = n,X6 = b | X0 = a)

    =nS

    mS

    P (X1 = b | X0 = a)P (X2 = m | X1 = b)P (X3 = a | X2 = m)

    P (X4 = c | X3 = a)P (X5 = n | X4 = c)P (X6 = b | X5 = n)= 1180 .

    (5)

    1

  • EE132B-HW Set #6 UCLA 2014 Fall Prof. Izhak Rubin

    (c)

    P (X1 = b,X2 = b,X3 = a)=nS

    P (X1 = b,X2 = b,X3 = a,X0 = n)

    =nS

    P (X3 = a | X2 = b)P (X2 = b | X1 = b)P (X1 = b | X0 = n)P (X0 = n)

    = 51960 .

    (6)

    Problem 3(a)

    To prove that N is a Markov chain, we need to show that:

    P (Nn+1 = i | Nn, Nn1, . . . , N0) = P (Nn+1 = i | Nn), (7)for all i in S. Let Mn denote the number of successes in the nth trial, i.e., Mn = 1 ifthe nth trial is successful, and Mn = 0 otherwise. Then, for n = 0, 1, . . . , we have

    Nn+1 = Nn +Mn+1. (8)

    Since Mn+1 is independent of Nn, Nn+1, . . . , N0, we have

    P (Nn+1 = i | Nn, Nn+1, . . . , N0) = P (Nn +Mn+1 = i | Nn, Nn+1, . . . , N0)= P (Nn +Mn+1 = i | Nn)= P (Nn+1 = i | Nn)

    (9)

    Therefore, N is a Markov chain.

    (b)Since N0 = 0, the initial distribution for N is:

    pi0 ={1 , for i = 00 , otherwise

    (10)

    We obtain the transition probabilities as follows:

    p(i, j) = P (Nn+1 = j | Nn = i)= P (Nn +Mn+1 = j | Nn = i)= P (Mn+1 = j i)

    =

    p , for j = i+ 11 p , for j = i, i 00 , otherwise.

    (11)

    2

  • EE132B-HW Set #6 UCLA 2014 Fall Prof. Izhak Rubin

    Problem 4(a)

    We have

    P (Xn+1 | Xn, . . . , X0) = P(n+1k=1

    Yk = j | Xn, . . . , X0)

    = P

    Yn+1 +n

    k=1Yk

    =Xn

    = j | Xn, . . . , X0

    = P (Yn+1 +Xn = j | Xn)= P (Xn+1 | Xn) .

    (12)

    Therefore, X is a Markov chain.

    (b)We calculate the transition probabilities as follows:

    p(i, j) = P (Xn+1 = j | Xn = i)= P (Yn+1 +Xn = j | Xn = i)= P (Yn+1 = j i)

    ={pji , for j i 0, i 0,0 , otherwise.

    (13)

    3