Courses / Mathematics I
Data Analysis and Probability

Introduction to Probability

Mathematics I 216 words Free to read

Quantifying Uncertainty

Probability measures how likely an event is, on a scale from 0 (impossible) to 1 (certain). It is the mathematics of uncertainty behind statistics and machine learning.

Key structural terms:

TermDefinition & Example
Sample Space (SS)All possible outcomes (e.g., die roll: {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\})
Event (EE)A subset of outcomes (e.g., rolling even: {2,4,6}\{2, 4, 6\})

For equally likely outcomes, probability is a ratio: P(E)=favorable outcomestotal outcomesP(E) = \frac{\text{favorable outcomes}}{\text{total outcomes}} For a fair die, P(even)=36=12P(\text{even}) = \frac{3}{6} = \frac{1}{2}.

Rules and Pitfalls

Probability obeys axioms: P(E)0P(E) \ge 0, P(S)=1P(S) = 1, and for mutually exclusive events (cannot both happen), probabilities add: P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B).

From these come vital operational rules:

RuleFormulaNotes
ComplementP(not E)=1P(E)P(\text{not } E) = 1 - P(E)Best for "at least one" problems
AdditionP(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)Prevents double-counting overlap
Common pitfall: Adding P(A)+P(B)P(A) + P(B) when events can overlap. Simple addition is only for mutually exclusive events; otherwise, you must subtract the intersection or risk exceeding 1.
The whole sample space drawn as a strip of length exactly one

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

13practice questions
2interactive scenes

Data Analysis and Probability