Lesson 4 Proability
Lesson 4 Proability
PROBABILITY
Basic Terms:
Experiment Outcomes
Head
Toss a coin
or
Tail
Sample space
E,g Probability of Event A
The probability of event A is the number of ways event A can occur divided by
the total number of possible outcomes.
𝑇ℎ𝑒 𝑁𝑢𝑚𝑏𝑒𝑟 𝑂𝑓 𝑤𝑎𝑦𝑠 𝐸𝑣𝑒𝑛𝑡 𝐴 𝑐𝑎n o𝑐𝑐𝑢𝑟
Thus: P (A) =
𝑇ℎ𝑒 𝑡𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑝𝑜𝑠𝑠𝑖𝑏𝑙𝑒 𝑜𝑢𝑡𝑐𝑜𝑚𝑒𝑠
Properties
- The probability ranges between 0 and 1
- If an outcome cannot occur, its probability is 0
- If an outcome is sure, it has a probability of 1
- The sum of probability of mutually exclusive outcomes is equal to 1
P (M) +P (F) =1
Experiment 1.
A single 6-sided die is rolled. What is the probability of each outcome? What is
the probability of rolling an even number? Of rolling an odd number?
Solution…………
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 1 1
𝑃(1) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 2 1
𝑃(2) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 3 1
𝑃(3) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 4 1
𝑃(4) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 5 1
𝑃(5) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
# 𝑜𝑓 𝑤𝑎𝑦𝑠 𝑡𝑜 𝑟𝑜𝑙𝑙 𝑎 6 1
𝑃(6) = =
𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑠𝑖𝑑𝑒𝑠 6
Experiment 2.
A glass jar contains 6 red, 5 green, 8 blue and 3 yellow marbles. If a single marble
is chosen at random from the jar, what is the probability of choosing a red marble?
A green marble, a blue marble? A yellow marble?
Solution……………
Outcomes: The possible outcomes of this experiment are red, green, blue and
yellow.
Probability:
The outcome in this even are not equally likely to occur. You are more likely to
choose a blue marble than any other color. You are least likely to choose a yellow
marble.
Question 1
The blood groups of 200 people is distributed as follows: 50 have type A blood,
65 have B blood type, 70 have O blood type and 15 have type AB blood. If a
person from this group is selected at random, what is the probability that this
person has O blood type?
Solution…
group frequency
A 50
B 65
O 70
AB 15
𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑜𝑓 𝑂 𝑏𝑙𝑜𝑜𝑑
𝑃(𝑂) =
𝑇𝑜𝑡𝑎𝑙 𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦
70
𝑃(𝑂) = = 0.35
200
Question 2
Types of Events
If we don't return this card into the deck, the probability of drawing an ace on
the second pick is given by
Probability Rules/Law
When multiple events occur, if the outcome of one event DOES NOT affect the
outcome of the other events, they are called independent events.
Say, a die is rolled twice. The outcome of the first roll doesn’t affect the second
outcome. These two are independent events.
When two events, A and B, are independent, the probability of both occurring
is:
Sol….
1
P(head)=
2
1
P(3) =
6
Here’s the verification of the above answer with the help of sample space.
Our desired event is (𝑇, 𝑇) whose occurrence is only once out of four possible outcomes and
1
hence, our answer
4
- Consider another example where a pack contains 4 blue, 2 red and 3 black
pens. If a pen is drawn at random from the pack, replaced and the process
repeated 2 more times, what is the probability of drawing 2 blue pens and
1 black pen?
Solution
4
Probability of drawing another blue pen=
9
3
Probability of drawing 1 black pen =
9
4 4 3 16
Probability of drawing 2 blue pens and 1 black pen = × × =
9 9 9 243
Mutually exclusive events are those where the occurrence of one indicates the
non-occurrence of the other
OR
When two events cannot occur at the same time, they are considered mutually
exclusive.
When two events, A and B, are mutually exclusive, the probability that A or B
will occur is the sum of the probability of each event. For example: when tossing
a coin, the result can either be heads or tails but cannot be both.
Examples:
5? Solution:
1
P (2)=
6
1
P (5)
6
1 1
+
6 6
1
=
3
Example 2: A pack contains 4 blue, 2 red and 3 black pens. If 2 pens are drawn
at random from the pack, NOT replaced and then another pen is drawn. What is
the probability of drawing 2 blue pens and 1 black pen?
Solution:
𝟒
Probability of drawing 1 blue pen=
𝟗
𝟑
Probability of drawing another blue pen=
𝟖
𝟑
Probability of drawing 1 black pen=
𝟕
𝟒 𝟑 𝟑 𝟏
Probability of drawing 2 blue pens and 1 black pen= × × =
𝟗 𝟖 𝟕 𝟏𝟒
Compound probability is when the problem statement asks for the likelihood of
the occurrence of more than one outcome.
Example:
1. From the records at an STC, 4 girls had HIV, 4 other girls had gonorrhea
while 2 girls have both gonorrhea and HIV. What is the probability that
any girl selected will have.
Solution:
4
Probability of selecting a 6 =
52
1
Probability of selecting both a black card and a 6 =
26
26 4 1
= + −
52 52 26
30 1
= −
52 26
28
=
52
7
=
13
3. Conditional Probability
Conditional probability is the probability that an event will occur, when another
event is known to occur or to have occurred. E.g. Probability of event A given
event B. Conditional probability deals with further defining dependence of events
by looking at probability of an event given that some other event first occurs.
Make:
A= Headache
B= Insomnia
0.05
=
0.14
= 0.357
Example 2: In a class, 40% of the students study math and science. 60% of the
students study math. What is the probability of a student studying science given
he/she is already studying math?
Solution
P (M and S) = 0.40
P (M) = 0.60
Contingency Table
A table showing the distribution of one variable in rows and another in columns,
used to study the correlation between the two variables.
Example of Using a Contingency Table to Determine Probability
The following Contingency Table shows the number of Females and Males who
each have a given eye color. Note that, for example, the table show that 20
Females have Black eyes and that 10 Males have Gray eyes. Also notice that the
Table shows the totals. We have 85 Females in the dataset. We have 82 Males in
the dataset. We have a total of 167 People in the dataset. Finally, this table also
shows the totals for eye color. For example, 45 People have Black eyes.
Questions:
The Table shows us that 45 People have Black eyes out of the total 167
people who were part of this data.
The Table shows us that 20 Females have black eyes out of the 85 total females
in the dataset.
𝟐𝟎
𝑷(𝒃𝒍𝒂𝒄𝒌 𝒆𝒚𝒆𝒔 |𝐟𝐞𝐦𝐚𝐥𝐞 ) = =. 𝟐𝟑𝟓 𝒐𝒓 𝟐𝟑. 𝟓%
𝟖𝟓
The above states that the probability of a person having black eye GIVEN that
they are female is 20/85.
This question deals with a probability concept called the “OR”. There is
a formula for OR that is:
In this example, we are looking at two things: we are looking at BLUE EYES
and MALE
12
(𝐵𝑙𝑢𝑒 𝑒𝑦𝑒𝑠 𝐴𝑁𝐷 𝑀𝑎𝑙𝑒) =
167
Therefore:
Common Question: Why do we subtract the probability of Male and blue eyes?
The answer is that when we count up all the males and then we count up all the
people with blue eyes, there is some overlap because some males have blue eyes.
This means we counted them twice and so we have to subtract the extra count.
(𝐴 𝐴𝑁𝐷 𝐵) = (𝐴 | B) × (𝐵)
10 20
= × = .5 × .12 = .06 or about 6%
20 167
OR
You can also do this directly from the table without the formula:
Example 2
Suppose a study of speeding violations and drivers who use cell phones
produced the following fictional data:
NB: The total number of people in the sample is 755. The row totals are 305
and 450. The column totals are 70 and 685. Notice that 305 + 450 = 755 and 70
+ 685 = 755.
3. Find P(Person had no violation in the last year AND was a car phone
user).
𝟐𝟖𝟎
𝟕𝟓𝟓
4. Find P(Person is a car phone user OR person had no violation in the last
year).
305 685 280 710
( + )− =
755 755 755 755
5. Find P(Person is a car phone user GIVEN person had a violation in the
last year).
𝟐𝟓 (The sample space is reduced to the number of persons who had a
𝟕𝟎
violation.)
6. Find P(Person had no violation last year GIVEN person was not a car
phone user)
𝟒𝟎𝟓
𝟒𝟓𝟎
The sample space is reduce to the number of persons who were not car phone
users
Probability Tree Diagrams
You are off to soccer, and love being the Goalkeeper, but that
depends who is the Coach today:
Sam is Coach more often ... about 6 out of every 10 games (a probability of
0.6).
Now, if you get Sam, there is 0.5 probability of being Goalie (and
0.5 of not being Goalie):
If you get Alex, there is 0.3 probability of being Goalie (and 0.7 not):
(When we take the 0.6 chance of Sam being coach and include the
0.5 chance that Sam will let you be Goalkeeper we end up with a
0.3 chance.)
Check
One final step: complete the calculations and make sure they add to 1:
0.3 + 0.3 + 0.12 + 0.28 = 1
Examples
Venn Diagram
Set: Is a collection of things
e.g. The items you wear is a set: these include shoes , socks, hat , shirt, pants ,
and so on.
One can write sets inside curly brackets like this:
{𝑠𝑜𝑐𝑘𝑠, 𝑠ℎ𝑜𝑒𝑠, 𝑝𝑎𝑛𝑡𝑠, 𝑤𝑎𝑡𝑐ℎ𝑒𝑠, 𝑠ℎ𝑖𝑟𝑡𝑠, … … . . }
{𝑎𝑙𝑒𝑥, 𝑏𝑙𝑎𝑖𝑟, 𝑐𝑎𝑠𝑒𝑦, 𝑑𝑟𝑒𝑤, 𝑒𝑟𝑖𝑛, 𝑓𝑟𝑎𝑛𝑐𝑖𝑠, 𝑔𝑙𝑒𝑛, ℎ𝑢𝑛𝑡𝑒𝑟, 𝑖𝑟𝑎, 𝑗𝑎𝑑𝑒}
Each friend is an element (or member) of the set
Lets say that alex, casey, drew and hunter play Soccer.
𝑆𝑜𝑐𝑐𝑒𝑟 = {𝑎𝑙𝑒𝑥, 𝑐𝑎𝑠𝑒𝑦, 𝑑𝑟𝑒𝑤, ℎ𝑢𝑛𝑡𝑒𝑟}
And casey, drew and jade play Tennis
𝑇𝑒𝑛𝑛𝑖𝑠 = {𝑐𝑎𝑠𝑒𝑦, 𝑑𝑟𝑒𝑤, 𝑗𝑎𝑑𝑒}
Soccer Tennis
1. Union (“OR”)
This is called a “Union” of sets and has the separate symbol ∪:
𝑆𝑜𝑐𝑐𝑒𝑟 𝑈 𝑇𝑒𝑛𝑛𝑖𝑠 = {𝑎𝑙𝑒𝑥, 𝑐𝑎𝑠𝑒𝑦, 𝑑𝑟𝑒𝑤, ℎ𝑢𝑛𝑡𝑒𝑟, 𝑗𝑎𝑑𝑒}
NB: not everyone is in that set……. only friends that play Soccer or Tennis (or
both)
Vinn Diagram
2. Intersection
“Intersection” is when you must be in BOTH sets.
For the example of two friends:
It means they play both Soccer AND Tennis…… which is casey and drew
The special symbol for Intersection is an upside down “∪” like this “∩”
And this is how its written:
𝑆𝑜𝑐𝑐𝑒𝑟 ∩ 𝑇𝑒𝑛𝑛𝑖𝑠 = {𝑐𝑎𝑠𝑒𝑦, 𝑑𝑟𝑒𝑤}
Vinn Diagram
3. Complement
And there is a special way of saying “everything that is not”, and it is called
“complement”.
It is shown or the symbol of complement is “C” like this:
𝑺𝒄
Which means “everything that is NOT in S”, like this:
𝑆𝑐