Index Ai Academy
Foundation · Foundation mathProbability

Review: find the slip (probability)

About 36 minLooking ahead: some prerequisites aren't done yet

Why this matters

Probability slips are quieter than most. A list of chances that adds up to 0.9 still samples without an error. Two dependent events multiplied as if they were independent give a neat, wrong number. A test that catches 90% of the sick gets read as "a positive means 90% sick", and a whole decision rests on the swap. A simulation without a seed gives a different answer every run, so nobody can check it. This review gathers the module's five commonest slips, each paired with the one-line check that catches it, mixes problems from all of Module 6, and collects every rule on one sheet, ready for Module 7, where these chances meet real data and a model's loss.

  • Spot the common slips of Module 6: chances that don't add up to 1, dependent events multiplied as if independent, P(A | B) swapped with P(B | A), a simulation with no seed, and a variance left without its square root
  • Find and fix slips in probability code that runs but gives a wrong answer
  • Mix problems from every lesson of the module, and run a short probability program in your head, line by line
  • Use the module's formula sheet: each rule, what it says, and its Python line, and see where Module 6 sits in a model
Quick check
Have a guess before you start. A spam filter flags 95% of spam. A friend says: "So a flagged email is 95% likely to be spam." Is that right?

Find the slip

Purpose. Five slips cover most of Module 6's mistakes, and each has a quick check:

  • Chances that don't add up to 1. [0.5, 0.3, 0.1] isn't a distribution. Check: p.sum() must be 1.
  • Dependent events multiplied. P(A and B) = P(A) × P(B) only when A doesn't change B's chance. Check: is B's chance the same once A has happened? If not, use P(A) × P(B | A).
  • P(A | B) swapped with P(B | A). They restrict to different groups. Check: say aloud which group is being counted in, and use Bayes' rule to move between them.
  • No seed. default_rng() with nothing inside gives new numbers every run. Check: run it twice; the answer must not change.
  • A variance left as a spread. Σ (x − μ)²p is in squared units. Check: the units. A spread in tents² is a variance; take the square root for σ.

Below are ten worked lines, with a comment saying what each should give. Five have a slip.