1.3.6 · D3Basic Data & Probability

Worked examples — Probability basics — sample space, events, P(E) = favourable - total

2,571 words12 min readBack to topic

This page is a practice arena. The parent note built the machinery; here we throw every kind of case at it — normal counts, the two edge cases (probability and probability ), the trap of unequal outcomes, "or"/"and" overlaps, a word problem, and an exam twist — and solve each fully.

Before a single number: let us agree on the only three quantities we ever compute.

Recall The whole machine in one line

We run an experiment. We list every equally-likely outcome — that set is the sample space , and its size is written . We circle the outcomes we care about — that subset is the event , size . Then just means "number of things in". Nothing else happens on this page except counting and dividing.


The scenario matrix

Probability problems, once you strip the story away, fall into a small number of case classes. This table lists them all. Each worked example below is tagged with the cell it fills, so by the end you will have seen every row.

# Case class What makes it tricky Example that covers it
A Ordinary count, one experiment nothing — the base case Ex 1
B Degenerate: impossible event () the event is the empty set Ex 2
C Degenerate: sure event () the event is all of Ex 2
D Outcomes not equally likely naive is illegal Ex 3
E "OR" — union with overlap double-counting shared outcomes Ex 4
F "AND" — intersection must keep only shared outcomes Ex 4
G Complement — "at least one" count the easy opposite instead Ex 5
H Ordered vs unordered sample space choosing the right Ex 6
I Word problem (real-world) translating words into and Ex 7
J Exam twist — combine several rules staged reasoning Ex 8

Two visual anchors first, then the examples.

Figure — Probability basics — sample space, events, P(E) = favourable - total

Read the picture as: a big box is the whole sample space ; the coloured blob inside is the event . Probability is literally how much of the box the blob covers. An empty blob covers nothing → . A blob filling the box → . Everything else sits strictly between.


Example 1 — the base case · cell A


Example 2 — both degenerate cases at once · cells B and C


Example 3 — the equally-likely trap · cell D


Example 4 — "OR" and "AND" together · cells E and F


Example 5 — the complement shortcut · cell G


Example 6 — choosing ordered vs unordered · cell H


Example 7 — real-world word problem · cell I


Example 8 — exam twist: staged reasoning · cell J


Recall check

Recall Which rule for which word?

"Exactly one head from two coins" — legal to count directly? ::: Yes, on these four are equally likely; answer . Why is built on outcomes, not ? ::: The possible sums are not equally likely; the ordered pairs are. Fast way to do "at least one" ::: Use the complement: . " OR " count fix when they overlap ::: Take the union and count each shared outcome only once (inclusion–exclusion).


Prerequisite / next links: Parent topic · Sample Space · Events and Set Theory · Complement of an Event · Mutually Exclusive Events · Axioms of Probability · Counting Principles · Conditional Probability · Random Variables · Law of Large Numbers