Ece 313 CC WS
Ece 313 CC WS
1 Dutiful Drills
All parts of this problem are unrelated to each other.
(a) Suppose a random variable T has the exponential distribution with parameter λ. Suppose it is observed
that T = t for some fixed value of t. Find the ML estimate, λ̂M L (t), of λ, based on this observation.
(b) Suppose it is assumed that X is drawn at random from the uniform distribution on the interval [0, b],
where b is some parameter. Find the ML estimator of b given X = u is observed.
(c) Consider a Poisson process on the interval [0, T ] with rate λ > 0, and let 0 < τ < T . Define X1 to be
the number of counts during [0, τ ], X2 to be the number of counts during [τ, T ], and X to be the total
number of counts during [0, T ]. Let i, j, n be nonnegative integers such that n = i + j. Express the
following probabilities in terms of n, i, j, τ, T, and λ, simplifying your answers as much as possible:
(i) P {X = n}
(ii) P {X1 = i}
(iii) P {X2 = j}
(v) P {X = n|X1 = i}
1
2 Persistent Particles 1
Hyouin is playing with his quantum particle generator. Specifically, he is interested in the spins of the
particles that he generates. A generated particle has a 50% chance of being spin-up and a 50% chance of
being spin-down. All generated particles are independent from each other.
Hyouin decides that he will keep generating particles until the following conditions are met. For each of
the following conditions, compute the expected number of particles that Hyouin needs to generate in order
to meet the condition. As soon as Hyouin satisfies the condition, he will stop generating particles.
(b) Hyouin gets at least one spin-up and at least one spin-down particle.
(g) Hyouin gets the same number of spin-up particles as spin-down particles.
(h) Hyouin gets the same positive number of spin-up particles as spin-down particles.
(i) Hyouin gets more than twice as many spin-up particles as spin-down particles.
2
3 Persistent Particles 2
Suppose that Hyouin generates two quantum particles. Let A denote the event that the first quantum
particle was spin-up. Let B denote the event that the second quantum particle was spin-up. Let C denote
the event that the quantum particles match each other.
Are A, B, and C pairwise independent? Are they completely independent?
4 Persistent Particles 3
Hyouin continues to generate his quantum particles. Suppose that he generates n of them. Let Xk be
equal to 12 if the k’th particle is spin-up, and 0 otherwise. Let Yk be equal to 12 if the k’th particle is
spin-down, and 0 otherwise. Let Zk = Xk2 + 2Yk .
Now let X be the sum of all Xk , Y be the sum of all Yk , and Z be the sum of all Zk .
3
5 Persistent Particles 4
Ryan decides to modify Hyouin’s quantum particle generator to have some fun. In particular, Ryan’s
quantum particle generator now does the following to generate particles:
1. The first particle will have a 50% chance to be spin-up and a 50% chance to be spin-down.
2. The i’th particle, where i ̸= 1, will be spin-up with probability p1 if the i − 1’th particle was spin-up
(and 1 − p1 probability of spin-down). It will be spin-down with probability p2 if the i − 1’th particle
was spin-down (and 1 − p2 probability of spin-up in this scenario).
3. The quantum particle generator completely resets after generating 10 particles.
Hyouin now generates 10000 particles. Note: For parts (b)-(f), use the scenario from part (b).
(a) Ryan first sets p1 = p2 = 0.6. What is the expected number of spin-up particles?
(b) For the remainder of this problem, Ryan sets p1 = 0.6 and p2 = 0.55. What is the expected number of
spin-up particles?
(c) Give an upper bound on the probability that the actual number of spin-up particles is more than 8000.
(d) Give an upper bound on the probability that the actual number of spin-up particles vary from the
expected value by more than 250.
(e) What is the estimated probability that the actual number of spin-up particles vary from the expected
value by less than 250?
(f) What is the estimated probability that the actual number of spin-up particles vary from the expected
value by less than or equal to 1?
4
6 Gullible Gaussian
Aaron is drawing from a Gaussian distribution with mean 4 and variance 9.
(a) Suppose he draws from the Gaussian distribution once and multiplies what he gets by 2. What is the
mean of his result? The variance?
(b) Suppose he draws from the Gaussian distribution twice independently and sums what he gets. What
is the mean of his result? The variance?
(d) (Unrelated to the previous parts) Give an informal argument for why Poisson processes with large λ
can be well-approximated by a Gaussian distribution with mean λ and variance λ.
7 Burning Bridges
Esther is building a bridge between ECEB and Beckman. Her bridge will use ten concrete pillars as
supports, each of which requires eight concrete blocks. The bridge is designed such that each concrete pillar
can tolerate two cracked concrete blocks, and the overall bridge can tolerate a single failed concrete pillar.
Thus, in order for Esther’s bridge to fall, there has to be at least two concrete pillars that each have at least
three cracked concrete blocks. Suppose concrete blocks crack independently with probability p.
(a) Find an expression for the exact probability, p0 , that a particular concrete pillar fails, in terms of p.
(b) Find an expression for the exact probability, p1 , that the bridge falls, in terms of p0 .
5
8 Articulate Arrival
Calls arrive to a cell in a certain wireless communication system according to a Poisson process with an
arrival rate of λ = 5 calls per minutes. We now measure time in minutes and consider an interval of time
beginning at t = 0. Let Nt denote the number of calls that arrive in t minutes. For a fixed t > 0, the random
variable Nt is a Poisson random variable with parameter 5t.
(a) Find the probability that no calls arrive in the first four minutes.
(b) Find the probability that the first call arrives after four minutes.
(c) Find the probability that two of fewer calls arrive in the first four minutes.
(d) Find the probability that the third call arrives before time t.
(e) Derive the pdf of the arrival time of the third call.
6
9 Noble Normal
Let X have the N (10, 16) distribution. Find the numerical values of the following probabilities (practice
using the Q tables).
(a) P {X ≥ 15}
(b) P {X ≤ 5}
(c) P {X 2 ≥ 400}
(d) P {X = 2}
10 Uniquely Uniform
(a) Suppose X is a continuous random variable with CDF FX . Let Y be the result of applying FX to X
(aka Y = FX (X)). What is the distribution of Y ?
(b) Find a function g such that, if U is uniformly distributed over the interval [0, 1], g(U ) is a Rayleigh
distribution with σ 2 = 9.
7
11 Displeased Distribution
t2
Let T have the pdf fσ2 (t) = I{t≥0} σt2 e− 2σ2 , where σ 2 is unknown. Find the ML estimate of σ 2 if it is
observed that T = 12. Note that I{t≥0} = 1 if t ≥ 0 and 0 otherwise.
12 Gruesome Gaussian
Suppose X, Y , and Z are independent Gaussian distributions. X has mean 1 and variance 4. Y has
mean 0 and variance 9. Z has mean 10 and variance 1. Find the pdf of X + Y + Z.
Hint: ECE210’s frequency domain may be useful.
8
14 Bubbly Balloons
Aaron is blowing up balloons for his birthday party. However, he’s not very consistent with how much
helium he puts in his balloons. The radius of his balloons follow a uniform distribution with mean 4 meters
and variance 3 meters. You may assume that the balloons are all perfect spheres. You may also assume that
negative radii, however unlikely, are ok.
Let V be the random variable denoting the volume of the balloons, while S is the random variable
denoting the surface area of the balloons.
9
15 Deft Distribution
Suppose X and Y have a bivariate Gaussian joint distribution with E[X] = E[Y ] = 1 and Var(X) = 2.
The variance of Y and the correlation coefficient are not known. Finally, suppose that X is independent of
X −Y.
10
16 Dangerous Diagonal Darts (with Determinants!)
Lauren has challenged Alex to a game of darts. Unfortunately, Alex is quirky and he only owns a
triangular dart board, with corners at (0, 0) and (2, 0) and (0, w) in the xy-plane. Lauren is annoyed with
this—any normal person has a triangular dart board with corners at (0, 0) and (2, 0) and (0, 2) in the xy-
plane. Let X and Y be the random variables for the location of Lauren’s throw, and suppose their joint
density is given by (
0 x < 0 or x > 2 or y < 0 or y > 2
f (x, y) = 3 2
16 x (2 − y) otherwise
To be fair to Lauren, Alex will let her define two linear transformations, U = g1 (X) = c1 X and V = g2 (Y ) =
c2 Y before her throw, and will use the transformed position (U, V ) to determine where her throw hit on his
wide dartboard.
(a) Show that U and V are invertible and differentiable.
(b) Find the values of c1 and c2 to maximize the probability that (U, V ) lies within the region defined by
Alex’s dartboard. Hint: it’s simpler than you think! If you do want to work out all the math, you’ll
probably want a computer algebra system.
(d) Bonus: Alex thinks this is too easy: now Lauren must define two cubic transformations, U = c1 X 3
and V = c2 Y 3 . Again, find c1 and c2 to maximize her chances of hitting Alex’s dartboard.
11
17 Packed Plane
Ryan is the first person to board a plane that contains n seats. However, he has forgotten what seat he
is supposed to take, and he has also lost his boarding pass (what is the probability of that!) Therefore, he
simply chooses a random seat and sits down.
Aaron is the second person to board the same plane. However, he has also forgotten what seat he was
supposed to take. Aaron’s boarding pass is buried beneath 200 bags of Swedish Fish, so he’s not in the mood
to pull it out. Therefore, he also picks an empty seat randomly.
The next n − 2 passengers behind Aaron then board the plane. When a passenger boards and finds Ryan
or Aaron in their seat, they will ask them to move. Ryan or Aaron will then choose another empty seat
randomly. Importantly, Aaron and Ryan don’t know that the other person also does not know what their
seat is. Therefore, Aaron will never ask Ryan to move, and vice versa.
(a) What is the probability that Ryan never needs to move after choosing a seat randomly for the first
time? What about Aaron?
(b) What is the exact probability that the k’th passenger has to ask Ryan to move?
(c) What is the exact probability that the k’th passenger has to ask Aaron to move?
(d) What is the expected number of times that Ryan has to move? What about Aaron?
(e) What is the exact probability that Ryan and Aaron end up in their assigned seats?
(f) Bonus: Is there some other method of choosing seats such that Ryan and Aaron are more likely to end
up in their assigned seats?
(g) Bonus: Is there some other method of choosing seats such that Ryan and Aaron have to move around
less?
12
18 Demonic Dice
Ryan is at board-game night and is learning a fun new game called Dungeons and Dragons. The game
requires 20-sided dice. Unfortunately, the party only has 6-sided dice.
Devise a method to roll a 20-sided die such that each number could be rolled with equal probability using
only 6-sided die. The method should use the least expected number of rolls possible (for example, solutions
that are expected to use 4 rolls are better than solutions that are expected to use 4.3 rolls). Also give the
expected number of rolls that your method will use.
19 Meticulous Matches
(a) Tabish is going to do what no child should do: play with matches. Tabish takes a match stick and
breaks it into three parts. He then attempts to arrange these three parts into a triangle. If Tabish
breaks the match at two randomly chosen positions, what is the probability that the three parts can
be arranged into a triangle?
(b) Tabish instead chooses to first break the match at a random position, then break the longest of the
two resulting parts at a random position. What is the probability that the three parts can be arranged
into a triangle?
13
20 Scenic Sleepwalk
Sania tends to sleepwalk. However, she sleepwalks in a peculiar way: every minute, starting at minute
1, she will randomly choose a direction (+x, −x) and walk one foot towards that direction. Suppose that
the room she’s sleeping in is a n feet long. Sania will wake up when she runs into a wall (i.e. at x = 0 or
x = n + 1). Since we don’t want this to happen for various reasons, answer the following questions below:
(a) Given that she starts at x = 1, what is the probability that she wakes up by running into the x = n + 1
wall?
(b) Given that she starts at x = k, what is the probability that she wakes up by running into the x = n+1?
Express your answer in terms of k.
(c) Given that she starts at x = 1, what is the expected amount of time that elapses before she runs into
a wall?
(d) Given that she starts at x = k, what is the expected amount of time that elapses before she runs into
a wall? Express your answer in terms of k.
Bonus: How do you solve the 2D version of this problem? In the 2D version, Sania will randomly choose
a direction (+x, −x, +y, −y). The room she’s sleeping in is n × n. Sania will wake up when she hits any of
the four walls. She starts at (a, b).
14
21 Spry Stairs
Sahan needs to climb the four flights of stairs to get to his Academic Advisor meeting (otherwise he can’t
register for classes again). However, he has a bit of extra time, so he decides to have a little bit of fun. At
each step he will take either one stair or two stairs at a time. How many ways can he climb n stairs?
22 Enigmatic Envelopes
Before you are two envelopes, of which you can only pick one. Both of the envelopes contain money, but
one contains twice the amount compared to the other. You first choose one randomly, open it, and see that
it contains $Y. Should you then change your choice of envelope?
Grant uses the following reasoning:
The expected amount of money gained if you simply walk away is trivially $Y. If you switch, half
of the time you will walk away with $Y/2 (because half the time you picked the better envelope)
and half the time you will walk away with 2$Y (because you picked the worse envelope). Adding
everything up, switching is expected to give you 5Y
4 reward, so you should always switch.
15