Set Notation
Circles, overlaps and shading -- a compact language for describing exactly which outcomes an event contains.
Describing events with sets
You can use set notation to describe events within a sample space. This lets you abbreviate probability statements that would otherwise need a full sentence.
The symbol $\mathscr{E}$ is used to represent the whole sample space — every possible outcome. Events $A$ and $B$ are drawn as circles inside a rectangle representing $\mathscr{E}$.
Intersection: A and B
The event "$A$ and $B$" is written $A\cap B$. The $\cap$ symbol is the symbol for intersection.
If $A$ and $B$ are independent, $\mathrm{P}(A\cap B) = \mathrm{P}(A)\times \mathrm{P}(B)$.
If two events $A$ and $B$ are mutually exclusive, then their intersection is the empty set, $\varnothing$. You can write $A\cap B=\varnothing$ — there are no outcomes in both at once.
Union: A or B
The event "$A$ or $B$" is written $A\cup B$. The $\cup$ symbol is the symbol for union.
If $A$ and $B$ are mutually exclusive, then $\mathrm{P}(A\cup B) = \mathrm{P}(A)+\mathrm{P}(B)$ — there's no overlap to double-count.
Complement: not A
The event "not $A$" is written $A'$. This is also called the complement of $A$.
$\mathrm{P}(A') = 1-\mathrm{P}(A)$. Events $A$ and $A'$ are always mutually exclusive — an outcome can never be both in $A$ and not in $A$.
Worked example
$n(C)$ is notation for the number of outcomes in $C$: $n(C)=15$ students do coding, and $n(C\cap D)=3$ of those also do data analysis, so $C$-only $=15-3=12$ and $D$-only $=9-3=6$.
$C'\cap D$ is the set of outcomes not in $C$ but in $D$ — on the diagram, that's the part of circle $D$ that lies outside circle $C$. Reading intersections with a complement directly off a correctly filled Venn diagram avoids sign errors that creep in when working from the formula alone.
Check yourself
A tutor group has 10 students, labelled 1 to 10. $F$ is the event that a student plays a musical instrument, where $F=\{1,3,4,6,8,9\}$. $D$ is the event that a student is on the school's debate team, where $D=\{2,4,6,9,10\}$. List the outcomes in $F\cap D$ and $F\cup D$, and find $\mathrm{P}(F')$.