Tree representation of events

Often we want to find the probability of events like "the person has green eyes but is not tall", or "it is neither windy nor rainy", and so on. If we look closer at structure of such statements, we see that they are composed of two different events, which are combined by logical operators.

For example, if we set EE="green eyes" and FF="tall", then the event "the person has green eyes but is not tall" can be expressed as "the person has green eyes AND is NOT tall". And this translates into the set theory language EFE\cap F^\prime.

So, given two possible events EE and FF, what are the possible logical statements we can express using AND, OR and NOT? To find out, it is useful to organise the events in a tree (see figure below).

Of course we could have started with event FF, followed by event EE. Later it will often become clear from the context, which event to choose first. Important is how we have to read the tree:

Recipe 1

Each line in the tree is called a branch. The tree above has 66 branches. Following the branches from top to bottom, we get a path. The tree above has 44 paths, which we denote by the events they pass: EF,EFEF, EF^\prime, EFE^\prime F, and EFE^\prime F^\prime.

The convention is to combine the events in the path using the AND operator, or in set notation, with a \cap. For example, following the right path, we get EFE^\prime\cap F^\prime, that is, "EE occurred not and FF occurred not".

Following each path, we get the events EF,EF,EFE\cap F, E\cap F^\prime, E^\prime\cap F, and EFE^\prime \cap F^\prime (see the Venn-diagrams above).

Paths are combined using the OR operator, or in set notation with a \cup. For example, combining the paths EFEF and EFEF^\prime, we get the event (EF)(EF)(E\cap F)\cup (E\cap F^\prime), which is simply EE (check out the Venn-diagrams above).

We will use such tree structures more often later. Then the whole thing should hopefully make a bit more sense.

Exercise 1

Consider the random experiment given at the top of this section, that is, selecting a person at random from a group, and EE="green eyes", FF="tall". Which paths belong to the events:

  1. The person has green eyes but is small.

  2. The person has not green eyes and is small.

  3. The person has green eyes.

  4. The person is small.

Solution
  1. EFE\cap F^\prime
  2. EFE^\prime \cap F^\prime
  3. (EF)(EF)(E \cap F)\cup (E \cap F^\prime)
  4. (EF)(EF)(E \cap F^\prime)\cup (E^\prime \cap F^\prime)

A tree organisation of events is particularly well suited for multistage experiments, where the top-down hierarchy of the tree reflects the stages. Here is a example.

Exercise 2

We flip a coin twice, and are interested in the events H1H_1="head in first flip" and H2H_2="head in second flip". Draw the tree starting with H1H_1. Express the following events with the help of paths:

  1. head in the first flip

  2. head in the second flip

  3. exactly one head

  4. at least one head

  5. at most one head

Solution
  1. Paths H1H2,H1H2H_1 H_2, H_1 H_2^\prime: event (H1H2)(H1H2)(H_1\cap H_2)\cup (H_1 \cap H_2^\prime)
  2. Paths H1H2,H1H2H_1 H_2, H_1^\prime H_2: event (H1H2)(H1H2)(H_1\cap H_2)\cup (H_1^\prime \cap H_2)
  3. Paths H1H2,H1H2H_1 H_2^\prime, H_1^\prime H_2: event (H1H2)(H1H2)(H_1\cap H_2^\prime)\cup (H_1^\prime \cap H_2)
  4. Paths H1H2,H1H2,H1H2H_1 H_2^\prime, H_1^\prime H_2, H_1 H_2: event (H1H2)(H1H2)(H1H2)(H_1\cap H_2^\prime)\cup (H_1^\prime \cap H_2) \cup (H_1 \cap H_2)
  5. Paths H1H2,H1H2,H1H2H_1 H_2^\prime, H_1^\prime H_2, H_1^\prime H_2^\prime: event (H1H2)(H1H2)(H1H2)(H_1\cap H_2^\prime)\cup (H_1^\prime \cap H_2) \cup (H_1^\prime \cap H_2^\prime)