4 - Unit10.Probability
4 - Unit10.Probability
The set of all possible outcomes (results) of a random experiment is called the
sample space (S).
1, 2, 3, 4, 5 and 6 are elementary events
Impossible event: event that never occurs, whatever the result of the
experiment is. The empty set is an impossible event.
A B ”both A and B will occur”, that is, A B is the set of all outcomes
in S that belong to both A and B.
A 1, 2, 3, 4 B 2, 4, 6
A B 1, 2, 3, 4, 6
A B 2, 4
AA AA S
Exercise 2
P 0 P S 1 0 P A 1
P A P A 1
P A 1 P A
P 1 P 2 P 3 P 4 P 5 P 6 1
If A 1, 3, 5 , P A P 1 P 3 P 5
A 2, 4, 6 , and P A 1 P A
If we want to find these probabilities, we need to know how the dice is.
a) If it is a fair dice, the six elementary events have the same probability.,
they are equally likely.
1
P 1 P 2 P 3 P 4 P 5 P 6 6
1 1
P A P 1 P 3 P 5 3
6 2
P A 1 P A 1
1 1
2 2
b) If it is a biased dice, the six elementary events doesn’t have the same
probability.
P A P 1 P 3 P 5 0.2 0.15 0.1 0.45
P A 1 P A 1 0.45 0.55
Exercise 3
b) If we rolled the biased dice of the previous example, what would the
probabilities of A and A be?
Theoretical probability
You can calculate the theoretical probability when an event is fair or unbiased.
For example:
A fair coin is thrown.
1 one head,
Probability of a fair coin landing on ‘heads’ .
2 two outcomes
Example: A spinner has 8 sides, of which 4 show squares, 3 show triangles, and 1
shows a circle. The spinner is spun 400 times. Find the number of times the
spinner is expected to show
a) a square b) a triangle
4
a) Expected number of squares 400 P square 400 200
8
3
b) Expected number of triangles 400 P triangle 400 150
8
Experimental probability
Experimental probability is also known as relative frequency.
The more trials that are carried out the more reliable the estimate of
probability.
Example: Dan suspects that a particular dice has a bias towards the number 3.
Dan rolls the dice 30 times and gets these results
4 3 3 3 6 5 1 3 2 5
1 3 4 5 3 3 6 2 5 4
6 3 1 3 6 5 3 2 4 3
Exercise 4
Exercise 5
A jar contains seven marbles, all the same size. Three are red and four are
green. If a marble is chosen at random, find each probability:
Exercise 6
A pair of dice is rolled and we write down the difference of the scores.
Exercise 7
Exercise 8
Jim carries out an experiment. He throws a coin 320 times. The coin lands on
tails 114 times. Is the coin fair? Explain your answer.
Now, what is the probability of obtaining a number on the dice that is even or
less than 2?
Will this simple addition rule hold true for all problems? Before you say “yes”
consider the next example:
For the event (A or B) in our example, we observe that the outcome “2” is found
in event A and in event B. Therefore, we may describe “rolling a 2” as the event
(A and B).
The simple addition rule does not work for the event (A or B) because we have
counted the event (A and B) twice: first in event A, then again in event B.
In order to count the event (A and B) only once, we must subtract the number of
shared elements, n(A or B), from the overall number of elements in (A or B).
n A or B 3 2 1 4
n S 6 6 6 6
n A or B
Since P A or B , we can write a general rule:
n S
P A or B P A P B P A and B
P A B P A P B P A B
We found that
P A or C P A P C
P A or B P A P B P A and B
P A C P A P C
P A B P A P B P A B
Exercise 10
Exercise 11
What is the probability that a person in the town chosen at random subscribes
to the Times or the Chronicle?
Exercise 12
a) P A B P A b) P A B P A c) P A B P A
Exercise 13
In a sophomore class of 340 students, some students study Spanish, some study
French, some study both languages, and some study neither language. If
P(Spanish) = 0.70, P(French)= 0.40, and P(Spanish and French) = 0.25, find:
Before studying the probability of events based on two or more activities, let us
study ways to count the number of elements or outcomes in a sample space for
two or more activities.
For example:
We will use letters to represent the five flavours of ice cream (V, C, S, P, R) and
the two toppings (F, M). We can show the number of elements in the sample
space in two ways:
1. Tree diagram.
It is usual to order a sundae by telling the clerk the flavour of ice cream
first and then the type of topping. This suggests a list of ordered pairs.
The first component of the ordered pair is the ice cream flavour, and the
second component is the type of topping. The set of pairs is shown below.
V, F , V, M, C, F , C, M , S, F , S, M , P, F , P, M , R, F , R, M
5 x 2 = 10
Suppose the store offered 30 flavours of ice cream and seven possible toppings.
To find the number of elements in the sample space, we multiply:
If one activity can occur in any of m ways and, following this, a second
activity can occur in any n ways, then both activities can occur in the order
given in m x n ways.
We can extend this rule to include three or more activities by extending the
multiplication process. We can also display three or more activities by extending
the branches on a tree diagram, or by listing ordered elements such as ordered
triples and ordered quadruples.
Exercise 14
c) If the pizza, frankfurters, yogurt and fruit salad have been sold out, how
many different meals can Peter select from the remaining menu?
A sack contains four marbles: one red, one blue, one white, one green. One
marble is drawn and placed on the table. Then a second marble is drawn and
placed to the right of the first. Draw a tree diagram to show all of the possible
outcomes for this experiment.
When we roll two dice, the number obtained on the second die is in no way
determined by the result obtained on the first dice. When we toss two coins,
the face that shows on the second coin is in no way determined by the face that
shows on the first coin.
When the result of one activity in no way influences the result of a second
activity, the results of these activities are called independent events.
In cases where two events are independent, we may extend the counting
principle to find the probability that both independent events occur at the same
time.
Use the counting principle to find the number of elements in the sample
space. There are 6 ways in which the first dice can land and 6 ways in
which the second dice can land. Therefore, there are 6 x 6 or 36 pairs of
numbers in the sample space S.
There is only one face on each dice that has a 5. Therefore, there is 1 x 1
or 1 pair in the event F.
1
P 5 on both dice
36
The probability of 5 on both dice can also be determine by using the probability
of each of the independent events.
1 1 1
P 5 on both dice P 5 on first P 5 on sec ond
6 6 36
Note: Not all events are independent, and this simple product rule cannot be
used to find the probability when events are not independent.
Exercise 16
A quiz consists of true-false questions only. Harry has not studied, and he
guesses every answer. Find the probability that he will guess correctly to get a
perfect score if the test consist of:
Exercise 17
We have two decks of Spanish cards and we draw one from each deck.
a) What is the probability that both card drawn are less than 7?
b) What is the probability that both card drawn are picture cards?
Exercise 18
Find the probability that a car travelling on Main Street be faced with each set
of given conditions at the two traffic lights shown.
Without replacement
Two cards are drawn at random from a Spanish deck of 40 cards.
In this situation, a single card is drawn from a deck of 40 cards, and then a
second card is drawn from the remaining 39 cards in the deck.
On the first draw, there are four kings in the deck of 40 cards, so
4
P first king
40
If a second card is drawn without replacing the first king selected, there are
now only three kings in the 39 cards remaining. Therefore we are considering
the probability of drawing a king, given that a king has already been drawn.
3
P second king second
39
4 3 1 1 1
P both kings P first king P second king
40 39 10 13 130
This is called a problem without replacement because the firs king drawn was
not placed back in the deck. These are dependent events because the
probability of a king on the second draw depends on whether or not a king
appeared on the first draw.
With replacement
A card is drawn at random from a Spanish deck of 40 cards, the car is placed
back into the deck, and a second card is then drawn and replaced.
In this situation, it is clear that the deck contains 40 cards each time the card
is drawn and that the same card could be drawn twice.
What is the probability that the card drawn each time is a king?
4
P first king
40
If the first king drawn is now placed back into the deck, then, on the second
draw, there are again four kings in the deck of 40 cards.
4
P sec ond king
40
4 4 1 1 1
P both kings P first king P second king 0.01
40 40 10 10 100
This is called a problem with replacement because the first card drawn was
placed back into the deck. In this case, the events are independent because the
probability of a king on the second draw does not depend on whether or not a
king appeared on the first draw. Since the card drawn is replaced, the number
of cards in the deck and the number of kings in the deck remain constant. In
this case;
P A and B P A P B
Rolling two dice is similar to drawing two cards with replacement because the
number of faces on each dice remains constant, as did the number of cards in
the deck. Typical problems with replacement include rolling dice, tossing coins
(each coin always has two sides), and spinning arrows.
Conditional Probability
The previous discussion involved the concept of conditional probability. For both
dependent and independent events, in order to find the probability of A followed
by B, it is necessary to calculate the probability that B occurs given that A has
occurred.
P A B
P B / A
P A
For example:
Suppose a box contains three red marbles and two green marbles. Two marbles
are drawn without replacement. What is the probability that the first marble is
red and the second one is green?
Let R be the event “red marble” and G be the event “green marble”.
3 2 3
P R G P R P G/ R
5 4 10
Exercise 19
A jar contains two red and five yellow marbles. A marble is drawn at random and
then replaced. A second draw is made at random. Find the probability that:
Exercise 20
A jar contains two red and five yellow marbles. A marble is drawn at random.
Then without replacement, a second marble is drawn at random. Find the
probability that:
Paul has a bag of hard candies: three are lemon (L) and two are grape (G). He
eats two of the candies while waiting for a bus, selecting then at random one
after another.
a) Draw a tree diagram or list the sample space of all possible outcomes
showing which candies are eaten.
b) Find the probability of each of the following outcomes:
i) both candies are lemon ii) neither candy is lemon
iii) the candies are the same flavour iv) at least one candy is lemon
c) What is the probability that the second candy that Paul ate was lemon
given that the first was grape?
Exercise 22
One hundred boys and one hundred girls were asked to name the current
Secretary of State. Thirty boys and sixty girls knew the correct name. One of
these boys and girls is selected at random.
a) What is the probability that the person selected knew the correct name?
b) What is the probability that the person selected is a girl, given that that
person knew the correct name?
c) What is the probability that the person selected knew the correct name,
given that the person is a boy?
Exercise 23