Example — School of 1024 students: all three representations

In a school of 10241024 students there are two streams (science AA, classics A\overline{A}) and the students may play a sport BB or not B\overline{B}. Data: P(A)=0,4P(A)=0,4 (science), P(B)=0,5P(B)=0,5 (sport), P(AB)=0,1P(A\cap B)=0,1 (science and sport). Let us build the three representations step by step.

Step 1 — Venn \to Table. From the Venn diagram we obtain the four zones:

P(AB)=0,1,P(AB)=0,40,1=0,3,P(A\cap B)=0,1,\qquad P(A\cap\overline{B})=0,4-0,1=0,3,

P(AB)=0,50,1=0,4,P(AB)=10,8=0,2.P(\overline{A}\cap B)=0,5-0,1=0,4,\qquad P(\overline{A}\cap\overline{B})=1-0,8=0,2.

We transfer them into the cells of the table (absolute numbers == probability ×1024\times 1024):

AA (science)A\overline{A} (classics)Total
BB (sport)0,11024=1020,1\cdot 1024 = 1020,41024=4100,4\cdot 1024 = 410512512
B\overline{B} (no sport)0,31024=3070,3\cdot 1024 = 3070,21024=2050,2\cdot 1024 = 205512512
Total41041061461410241024

(The numbers are rounded to the nearest integer: 10241024 is not divisible by 1010.) The marginals are the row and column sums: P(A)=410/10240,4P(A)=410/1024\approx 0,4, P(B)=512/1024=0,5P(B)=512/1024=0,5.

Step 2 — Table \to Tree. To obtain the tree (conditioned on AA) we compute the conditional frequencies “cell over the total of the marginal of AA”. From the table:

P(BA)=P(AB)P(A)=0,10,4=14,P(BA)=34,P(B\mid A) = \frac{P(A\cap B)}{P(A)} = \frac{0,1}{0,4} = \tfrac{1}{4},\qquad P(\overline{B}\mid A) = \tfrac{3}{4},

P(BA)=0,40,6=23,P(BA)=13.P(B\mid \overline{A}) = \frac{0,4}{0,6} = \tfrac{2}{3},\qquad P(\overline{B}\mid \overline{A}) = \tfrac{1}{3}.

The tree turns out to be:

The tree conditioned on AA: on the branches the conditional probabilities, on the leaves in red the branch products (the joint probabilities). Check: 0,1+0,3+0,4+0,2=10,1+0,3+0,4+0,2=1 ✓.

Conclusion. The three pictures — Venn (four zones), table (2×22\times 2 cells), tree (four leaves) — carry exactly the same information: 0,10,1, 0,30,3, 0,40,4, 0,20,2. Only the perspective changes: absolute (Venn/table) versus conditional (tree).

Topics: Probability
Concepts: Moving between representations · Conditional probability · Joint probability
Methods: Tree diagram · Venn diagram probability · Moving between representations · Contingency table
Skills: Probability calculation · Modelling