Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Early undergraduate

Probability theory

Name: ______________________

Date: ______________________

You will learn to

  • Define random variables, distributions and expectation, and compute means and variances of the binomial, geometric, Poisson, uniform, exponential and normal distributions
  • Use linearity of expectation and indicator variables, including for dependent events
  • Work with joint distributions, independence and covariance, and know exactly when E[XY]=E[X]E[Y]E[XY] = E[X]E[Y] and Var⁡(X+Y)=Var⁡X+Var⁡Y\operatorname{Var}(X + Y) = \operatorname{Var} X + \operatorname{Var} Y
  • Prove Markov's and Chebyshev's inequalities and the weak law of large numbers
  • State the central limit theorem precisely, use the normal approximation, and explain what the theorem does not say
  1. 1.

    You roll a fair die until the first six appears. What is the expected number of rolls, including the roll that shows the six?

  2. 2.

    A fair coin is flipped 4141 times. A double is a position ii (1≤i≤401 \le i \le 40) where flips ii and i+1i + 1 are both heads; overlapping doubles count separately (HHH contains two). What is the expected number of doubles?

  3. 3.

    In which of these situations is E[XY]=E[X] E[Y]E[XY] = E[X]\,E[Y] guaranteed? (All variables have finite variance. Choose all that apply.)

    • A.XX and YY are independent
    • B.Cov⁡(X,Y)=0\operatorname{Cov}(X, Y) = 0
    • C.XX and YY have the same distribution
    • D.E[X+Y]=E[X]+E[Y]E[X + Y] = E[X] + E[Y]
  4. 4.

    Let SS be the number of heads in 400400 flips of a fair coin. What is the smallest cc for which Chebyshev's inequality guarantees P(∣S−200∣≥c)≤14P(|S - 200| \ge c) \le \tfrac14?

  5. 5.

    The proof of the weak law of large numbers has four steps: (1) E[Xˉn]=μE[\bar X_n] = \mu; (2) Var⁡Xˉn=σ2/n\operatorname{Var} \bar X_n = \sigma^2/n; (3) apply Chebyshev's inequality to Xˉn\bar X_n; (4) let n→∞n \to \infty. Which step uses the hypothesis that the XiX_i are pairwise uncorrelated?

    • A.Step 1
    • B.Step 2
    • C.Step 3
    • D.Step 4
  6. 6.

    Which statement is a correct consequence of the central limit theorem?

    • A.A large enough sample from any population has a histogram that looks like a normal curve.
    • B.If X1,X2,…X_1, X_2, \dots are i.i.d. with finite variance σ2>0\sigma^2 > 0, then P((Sn−nμ)/(σn)≤x)→Φ(x)P\big((S_n - n\mu)/(\sigma\sqrt n) \le x\big) \to \Phi(x) for every xx.
    • C.Averages of independent Cauchy variables become approximately normal for large nn.
    • D.For n≥30n \ge 30 the standardised sum has exactly the normal distribution.
  7. 7.

    Ten letters are put into ten addressed envelopes uniformly at random. Let NN be the number of letters in the right envelope. What is Var⁡N\operatorname{Var} N?

    • A.0.90.9
    • B.11
    • C.1010
    • D.1/e1/e
  8. 8.

    Which Lean statement correctly formalises Chebyshev's inequality c2 P(∣X−EX∣≥c)≤Var⁡Xc^2\,P(|X - E X| \ge c) \le \operatorname{Var} X? (Here μ is a probability measure, μ[X] is EXE X and Var[X; μ] is Var⁡X\operatorname{Var} X.)

    • A.theorem (hX : MemLp X 2 μ) {c : ℝ} (hc : 0 < c) : c ^ 2 * μ.real {ω | c ≤ |X ω - μ[X]|} ≤ Var[X; μ]
    • B.theorem (hX : MemLp X 2 μ) {c : ℝ} : c ^ 2 * μ.real {ω | c ≤ |X ω - μ[X]|} ≤ Var[X; μ]
    • C.theorem (hX : MemLp X 2 μ) {c : ℝ} (hc : 0 < c) : c ^ 2 * μ.real {ω | c ≤ |X ω - μ[X]|} ≥ Var[X; μ]
    • D.theorem (hX : MemLp X 2 μ) {c : ℝ} (hc : 0 < c) : c * μ.real {ω | c ≤ |X ω - μ[X]|} ≤ Var[X; μ]
  9. 9.

    Write tail(n, k) returning the exact probability, as a Fraction, that the number of heads SS in nn fair coin flips satisfies ∣S−n/2∣≥k|S - n/2| \ge k. Then write chebyshev(n, k) returning Chebyshev's bound n/4k2\frac{n/4}{k^2} as a Fraction. The tests check that the bound always holds and is far from sharp for large nn.

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0