-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlec19.typ
More file actions
285 lines (190 loc) · 6.58 KB
/
Copy pathlec19.typ
File metadata and controls
285 lines (190 loc) · 6.58 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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
== Lecture 19
The Poisson Process
*Def*
$(N_t : 0 <= t#footnote[continuously] < oo)$ is a rate $lambda$ Poisson Process — $"PP"(lambda)$ — if
1. $N_0 = 0$
2. $N_(t+s) - N_s =^d "Poisson"(t lambda)$, *for any* $t,s >= 0$
3. Indep. increments:
$
N_(t_1) - N_(t_0), N_(t_3) - N_(t_2), dots, N_(t_n) - N_(t_(n-1))#footnote[sequence of disjoint intervals]
$
indep. for *any* $t_0 < t_1 < dots < t_n$.
#pagebreak()
#text(size: 9pt)[
$
N_(t_1) - N_(t_0) & = "# points in" (t_0, t_1] \
"(2.)" & =^d "Poisson"(lambda (t_1 - t_0)#footnote[length of $(t_0, t_1]$])
$
$
"(3.)" "*Indep.* of" N_(t_2) - N_(t_1) & = "# points in" (t_1, t_2] \
& =^d "Poisson"(lambda (t_2 - t_1)#footnote[length of $(t_1, t_2]$])
$
#figure[
#image(
"./figs/p19_06m.png",
width: 50%,
)
]
(1.) $N_0 = 0$ because no points yet at time 0.
]
#pagebreak()
In particular, all
$
N_t#footnote[$=N_t - N_0$] & = "# points in" (0, t] \
& = "# points by time" t \
& =^d "Poisson"(lambda t).
$
This is why it is called a Poisson Process.
#pagebreak()
*Constructing a rate $lambda$ Poisson Process:*
$tau_1, tau_2, dots " IID Exp"(lambda)$
Let $T_n = sum_(i=1)^n tau_i =^d "Gamma"(n, lambda)$.
If we think of $tau_i =$ lifetime of $i$th lightbulb, then $T_n$ is the time at which we have gone through $n$ lightbulbs in total.
#figure()[
#image(
"./figs/p19_12m.png",
width: 60%,
)
]
$T_0 = 0, quad T_1 = tau_1, quad T_2 = tau_1 + tau_2$
#pagebreak()
Let $N_t = max {n: T_n <= t} = "# of * to left of" t$
#figure[
#image(
"./figs/p19_15m.png",
width: 85%,
)
]
Poisson is discrete in values but continuous in time.
#pagebreak()
We will show that $(N_t)_(t>=0)$ is a $"PP"(lambda)$.
Clearly $N_0 = max{n>=0: T_n <= 0} = 0$.
So we need to check (2.) & (3.) in definition above.
First step:
*Lemma.* $N_t ~ "Poisson"(lambda t)$
#pagebreak()
#text(size: 10pt)[
*Proof.* ${ N_t = n } = { T_n <= t < T_(n+1) }.$
I.e., to have exactly $n$ points by time $t$, we need $n^"th"$ point to arrive by time $t$ & $(n+1)^"th"$ point to arrive at some later time $>t$.
$
therefore P(N_t = n)#footnote[$T_n$, $T_(n-1)$ indep, why?] = integral_0^t f_(T_n)(s)#footnote[PDF for arrival time of $n^"th"$ point, $T_n = sum_(i=1)^n tau_i$] P(tau_(n+1) > t-s) d s
$
#figure[
#image(
"./figs/p19_21m.png",
width: 60%,
)
]
]
#pagebreak()
$
& T_n ~ "Gamma"(n, lambda), quad f_(T_n)(s) = lambda e^(-lambda s) ((lambda s)^(n-1)) / ((n-1)!) \
& tau_(n+1) ~ "Exp"(lambda), quad P(tau_(n+1) > t-s) = e^(-lambda(t-s))
$
$
therefore P(N_t = n) & = integral_0^t lambda e^(-lambda s) ((lambda s)^(n-1))/((n-1)!) e^(-lambda(t-s)) d s \
& = e^(-lambda t) lambda^n/((n-1)!) integral_0^t s^(n-1) d s = e^(-lambda t) ((lambda t)^n)/(n!) \
& = P("Poisson"(lambda t) = n).
$
#pagebreak()
We now check parts (2.) & (3.) in definition of $"PP"(lambda)$.
The key is LoM#footnote[lack of memory] & Lemma.
Proof of (2): $N_(t+s) - N_s ~ "Poisson"(lambda t).$
#figure[
#image(
"./figs/p19_30m.png",
width: 60%,
)
]
By LoM the lightbulbs burning at time $s$ starts afresh.
#pagebreak()
So if we ignore $*$ to left of $s$, & start counting $*$ starting at time $s$, we have another IID sequence of $"Exp"(lambda)$ inter-arrival times.
So by Lemma, the \# of $*$ between $s$ & $s+t$ is $"Poisson"(lambda t)$.
Note the \# of such $*$
is $N_(s+t)#footnote[\# of $*$ to left of $t+s$] - N_s#footnote[\# of $*$ to left of $s$]$.
#pagebreak()
Moreover, observe that
$
(N_(t+s) - N_s)_(t>=0) quad \& quad (N_r)_(r<=s)
$
are independent.#footnote[This follows by 1. LoM, 2. $tau_i$ are IID.]
This is because the length of time until a \* after $s$ is indep. of whatever happened before time $s$ (again by LoM).
#pagebreak()
#text(size: 11pt)[
Finally, we check (3.)
Proof of indep. increments:
This follows by induction.
The previous slide shows $(N_(t+t_(n-1)) - N_(t_(n-1)))_(t>=0)$ & $(N_r)_(r<=t_(n-1))$ indep.
$therefore$ In particular,
$
underbrace(N_(t_n) - N_(t_(n-1)), #text[depends on \ $(N_(t+t_(n-1)) - N_(t_(n-1)))_(t>=0)$]), underbrace(#text[$N_(t_(n-2)) - N_(t_(n-3)), dots, N_(t_1) - N_(t_0)$], #text[depends on \ $(N_r)_(r<=t_(n-1))$])
$
are indep.
]
#pagebreak()
We'll skip §2.2.2 on "more realistic models" for now.
$"PP"(lambda)$ pts arrive at rate $lambda$, independent of time $t$.
The non-homogeneous#footnote[$lambda_t$ depends on $t$] Poisson Process on p.105 is interesting.
We may put something on HW \#3 about this -- take a look yourself.
#pagebreak()
§2.3 -- Compound Poisson Processes.
It is often useful to add one more layer of randomness.
*Eg* $(N_t)_(t>=0)$ is a $"PP"(lambda)$ modelling occurrences of earthquakes over time on Hayward fault.
Moreover, suppose each earthquake
#pagebreak()
Has an IID magnitude $Y_i$ which is also indep. of $(N_t)$.
Then
$
S_t = sum_(i=1)^(N_t) Y_i#footnote[Compound Poisson Process.]
$
is the total magnitude felt along fault by time $t$.
#pagebreak()
Note: For a regular $"PP"(lambda)$, all $Y_i = 1$.
- More examples of compound Poisson Processes in §2.2.
#pagebreak()
*Theorem.* $(N_t)$ a $"PP"(lambda)$.
$(Y_i)$ an IID sequence indep. of $(N_t)$.
Let
$
S_t = sum_(i=1)^(N_t) Y_i
$
denote the Compound Poisson Process.
Then
$
"E"S_t & = lambda t "E"Y \
"Var"S_t & = lambda t "E"(Y^2).
$
#pagebreak()
In a similar way, we can calculate 2nd moment:
$
"E"(S_t^2) &= sum_(n=0)^oo P(N_t = n) "E"(S_t^2 | N_t = n) \
&= sum_(n=0)^oo P(N_t = n) [n "Var"Y + (n "E"Y)^2#footnote[$"Var"X = "E"(X^2) - ("E"X)^2$]] \
&= "Var"Y "E"(N_t) + ("E"Y)^2 "E"(N_t^2) \
&= lambda t ( "Var"Y + ("E"Y)^2 ) \
&= lambda t "E"(Y^2) quad square
$
#pagebreak()
#text(size: 10pt)[
Proof
$
"E"(S_t) &= sum_(n=0)^oo P(N_t = n) "E"(S_t | N_t = n) \
&= sum_(n=0)^oo P(N_t = n) n "E"Y#footnote[$S_t | (N_t=n) = sum_(i=1)^n Y_i$] \
&= "E"Y sum_(n=0)^oo n P(N_t = n) \
&= "E"Y dot "E"(N_t) \
&= lambda t "E"Y#footnote[$N_t ~ "Poisson"(lambda t)$]
$
]
#pagebreak()
*Eg* Customers arrive at a store according to a rate $lambda = 81$ Poisson Process.
Suppose each customer spends an IID amount of money with mean \$8 and SD \$6. Find the mean revenue after 1 day, i.e. at time $t=1$. Also find its SD.
#pagebreak()
$
R = sum_(i=1)^(N_1) Y_i, quad "E"Y = 8, quad "Var"Y = 36, quad N_1 ~ "Poisson"(81)
$
By theorem, $"E"R = 81#footnote[$lambda t = lambda dot 1 = 81$] dot 8#footnote[$"E"Y$] = \$648$
$
\& "Var"R & = 81 "E"(Y^2) \
& = 81 ("Var"Y + ("E"Y)^2) \
& = 81 (36 + 64) = 8,100
$
$therefore "SD"(R) = sqrt(8100) = \$90$