Change and uncertainty / 5 of 7

Probability and statistics

8 minOpening your notebook…

What you’ll learn

  • Explain the main idea of “Probability and statistics” in your own words.
  • Trace a concrete example and identify the assumptions behind it.
  • Apply the principle in a practice problem and recognize a common failure.

The idea, intuitively

Probability models uncertainty; statistics estimates properties from observed data. A predicted probability is a model estimate, not a guarantee. Calibration asks whether outcomes predicted at 70% occur roughly 70% of the time across many similar cases.

Use small numbers first and work one operation at a time. Track the shape and units of every quantity before doing algebra. The equations here describe idealized objects; implementing them on a computer introduces finite precision and resource constraints. You can understand the mechanism before learning every proof.

Under the hood

Conditional probability depends on the population and evidence. Bayes’ rule combines a prior with a likelihood. Sampling bias cannot generally be repaired just by collecting more data from the same biased process.

P(A∣B)=P(B∣A)P(A)P(B)P(A\mid B)=\frac{P(B\mid A)P(A)}{P(B)}
P(A ∣ B) is the probability of A after observing B. P(A) is the starting probability of A, and P(B) must be positive.
A useful caution

Correlation alone does not establish causation.

A worked example

If 1% of messages are malicious, a detector with a 5% false-positive rate may produce many false alerts even when it catches most malicious messages.

How to use this way of thinking

Check a symbolic result with a numeric example, then consider an edge case such as zero, a very large value, or an incompatible shape. Explain what each symbol means rather than memorizing the equation. If a result surprises you, inspect the assumptions and the units first.

Try it yourself

Compute the mean of 2, 4, and 9. Why might the median help?

Key takeaways

  • About 80% of comparable predictions succeed
  • Correlation alone does not establish causation.
  • Check the assumptions with a small example before applying this idea to a larger system.

Check your understanding

0/2 checked

Use feedback to learn. Quiz scores and lesson completion are tracked separately.

1What does a well-calibrated 0.8 prediction mean?
2True or false: Correlation alone establishes a causal relationship.
Go to lesson completion

Further reading

Original papers and reference material for this school. External resources may be in English and require internet access.

Mathematics for Machine Learning (open textbook) (opens a new tab)

Finish this lesson

Mark this lesson complete when you’re ready to continue.

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close