Skip to main content

Module 3: Probability & Statistics

Primary text: Introduction to Probability
Selective support: Mathematics for Computer Science probability chapters and the local semester book chunks only where they sharpen modeling, expectation, or confidence language

This guide is the primary teacher. You do not need to read the source books front-to-back to complete this module. You do need to become operationally strong at probability modeling, random variables, expectation, dependence, and the statistical meaning of averaging and uncertainty.


Scope of This Module​

The required continuous-model and inference extension adds concepts 16–20 after the original five clusters. See its learning sequence and PS9–PS12 gates.

This module is not a formula sheet for "plug and chug" probability. It is where uncertainty becomes something you model precisely.

What it covers in depth:

  • building probability spaces from combinatorial structure instead of vague intuition
  • event algebra, complements, overlap, and why equally likely outcomes must be justified
  • conditional probability as a restricted world, not a decorative fraction
  • Bayes' rule, total probability, base rates, and why many diagnostic intuitions fail
  • independence as information neutrality, not the same thing as disjointness
  • random variables as functions on outcomes, together with PMFs, CDFs, and transformations
  • standard discrete models: Bernoulli, binomial, hypergeometric, geometric, and Poisson
  • expectation, linearity, indicator variables, variance, covariance, and dependence structure
  • continuous random variables, densities, Normal and Exponential models, and location-scale thinking
  • the law of large numbers, the central limit theorem, empirical distributions, simulation, and careful confidence language

What it deliberately does not try to finish here:

  • full mathematical statistics as a separate course
  • measure-theoretic probability
  • advanced stochastic processes beyond brief motivation
  • hypothesis-testing catalogs and cookbook procedures detached from probabilistic meaning

This is an in-depth foundation module. If you can compute answers but cannot explain the model that produced them, you are not done.


Before You Start​

Discrete probability may be studied before calculus. Before the continuous-model cluster, pass CAL1–CAL6 in Calculus Foundations: limits, differentiation, integration, density normalization and tail/error reasoning. The density bridge provides the missing integration prerequisites; it does not replace probabilistic model choice or inference.

Complete the prerequisite diagnostic. It checks fractions, sets, counting, and weighted averages from earlier modules. Probability questions are learning objectives here, not entry requirements. A short coding bridge supports learners who need to review loops and functions before the labs.

Use the assessment map to see the evidence required for each competency. This module does not promise a percentile rank; it asks you to demonstrate specific mathematical and engineering abilities.


What This Module Is For​

Probability is the mathematical language for controlled uncertainty. Later CS work repeatedly asks questions like:

  • what is the chance this randomized algorithm succeeds quickly?
  • how many collisions, retries, failures, or rare events should we expect?
  • when does new evidence actually change our belief?
  • how much trust should we put in a sample, simulation, benchmark, or test result?
  • what does "unlikely" mean quantitatively rather than rhetorically?

This module builds the probability and statistical reasoning needed for:

  • randomized algorithms and expected running time
  • data-structure analysis such as hashing and Bloom filters
  • reliability, failure, and queueing intuition in systems
  • machine learning foundations such as distributions, averaging, and variance
  • simulation, experimentation, and confidence claims in engineering work

You are learning to reason about uncertainty without handwaving.


Concept Map​


How To Use This Module​

Work in order. The later clusters only make sense if the earlier modeling habits are stable.

Cluster 1: Probability Models​

OrderConceptTypeFocus
1Probability Starts with a Well-Defined ModelPRIMARYOutcomes, events, and the difference between the world and your model of it
2Counting Models, Equally Likely Outcomes, and Event AlgebraSUPPORTINGWhen combinatorics legitimately turns into probability and how events combine
3Complements, Unions, and Overlap ControlSUPPORTINGComplement counting, inclusion-exclusion, and avoiding double counting

Cluster mastery check: Can you define the sample space and justify why the probability model is valid before writing any formula?

Cluster 2: Conditioning and Information​

OrderConceptTypeFocus
4Conditional Probability Restricts the WorldPRIMARYReweighting when new information rules out outcomes
5Bayes, Total Probability, and Base-Rate ReasoningPRIMARYForward and reverse conditioning, priors, posteriors, and diagnostic thinking
6Independence Is Information Neutrality, Not DisjointnessSUPPORTINGWhat independence really means and where intuition fails

Cluster mastery check: Can you explain in words what information is being conditioned on and whether it should change the model?

Cluster 3: Random Variables and Distributions​

OrderConceptTypeFocus
7Random Variables Turn Outcomes into QuantitiesPRIMARYRandom variables as functions, not mysterious containers
8PMFs, CDFs, and Functions of Random VariablesSUPPORTINGDistribution descriptions, cumulative viewpoints, and transformation thinking
9Core Discrete Distribution FamiliesPRIMARYBernoulli, binomial, hypergeometric, geometric, and Poisson models

Cluster mastery check: Can you choose a random variable that captures the real question instead of only the raw event?

Cluster 4: Expectation, Variance, and Dependence​

OrderConceptTypeFocus
10Expectation Is the Center of a Random ProcessPRIMARYWeighted averages, long-run meaning, and why expectation matters
11Linearity and Indicator Variables Are the Main WorkhorsesPRIMARYSolving expectation questions without full distributions
12Variance, Joint Structure, and CovariancePRIMARYSpread, dependence, and how variables move together

Cluster mastery check: Can you compute expectation and variance with a reason, and can you say what those numbers do and do not tell you?

Cluster 5: Continuous Models and Statistical Thinking​

OrderConceptTypeFocus
13Continuous Random Variables Use Densities, Not Point MassesPRIMARYPDFs, intervals, and why point probabilities collapse to zero
14Normal, Exponential, and the Return of StandardizationSUPPORTINGTwo core continuous models and how scale changes interpretation
15Averages, Simulation, and Confidence LanguagePRIMARYLLN, CLT, empirical distributions, Monte Carlo, and careful statistical claims

Cluster mastery check: Can you explain why averaging stabilizes, why Normal approximations recur, and why "95% confidence" is not the same thing as "95% probability the fact is true"?

Then work these practice pages:

OrderPractice pathFocus
1Probability Modeling and Conditioning LabSample spaces, event setup, conditioning, Bayes, and independence
2Random Variables and Distribution WorkshopPMFs, CDFs, model selection, and distribution comparison
3Expectation, Variance, and Statistical Reasoning ClinicIndicators, variance, covariance, LLN, CLT, and confidence language
4Code KatasSimulation and probabilistic programming drills

Use Module Quiz after the concept and practice path. Use Reference and Selective Reading and Learning Resources only for targeted reinforcement.


Learning Objectives​

By the end of this module you should be able to:

  1. Build a correct probability space and justify whether an equally likely model is legitimate.
  2. Compute event probabilities using complements, unions, overlap accounting, and counting arguments.
  3. Interpret conditional probability as model restriction and use it to solve multistage problems.
  4. Apply Bayes' rule and the law of total probability without losing track of base rates.
  5. Distinguish clearly between mutual exclusivity, conditional dependence, and independence.
  6. Define and use random variables, PMFs, CDFs, and simple transformations.
  7. Recognize when Bernoulli, binomial, hypergeometric, geometric, or Poisson models fit a problem.
  8. Compute and interpret expectation, linearity, indicator sums, variance, and covariance.
  9. Work with continuous random variables using PDFs and interval probabilities.
  10. Explain the law of large numbers, the central limit theorem, and the difference between probability statements and confidence statements.

Outputs and Completion Standard​

  • Written attempts for the 16 problems in the three practice sets, including assumptions, corrections, and changed cases for errors.
  • Your original six-function lab implementation, passing checker output, two seeded reports, and completed evidence template.
  • Your four-function inference lab, two additional seeded reports, memo appendix and PS9–PS12 evidence.
  • The experiment-design memo, explaining what the workload fixture establishes and what it cannot establish.
  • An independent eight-item assessment, scored per competency using the rubric, plus a delayed changed-case recheck.

Separate guided practice, self-assessment, and review by another person. Passing code checks alone is insufficient; a missing model assumption requires repair even when a total score is high. See the instructor guide for the review process and current validation limits.


Reading Policy​

  • Concept pages are the main path.
  • Local book chunks are selective reinforcement, not a second syllabus.
  • Read only if stuck means try the concept page, self-check, and drill first.
  • Optional deep dive means additional nuance or exercise volume, not required progression.
  • Because this is an in-depth module, written modeling explanations are required, not optional enrichment.

Suggested Workload and Sequence​

Plan roughly 70–100 focused hours, or around 7–10 weeks at ten hours per week, including the required inference extension. These are author estimates awaiting learner pilots. Prior preparation and remediation can change the time substantially; do not compress the module into a calendar week simply to match a semester label.

PhaseWorkEstimated hours
EntryDiagnostic and specific prerequisite repair2–4
Models and informationConcepts 1–6, worked examples 1–2, practice A9–12
Variables and expectationConcepts 7–12, worked examples 3–4, practice B10–14
Statistical reasoningConcepts 13–15, practice C, experiment-design lesson9–12
Executable workFour labs, evidence, corrections; may interleave with lessons8–12
Assessment and repairQuiz, memo review, targeted repair, delayed recheck7–11
Continuous models and inference extensionConcepts 16–20, new practice, lab/memo and PS9–PS1225–35

The delay before the retention check is calendar time, not additional study hours. Optional external exercises and deeper reading add time; they are not hidden requirements in this estimate. Use the guided labs for the download and precise workflow, and the reading guide for selective book assignments.


Reference​

If you need exact links into the local chunked books, use Reference and Selective Reading.


Rich Learning Pages​

Worked Examples | Guided Labs | Case Studies | Mistake Clinic | Reading Guide | Capstone Thread

Required inference extension​

After concepts 1–15 and the calculus entry gate, complete Continuous Models and Inference. It adds transformations, joint densities, maximum likelihood, Bayesian parameter updates and an exact paired randomization experiment. The original PS1–PS8 gates remain required; PS9–PS12 add independent evidence. Its 25–35 hours are included in the revised module total.