20.07.2013 Views

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stabler - Lx 185/209 2003<br />

(65) To apply the idea in (63), we will always be multiplying a 1 × n matrix times a square n × n matrix, to<br />

get the new 1 × n probability distributi<strong>on</strong> for the events <strong>of</strong> the n state Markov process.<br />

(66) For example, suppose we have a c<strong>of</strong>fee machine that (up<strong>on</strong> inserting m<strong>on</strong>ey and pressing a butt<strong>on</strong>) will<br />

do <strong>on</strong>e <strong>of</strong> 3 things:<br />

(q1) produce a cup <strong>of</strong> c<strong>of</strong>fee,<br />

(q2) return the m<strong>on</strong>ey with no c<strong>of</strong>fee,<br />

(q3) keep the m<strong>on</strong>ey and do nothing.<br />

Furthermore, after an occurrence <strong>of</strong> (q2), following occurrences <strong>of</strong> (q2) or (q3) aremuchmorelikelythan<br />

they were before. We could capture something like this situati<strong>on</strong> with the following initial distributi<strong>on</strong><br />

for q1,q2 and q3 respectively,<br />

I = [0.7 0.2 0.1]<br />

and if the transiti<strong>on</strong> matrix is:<br />

⎡<br />

0.7<br />

⎢<br />

T= ⎣0.1<br />

0.2<br />

0.7<br />

⎤<br />

0.1<br />

⎥<br />

0.2⎦<br />

0 0 1<br />

a. What is the probability <strong>of</strong> state sequence q1q2q1?<br />

P(q1q2q1) = P(q1)P(q2|q1)p(q1|q2) = 0.7 · 0.2 · 0.1 = 0.014<br />

b. What is the probability <strong>of</strong> the states ΩX at a particular time t?<br />

At time 0 (maybe, right after servicing) the probabilities <strong>of</strong> the events in ΩX are given by I.<br />

At time 1, the probabilities <strong>of</strong> the events in ΩX are given by<br />

<br />

<br />

IT= 0.7 · 0.7 + 0.2 · 0.1 + 0.1 · 0<br />

<br />

0.7 · 0.2 + 0.2 · 0.7 + 0.1 · 0<br />

<br />

0.7 · 0.1 + 0.2 · 0.2 + 0.1 · 1<br />

= 0.49 + 0.02<br />

<br />

0.14 + 0.14<br />

<br />

0.07 + 0.04 + .1<br />

= 0.51 0.28 .21<br />

At time 2, the probabilities <strong>of</strong> the events in ΩX are given by IT 2 .<br />

At time t, the probabilities <strong>of</strong> the events in ΩX are given by IT t .<br />

138

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!