









































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










































What’s a Random Variable?
A Random Variable is a real-valued function on a sample space S
Lecture 12 (October 10, 2007)
Like finite automata, but instead of a determinisic or non-deterministic action, we have a probabilistic action
Example questions: “What is the probability of reaching goal on string Work,Eat,Work?”
No new ideas
Solve HW problem
Eat
Wait
Work
Work
Hungry
At any node, go to one of the neighbors of the
node with equal probability
At any node, go to one of the neighbors of the
node with equal probability
At any node, go to one of the neighbors of the
node with equal probability
0 n
k
You go into a casino with $k, and at each time step, you bet $1 on a fair game
You leave when you are broke or have $n
Question 1: what is your expected amount of
money at time t?
Let Xt be a R.V. for the amount of $$$ at time t
0 n
k
You go into a casino with $k, and at each time step, you bet $1 on a fair game
You leave when you are broke or have $n
Xt = k + δ 1 + δ 2 + ... + δt,
(δi is RV for change in your money at time i)
So, E[X (^) t] = k
E[δi] = 0
Question 2: what is the probability that you
leave with $n?
E[Xt] = k
E[Xt] = E[Xt| Xt = 0] × Pr(Xt = 0)
As t →∞, Pr(neither) → 0, also something (^) t < n
Hence Pr(Xt = n) → k/n
k = n × Pr(Xt = n)
0 n
k
You go into a casino with $k, and at each time step, you bet $1 on a fair game
You leave when you are broke or have $n
Question 2: what is the probability that you
leave with $n?
= probability that I hit green before I hit red
Same as equations for voltage if edges all have same resistance!
p (^) x = Pr(reach green first starting from x)
pgreen = 1, p (^) red = 0
And for the rest p (^) x = Average (^) y ∈ Nbr(x) (p (^) y )
0 n
k
You go into a casino with $k, and at each time step, you bet $1 on a fair game
You leave when you are broke or have $n
Question 2: what is the probability that you
leave with $n?
voltage(k) = k/n = Pr[ hitting n before 0 starting at k] !!!