Four Quick Probability Drills: Decay, Regression, Doors, Dice
Statistics & ExperimentsModel answerLast updated
Answer four short probability and statistics questions: surviving atoms after repeated halvings, two population regression slopes, a three-door game show, and rolls needed to see every die face.
Work through the four short problems below. Show your reasoning, state any assumptions, and give a final answer for each.
Part 1: Unstable particles
Each particle has a half-life of 1 day. Particles behave independently, and each particle's lifetime follows an exponential distribution. You begin with n = 100 particles and wait m = 10 days.
- What is the distribution of the number of particles still intact at the end?
- Find the expected number of survivors, and the probability that at least one particle survives.
- Write a simulation that takes
m(days) andn(particle count) and returns a list giving each particle's final state (1= intact,0= decayed).
Part 2: Regression slopes in the population
Let x ~ N(0, 1) and e ~ N(0, 1) be independent, and define y = x + e.
Find the population least-squares intercept and slope for:
- Model A: regress
yonx. - Model B: regress
xony.
Comment on how the two slopes relate to each other.
Part 3: Three-door game
There are three doors: one hides a prize, two hide goats. You choose a door. The host, who knows what is behind every door, opens a different door that reveals a goat, then lets you switch to the remaining closed door.
What is your winning probability if you switch, and if you stay? Justify briefly.
Part 4: Seeing every face
A fair die with n faces is rolled repeatedly. What is the expected number of rolls until every face has appeared at least once? Give the general formula and the value for n = 6.
Hints
Hint 1
For Part 1, first compute the probability that a single particle outlives m days using the exponential survival function with rate ln 2. Independence with equal probabilities points to a standard named distribution.
Hint 2
For Part 2, the population slope of u on v is Cov(u, v) / Var(v). Compute Var(y) using independence, and notice the two slopes are not reciprocals of one another.
Hint 3
For Part 3, ask when switching wins in terms of your first pick. For Part 4, split the process into stages by how many distinct faces you have already seen; each stage is a geometric waiting time, and expectations add.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
Part 1: Unstable particles
Per-particle survival. With a half-life of 1 day, the lifetime is T ~ Exp(λ) with λ = ln 2 per day, so
P(T > m) = e^(−λm) = 2^(−m).
For m = 10, p = 1/1024 ≈ 0.000977.
Distribution. Particles are independent with the same survival probability, so the survivor count is
N ~ Binomial(100, 1/1024), with P(N = k) = C(100, k) p^k (1 − p)^(100−k).
Since np is small, Poisson(0.0977) is an excellent approximation, but the exact answer is the binomial.
Expectation. E[N] = np = 100/1024 ≈ 0.0977.
At least one survivor.
P(N ≥ 1) = 1 − (1023/1024)^100 ≈ 1 − e^(−0.0977) ≈ 0.093.
Sanity check: P(N ≥ 1) ≤ E[N] (Markov), and 0.093 < 0.098 holds. The two are close because the chance of two or more survivors is tiny.
Simulation. Draw each lifetime from Exp(ln 2) and mark the particle alive if the lifetime exceeds m. This handles non-integer m and runs in O(n).
import math
import random
def simulate_decay(m, n, half_life=1.0, seed=None):
if m < 0 or n < 0:
raise ValueError("m and n must be non-negative")
rng = random.Random(seed)
rate = math.log(2) / half_life
return [1 if rng.expovariate(rate) > m else 0 for _ in range(n)]
An equivalent day-by-day version lets each living particle survive with probability 1/2 per day. It is valid for integer m thanks to memorylessness, but costs O(nm). Edge cases: n = 0 gives an empty list; m = 0 leaves everything alive. Averaging many runs should give about 0.098 survivors and about 9.3% of runs with at least one.
Part 2: Regression slopes
Moments: E[x] = E[y] = 0, Var(x) = 1, Var(y) = 1 + 1 = 2 (independence), Cov(x, y) = Cov(x, x + e) = 1.
Slope = Cov/Var of the regressor; intercept = mean(dependent) − slope × mean(regressor).
- Model A (y on x): slope = 1/1 = 1, intercept 0. This recovers the true relationship, since the noise is independent of x.
- Model B (x on y): slope = 1/2 = 0.5, intercept 0. Intuitively, y is signal plus equally large noise, so the best prediction of x shrinks y by half. This matches E[x | y] = y/2 for jointly normal variables.
Common mistake: assuming the second slope is the reciprocal of the first (which would give 1 or 2). In fact the product of the two slopes equals ρ² = 1/2, where ρ = 1/√2 is the correlation. They are reciprocals only when |ρ| = 1. This is regression to the mean, and the same mechanism produces attenuation bias when a regressor is measured with noise.
Part 3: Three-door game
- Stay: 1/3.
- Switch: 2/3.
Your first pick hides the prize with probability 1/3. The host always opens a goat door he knows about, so his action tells you nothing new about your own door; it stays at 1/3. The remaining 2/3 collapses onto the one other closed door. Equivalently, switching wins exactly when your first pick was a goat, which happens with probability 2/3.
Pitfalls: saying "two doors left, so 50/50" ignores that the host's choice depends on the prize location. State the assumption that the host knows where the prize is and always reveals a goat; if he opened a door at random and it happened to show a goat, the answer would indeed be 1/2.
Part 4: Expected rolls to see all faces
Divide the process into n stages. In stage k you have seen k − 1 distinct faces and are waiting for a new one. Each roll is new with probability p_k = (n − k + 1)/n, so the stage length is geometric with mean n/(n − k + 1).
By linearity of expectation:
E[T] = Σ_{k=1}^{n} n/(n − k + 1) = n · H_n = n(1 + 1/2 + … + 1/n) ≈ n ln n + 0.5772 n + 1/2.
For n = 6: E[T] = 6 × (1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6) = 6 × 2.45 = 14.7 rolls.
The stages are independent, so Var(T) = Σ (1 − p_k)/p_k², which is bounded by (π²/6) n².
Common mistakes: answering n or n²; forgetting that the last stage dominates (the final new face alone takes n rolls on average).
What a strong answer shows
- Recognizing named structures: independent equal-probability events give a binomial; population OLS is covariance over variance; the die problem is a sum of geometric waits.
- Using sanity checks (Markov bound, product of slopes equals ρ²).
- Stating assumptions explicitly, especially for the three-door game.