-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlec28.typ
More file actions
268 lines (177 loc) · 4.77 KB
/
Copy pathlec28.typ
File metadata and controls
268 lines (177 loc) · 4.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
== Lecture 28
Recall from last class, we discussed how to construct continuous time MC's.
$
p_t(i,j) = P(X_(s+t) = j | X_s = i)
$
$
q_(i j) = lim_(t -> 0) (p_t(i, j)) / t quad i != j
$
$
= "jump rate" i -> j
$
$
lambda_i = sum_(j != i) q_(i j) = "jump rate" "out of" i
$
#pagebreak()
It turns out (we will not prove this in Stat 150) the way to do this is as follows:
If currently in state $i$, hold MC in $i$ for an $"Exp"(lambda_i)$ amount of time, and then jump to some $j$ w.p. $r_(i j) = q_(i j) / lambda_i$.
--- Unless $lambda_i = 0$, then MC stays in $i$ forever (absorbing state).
#pagebreak()
To see why this is the correct construction, it may be helpful to consider the following simple example:
#pagebreak()
Birds visit a feeder according to independent Poisson processes:
$ (N_t^R) $ Robins rate $lambda_R$
$ (N_t^B) $ Blackbirds rate $lambda_B$
$
(X_t) = (N_t^R, N_t^B)
$
1st coord at rate $lambda_R$
2nd coord at rate $lambda_B$
#pagebreak()
Times between birds are iid $"Exp"(lambda_R + lambda_B)$. And
$
P("Robin") = lambda_R / (lambda_R + lambda_B)
$
$
& P("Blackbird") = lambda_B / (lambda_R + lambda_B)
$
So hold $(X_t)$ for $"Exp"(lambda_R + lambda_B)$ time & then increase 1st or 2nd co-ord w.p. $lambda_R / (lambda_R + lambda_B)$ and $lambda_B / (lambda_R + lambda_B)$.
#pagebreak()
[D] §4.2 --- Transition Probabilities
For discrete MC's we could find n-step $p_(i j)^n$ by multiplying $P$ $n$ times: $p_(i j)^n = (P^n)_(i j)$.
This was proved by CK-eqns.
For continuous MC, how to find $p_t(i, j)$ probabilities from $q_(i j)$?
#pagebreak()
For continuous MC, how to find $p_t(i, j)$ probabilities from $q_(i j)$?
Recall jump rates
$
q_(i j) = lim_(h -> 0) (p_h(i, j)) / h
$
play the role of $p_(i j)$ in the discrete case.
Once again, the answer is to use the CK-eqns, *but* more complicated:
#pagebreak()
By CK-eqns:
$
p_(t+h)(i, j) - p_t(i, j)
$
$
= [ sum_k p_h(i, k) p_t(k, j) ] - p_t(i, j)
$
$
= [ sum_(k != i) p_h(i, k) p_t(k, j) ] + (p_h(i, i) - 1) p_t(i, j)
$
Now divide by $h$, then take $h -> 0$:
#pagebreak()
$ (p_(t+h)(i, j) - p_t(i, j)) / h -> p'_t(i, j) $ as $h -> 0$
$
= [ sum_(k != i) p_h(i, k)/h p_t(k, j) ] - ( (p_h(i, i) - 1)/h ) p_t(i, j)
$
As $h -> 0$, $p_h(i, k)/h$ becomes $q_(i k)$.
As $h -> 0$, what is $(p_h(i, i) - 1)/h$?
#pagebreak()
$
p_h(i, i) = 1 - sum_(j != i) p_h(i, j)
$
$
therefore (p_h(i, i) - 1)/h = - sum_(j != i) p_h(i, j) / h
$
As $h -> 0$, the sum on the right becomes $lambda_i = sum_(j != i) q_(i j)$.
Hence, altogether,
$
p'_t(i, j) = sum_(k != i) q_(i k) p_t(k, j) - lambda_i p_t(i, j)
$
#pagebreak()
If we define matrix $Q$ with entries
$
Q_(i j) = cases(
q_(i j) & "if" i != j,
-lambda_i & "if" i = j
)
$
Then previous equations can be written as:
Kolmogorov's Backward Equation: $ P'_t = Q P_t $
#pagebreak()
$
p_h(i,i) = 1 - sum_(j != i) p_h(i,j)
$
$ therefore (p_h(i,i) - 1)/h = -sum_(j != i) p_h(i,j)/h -> -lambda_i $ as $h -> 0$
Hence, altogether,
DE for $P_t(i,j)$
$
p'_t(i,j) = sum_(k != i) q_(i k) p_t(k,j) - lambda_i p_t(i,j)
$
#pagebreak()
If we define matrix $Q$ with entries
$
Q_(i j) = cases(
q_(i j) & "if" i != j,
-lambda_i & "if" i = j
)
$
Then previous equations can be written as:
Kolmogorov's Backward Equation: $ P'_t = Q P_t $
#pagebreak()
By the same argument, *but*
$
p_(t+h)(i,j) - p_t(i,j) = [ sum_k p_t(i,k) p_h(k,j) ] - p_t(i,j)
$
instead of
$
p_(t+h)(i,j) - p_t(i,j) = [ sum_k p_h(i,k) p_t(k,j) ] - p_t(i,j)
$
#pagebreak()
Kolmogorov's Forward Equation: $ P'_t = P_t Q $
Note: By Kolmogorov Forward & Backward (K-eqns)
$
Q P_t = P_t Q
$
#pagebreak()
This is remarkable, since $A B != B A$ in general for matrices $A, B$.
The reason why $P_t Q = Q P_t$ is that these matrices are made up of powers of $Q$:
#pagebreak()
Recall $y' = a y => y = e^(a x) = sum_(k=0)^oo ((a x)^k)/(k!)$
Here we have $P'_t = Q P_t$. These are matrices, but still natural to expect
$
P_t = e^(Q t) := sum_(k=0)^oo ((Q t)^k)/(k!)
$
#pagebreak()
Indeed,
$
d/(d t) sum_(k=0)^oo ((Q t)^k)/(k!) = sum_(k=1)^oo (Q^k t^(k-1))/((k-1)!)
$
$
= Q sum_(k=0)^oo ((Q t)^k)/(k!)
$
$
= (sum_(k=0)^oo ((Q t)^k)/(k!)) Q
$
#pagebreak()
The rest of §4.2 is devoted to examples of MC's where K-eqns can be solved to find $P_t(i,j)$ explicitly.
We'll do *some* of these.
#pagebreak()
Eg Poisson Process.
We know
$
p_t(i,j) = P("Poi"(lambda t) = j - i)
$
$
= e^(-lambda t) ((lambda t)^(j - i)) / ((j - i)!)
$
By BKE we should have:
$
p'_t(i,j) = lambda p_t(i, j+1) - lambda p_t(i,j)
$
#pagebreak()
This is easy to check!
$
p_t(i,j) = e^(-lambda t) ((lambda t)^(j-i)) / ((j-i)!)
$
$
p'_t(i,j) = lambda e^(-lambda t) ((lambda t)^(j-i-1))/((j-i-1)!) - lambda e^(-lambda t) ((lambda t)^(j-i))/((j-i)!)
$
$
= lambda p_t(i, j+1) - lambda p_t(i,j)
$
$
checkmark
$