Unit 1 of 7 · about 3 hours · explain, derive

Probability axioms and random variables

Every later loss, sampler and posterior conditions on an event. A vague sample space now becomes a wrong conditional later.

You'll be able to

  • Explain sample spaces, events, probability mass functions, density functions and cumulative distribution functions, and state when each one applies.
  • Derive a probability in a new finite model by counting, and check it by exact arithmetic and by simulation with a stated seed.

Covers

Sample spaces, events and probability axiomsRandom variables, PMFs, PDFs and CDFs
1

Read

In this order, only the parts listed

0 of 4 done

  1. Sample spaces, counting and axiomsHarvard Stat 110 - Probability

    Lectures 1 to 3: naive definition, counting, axioms and inclusion-exclusion

  2. Random variables, PMFs, PDFs and CDFsHarvard Stat 110 - Probability

    Lectures 7 and 8: Bernoulli and Binomial variables, CDFs, PMFs and Hypergeometric

  3. Counting and discrete-variable drillsStat 110 Strategic Practice

    Strategic Practice: Naive Definition Q1-4 and Story Proofs Q5-7; Homework Q1-7

  4. Probability and random-variable notationProbabilistic Machine Learning: An Introduction

    Chapter 2, Sections 2.1-2.2.2 (pp. 33-38): events, the conditional-probability definition, discrete and continuous variables, CDFs and quantiles

2

Focus on

  • The naive definition needs finite and equally likely outcomes. State both assumptions before counting.
  • A PMF gives probabilities that sum to 1. A density does not: only its integral over a set is a probability, and a density value can exceed 1.
  • The CDF works for every variable type and determines the distribution.
  • Universality: for continuous with CDF , is . This is the seed of inverse-CDF sampling in the transforms unit.
Common mistakes · 3
  • Reading a density value as a probability. For continuous , ; report instead.
  • Calling an outcome random without a distribution. Name the set, the probabilities on it and the sampling scheme.
  • Assuming distinct-looking formulas give distinct distributions. Compare the CDF or the PMF values, which settle identity.
3

Try it yourself

Closed-book, before checking anything

Closed-book, count from the 36 ordered pairs. Then check with NumPy in float64: numpy.random.default_rng(7), a (200000, 2) int64 array from integers(1, 7); the fraction of sums equal to 9 is 0.11259 with standard error 0.00071, within about 2 standard errors of 1/9.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Two dice: why is and not 4/11?Answer

    Sums 2 to 12 are 11 values but not equally likely, so the naive definition does not apply to them. The 36 ordered pairs are equally likely by symmetry of fair independent dice, and 4 of them sum to 9. The step that uses the assumption is choosing the 36 pairs as the counting set.

  2. 2.Give a density that exceeds 1 somewhere and show it is still valid.Answer

    has density 2 on its support and integrates to 1. Validity uses non-negativity plus integral 1; no step bounds the density pointwise.

  3. 3. is continuous with strictly increasing CDF . Prove is , naming each assumption.Answer

    uses strict increase for the inverse step, then equals by continuity of . The result on is the Uniform CDF.

  4. 4.A learner simulates 2000 dice pairs, gets 0.125, and claims the exact answer is wrong. What is the error?Answer

    Simulation noise. The standard error is , so 0.125 sits 1.98 standard errors above 1/9, a gap about one run in 20 produces. A simulation reports an estimate with its standard error; it never refutes an exact count.

5

Practice

You're done when

You derive the 1/9 by counting without notes, your rerun of the seed-7 simulation matches 0.11259 to 4 decimals, and you can state for any new finite model whether naive counting applies.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 2 more in the section
  • Harvard Stat 110 - ProbabilityHarvard University · primary

    Follow lectures 4-14, 17-23 and 25-30 with matching Strategic Practice. Use lectures 1-3 only for prerequisite repair.

  • Stat 110 Strategic PracticeHarvard University · required

    Solve the matching sets before marking a probability topic Practised; use solutions to audit reasoning, not to begin it.

  • Probabilistic Machine Learning: An IntroductionKevin Murphy · reference

    Consult targeted parts of Chapters 2, 3, 4 and 6 for ML notation, Monte Carlo, factorization, posterior prediction and information theory.

Also in this section

  • MIT 18.05 - Bayesian bridgeMIT OpenCourseWare · required

    Use classes 10-16 for MLE, Bayesian updating, posterior prediction, conjugacy, prior choice and credible intervals.

  • D2L - Information TheoryD2L authors · required

    Use §§22.11.1-22.11.5 for runnable entropy, cross-entropy, KL and mutual-information examples and exercises.