



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to problem 1 of hw a for the introduction to stochastic processes course. The problem involves modeling a probability space for an experiment, finding the probability mass function of random variables, and computing probabilities and expected values.
Typology: Quizzes
1 / 6
This page cannot be seen from the preview
Don't miss anything!




and the probabilities are
P[HH] = P[HT ] =
The random variable we are looking for is given by s = HH HT T 1 T 2 T 3 T 4 T 5 T 6 X(s) = 6 0 − 2 − 1 0 1 2 3 Therefore, the probability mass function is given by i = − 2 − 1 0 1 2 3 6 P(X = i) = 1 / 12 1 / 12 1 / 3 1 / 12 1 / 12 1 / 12 1 / 4
(a) According the the Total Probability Formula,
k=
P[H | N = k]P[N = k] =
k=
k + 1
e−λ^
λk k!
e−λ λ
l=
λl l!
e−λ λ
(eλ−1) =
1 − e−λ λ
Then P[T ] = 1 −
1 − e−λ λ and the expected value is
2 − 2 e−λ^ − λ λ
(b) for k = 0, 1 , 2 ,... , we have
P[N = k | H] =
P[N = k, H] P[H]
P[H | N = k]P[N = k] P[H]
1 k+1 e
−λ λk k! 1 −e−λ λ
eλ^ − 1
λk+ (k + 1)!
Please note that we could have used Bayes’ rule to skip the first equality above.
(a) Compute P[Xi 6 = Xj , ∀ i, j = 1,... , m, i 6 = j]. (b) Suppose that there are fifty people in a room, and each person’s birthday is uniformly distributed over the 365 days (ignore leap year) of the year and independent of the other peoples birthday. What is the probability that no two people share a birthday. Compute this numerically.
Solution:
(a) Define the events Ei = {Xj 6 = Xk ∀j 6 = k ≤ i} for i = 1,... , k. It then follows from iterated conditioning and the fact that Ej− 1 ⊂ Ej that
P(Em) = P(E 1 )
∏^ m
i=
P(Ei | Ei− 1 )
Now P(E 1 ) = 1 and P(Ei | Ei− 1 ) is the probability that ith number selected is different that than the previous i − 1 numbers given the fact that the previous i − 1 numbers are all different. As there are only n−(i−1) numbers left that Xi can take, so P(Ei | Ei− 1 ) = (n − (i − 1))/n = 1 − (i − 1)/n. Putting this together gives
P(Em) =
m∏− 1
i=
i n
n
n
m − 1 n
Just in case you are not convinced by this argument that P(Ei | Ei− 1 ) = 1 − (i − 1)/n, I will make it a bit more precise. First we need an abstract result: Suppose that (Fn) is a partition of G and P(A | Fn) = p for all p. Then
n P(A^ |^ Fn)^ P(Fn) P(G)
p
n P(Fn) P(G)
= p.
Now let Di ⊂ { 1 ,... , n}i^ denote the collection of all sequences of i numbers from the set { 1 ,... , n} which contain no repeats (D for different). Clearly,
Ei =
(d 1 ,d 2 ,...,di)∈Di
{Xj = dj for all 1 ≤ j ≤ i}.
If we fix some vector of different numbers (d 1 , d 2 ,... , di− 1 ) ∈ Di− 1 , then
P
Xi 6 = Xj for all j < i
∣ (^) Xj = dj for all j < i)^ = P(Xi 6 = dj for all j < i) = 1 − (i − 1)/n,
Then
P(Ei | F 1 ∪ F 2 ) = P(Ei) = 1/ 4 , i = 1, 2 , P(E 1 ∩ E 2 | F 1 ∪ F 2 ) = P(E 1 ∩ E 2 ) = 1/ 8 ,
so E 1 and E 2 are not conditionally independent given F 1 ∪ F 2. However,
P(E 1 | F 1 ) = P(E 2 | F 1 ) = 1/ 2 , P(E 1 ∩ E 2 | F 1 ) = 1/ 4 ,
and
P(E 1 | F 2 ) = P(E 2 | F 2 ) = 0, P(E 1 ∩ E 2 | F 2 ) = 0,
so E 1 and E 2 are conditionally independent given only F 1 or only F 2. The intuitive idea here is that E 1 and E 2 share common information about H 2. When we condition, we essentially fix the value of the second coin flip so it is “no longer random.” Once this happens, E 1 only depends upon the first flip and E 2 only depends upon the third flip, so they become (conditionally) independent.
|Ai,m| = |Aj,m|, i, j = 1,... , m.
and |Ai,m− 1 ∩ Am,m| = |Aj,m− 1 ∩ Am,m|, i, j = 1,... , m − 1 , where |B| denotes the number of points in the set B. As all distributions of the numbers are equally likely, we must have
P(Ai,m) = P(Aj,m), i, j = 1,... , m.
and P(Ai,m− 1 | Am,m) = P(Aj,m− 1 | Am,m), i, j = 1,... , m − 1. But ∪mi=1Ai,m = S where S denotes the sample space, so we may then conclude that
P(Ai,m) = 1/m i = 1,... , m.
and P(Ai,m− 1 | Am,m) = 1/(m − 1), i = 1,... , m − 1.
To compute the distribution of X, we first notice that P(X = 0) = P(A 2 , 2 ) = 1/2 and P(X = n − 1) = P(A 1 ,n) = 1/n. If i = 1,... , n − 2, then {X = i} denotes the event that the first player beats players 2 through i + 1, but loses to player i + 2, so
P(X = i) = P(A 1 ,i+1 ∩ Ai+2,i+2) = P(Ai+2,i+2)P(A 1 ,i+1 | Ai+2,i+2) = 1/(i + 1) × 1 /(i + 2).
We check that this probability mass function sums to one by induction of the number of players. If n = 2, we have P(X = 0) + P(X = 1) = 1/2 + 1/2 = 1. Now assume that the probability mass function sums to 1 for n − 1 players, and write
n∑− 1
i=
P(X = i) = 1/2 +
n∑− 2
i=
(i + 1)(i + 2)
n
n∑− 3
i=
(i + 1)(i + 2)
(n − 1)n
n
n∑− 3
i=
(i + 1)(i + 2)
n − 1
= 1,
where the last equality follows from our inductive assumption that the probability mass func- tion sums to 1 for the case n − 1.
U , the number of the ball that is drawn from the urn, D 1 , the roll of the first die, D 2 , the roll of the second die.
Assume that U , D 1 , D 2 are each uniformly distributed and that these random variables are