The probability tree and the law of total probability
The probability tree and the law of total probability
In a probability tree each stage of the experiment is a column of branches. The probability on a branch in the second stage is a conditional probability: the probability of that outcome given the path that led to it. So after each outcome of the first stage the probabilities can differ.
At a school of the students are boys.
20% of the boys are active in a youth movement.
30% of the girls are active in a youth movement.
A student is chosen at random.
- The first stage: boy or girl – and .
- The second stage after “boy”: active – this is , and not active .
- The second stage after “girl”: active – this is , and not active .
- The branches leaving one point are all the possibilities there, so their probabilities add up to 1.
A path in the tree is an intersection: “a boy and active”. Its probability is the product of the probabilities on its branches – exactly the formula of the last lesson, :
- An active boy: .
- An active girl: .
The probabilities of all the paths add up to 1: every student is on exactly one path.
What is the probability that a student chosen at random is active in a youth movement? The event “active” is made of two disjoint paths – an active boy and an active girl – so they are added:
This is the law of total probability for two events:
The law is a weighted mean of the conditional probabilities: 20% and 30%, with the weights and . So the result, 26%, lies between 20% and 30%, and nearer to 30% – there are more girls.
In the area model the whole square is 1. The boys’ strip is wide, and the girls’ ; each strip is cut by the probabilities after it:
The marked area is all the active students: a low rectangle in the narrow strip and a taller one in the wide strip, .
In an experiment of several stages the tree goes on with a column for each stage, and the probability on a branch can depend on the whole path before it.
A basketball player takes three free throws, one after another.
On the first throw she scores with probability .
After a score she scores on the next throw with probability .
After a miss she scores on the next throw with probability .
The paths of “exactly two scores” are marked:
- Score, score, miss: .
- Score, miss, score: .
- Miss, score, score: .
The probability of exactly two scores: .
A factory has two machines.
Machine A makes 60% of the parts, and machine B – 40%.
5% of machine A’s parts are defective, and 10% of machine B’s.
A part is chosen at random from all the factory’s parts.
Write the probabilities on the branches and each path’s probability, and mark the paths of “the part is defective”.
What is the probability that the part was made by machine A and is defective?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
What is the probability that the part is defective?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
Explain why the branch “defective” after “machine B” says , and not .
Three boxes, , and , hold black and white balls.
Box holds two black balls and three white ones.
Box holds three black balls and two white ones.
Box holds four black balls and one white one.
A box is chosen at random, and one ball is taken from it at random.
Complete the tree, and work out the probability of taking a white ball.
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
The probability that it rains today is .
If it rains today, the probability that it rains tomorrow too is .
If it does not rain today, the probability that it rains tomorrow is .
What is the probability that it rains tomorrow?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
Yossi plays three games of backgammon, one after another. In each game he wins or loses (no draws).
In the first game he wins with probability .
If Yossi won a game, the probability that he wins the next one is .
If he lost a game, the probability that he loses the next one too is .
Complete the tree.
What is the probability that Yossi wins all three games?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
What is the probability that Yossi loses the second game and wins the third?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power