<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>7288</id>
  <path>/www/nrich/html/content/id/7288/</path>
  <resourceTypeID>3</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
I was in the Bibliotèque the other day and I heard a couple chatting. At first I thought, &quot;Who are these people, it&amp;#39;s a bibliotèque, don&amp;#39;t they know you&amp;#39;re supposed to be quiet?&quot;. Then I realised they were my good friends Elle and Joe.&lt;br&gt;&lt;/br&gt;
Elle: &quot;Joe, what&amp;#39;s the deal with tree diagrams?&quot;&lt;br&gt;&lt;/br&gt;
Joe: &quot;What, those things we use for probability?&quot;&lt;br&gt;&lt;/br&gt;
Elle: &quot;Yeah the ones that look like trees.&quot;&lt;br&gt;&lt;/br&gt;
Joe: &quot;What do you mean what&amp;#39;s the deal with tree diagrams? They&amp;#39;re easy, you just multiply probabilities across and add probabilities vertically.&quot;&lt;br&gt;&lt;/br&gt;
Elle: &quot;I know that, but why? It&amp;#39;s all pretty abstract to me.&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
That got me thinking, is this a common problem? Do people mindlessly draw tree diagrams without really understanding the concepts behind them?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Let&amp;#39;s take a couple of examples back to first principles and see if we can gain a deeper insight into tree diagrams and their use for calculating probabilities.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;What is a Tree Diagram?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A tree diagram is simply a way of representing a sequence of events. Tree diagrams are particularly useful in probability since they record all possible outcomes in a clear and uncomplicated manner.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
Let&amp;#39;s take a look at a simple example, flipping a coin and then rolling a die. We might want to know the probability of getting a Head and a 4.&lt;br&gt;&lt;/br&gt;
If we wanted, we could list all the possible outcomes:&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;text-align: center; font-style: italic;&quot;&gt;(H,1) (H,2) (H,3) (H,4) (H,5) (H,6)&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(T,1) (T,2) (T,3) (T,4) (T,5) (T,6)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: center; font-style: italic;&quot;&gt;Probability of getting a Head and a 4:&lt;/div&gt;
&lt;div style=&quot;text-align: center; font-style: italic;&quot;&gt;P(H,4) = $\frac{1}{12}$&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Here is one way of representing the situation using a tree diagram. To save time, I have chosen not to list every possible die throw (1, 2, 3, 4, 5, 6) separately, so I have just listed the outcomes &quot;4&quot; and &quot;not 4&quot;:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;mdo:image alt=&quot;tree diagram&quot; height=&quot;280&quot; src=&quot;diag1.png&quot; width=&quot;385&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Each path represents a possible outcome, and the fractions indicate the probability of travelling along that branch. For each pair of branches the sum of the probabilities adds to 1.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;And&quot; Means Multiply&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;So how might we work out P(H,4) from the tree diagram? We could word this as the probability of getting a Head &lt;span style=&quot;font-style: italic;&quot;&gt;and then&lt;/span&gt; a 4. This is the green path.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Half the time, I expect to travel along the first green branch.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;mdo:image alt=&quot;halved rectangle&quot; height=&quot;215&quot; src=&quot;diag2.png&quot; width=&quot;279&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Then, on one sixth of those occasions, I will also travel along the second green branch. We can think of this as $\frac{1}{6} \text{ of } \frac{1}{2}$.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;mdo:image alt=&quot;rectangle in twelve pieces&quot; height=&quot;215&quot; src=&quot;diag3.png&quot; width=&quot;279&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;$\frac{1}{6} \text{ of } \frac{1}{2} = \frac{1}{6}$ x  $\frac{1}{2} = \frac{1}{12}$&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;So this is why Joe said that you multiply across the branches of the tree diagram.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;mdo:image alt=&quot;Tree diagram showing probability calculations&quot; height=&quot;276&quot; src=&quot;diag5.png&quot; width=&quot;501&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div&gt;&quot;And&quot; only means multiply if events are independent, that is, the outcome of one event does not affect the outcome of another. This is certainly true for our example, since flipping the coin has no impact on the outcome of the die throw.  &lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;Or&quot; Means Add&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now let&amp;#39;s consider the probability of getting a Head &lt;span style=&quot;font-style: italic;&quot;&gt;or&lt;/span&gt; a 4.&lt;br&gt;&lt;/br&gt;
We are using the word &quot;or&quot; in its mathematical sense to mean &quot;Head or 4 or both&quot;, as opposed to the common usage which often means &quot;either a Head or a 4&quot;:&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(H,1) (H,2) (H,3) (H,4) (H,5) (H,6) (T,4)&lt;/span&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
So P(H or 4) is $\frac{7}{12}$&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
Again, we can work this out from the tree diagram, by selecting every branch which includes a Head or a 4:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;mdo:image alt=&quot;Tree diagram: heads and fours selected&quot; height=&quot;276&quot; src=&quot;diag4.png&quot; width=&quot;477&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Each of the ticked branches shows a way of achieving the desired outcome. So P(H or 4) is the sum of these probabilities:&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
$P(H\text{ or }4) = P(H,4) + P(H, \text{ not }4 ) + P(T, 4) = \frac{1}{12} + \frac{5}{12} + \frac{1}{12} = \frac{7}{12}$.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
So this is why Joe said that you add down the ends of the branches.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Picturing the Probabilities&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Imagine I roll an ordinary die three times, and I&amp;#39;m interested in the probability of getting one, two or three sixes.&lt;br&gt;&lt;/br&gt;
I might draw a tree diagram like this:&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;mdo:image alt=&quot;6 and not a 6 tree diagram&quot; height=&quot;487&quot; src=&quot;diag6.png&quot; width=&quot;556&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
Check that you agree with the probabilities at the end of each branch before reading on.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
We can now work out:&lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;P(three sixes) = $\frac{1}{216}$&lt;br&gt;&lt;/br&gt;
P(exactly two sixes) = $\frac{15}{216}$&lt;br&gt;&lt;/br&gt;
P(exactly one six) = $\frac{75}{216}$&lt;br&gt;&lt;/br&gt;
P(no sixes) = $\frac{125}{216}$&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Again, check that you understand where these probabilities have come from before reading on.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;To really check your understanding, think about the outcomes that contribute to each of the probabilities on the tree diagram. For example, P(6, not 6, 6) is $\frac{5}{216}$, because out of the 216 total outcomes there are five outcomes which satisfy (6, not 6, 6):&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;6, 1, 6&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;6, 2, 6&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;6, 3, 6&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;6, 4, 6&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;6, 5, 6&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Can you explain why there are 25 outcomes that satisfy (not 6, not 6, 6)?&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;What about the other probabilities on the tree diagram?  &lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
I hope this article helps you to understand what&amp;#39;s happening next time you come across a tree diagram, and that it helps you to construct your own tree diagrams to solve problems.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;Click&lt;/span&gt; &lt;a href=&quot;http://nrich.maths.org/public/leg.php?group_id=40&amp;amp;code=206#results&quot; style=&quot;font-style: italic;&quot;&gt;here&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;for a selection of NRICH problems where tree diagrams can be used.&lt;/span&gt; &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>An Introduction to Tree Diagrams</title>
  <description>This article explains how tree diagrams are constructed and helps
you to understand how they can be used to calculate probabilities.</description>
  <spec_group>Probability
    <specifier>Tree diagrams</specifier>
  </spec_group>
  <spec_group>Probability
    <specifier>Probability</specifier>
  </spec_group>
</resource>