Chapter 3 Elementary Probability
Chapter 3 Elementary Probability
CHAPTER 3
3. ELEMENTARY PROBABILITY
3.1 Introduction
Probability theory is the foundation upon which the logic of inference is built.
It helps us to cope up with uncertainty.
Definition: Probability is a numerical measure of the chance or likelihood that a
particular event will occur & it lies in the range from 0-1, inclusive. Probability is a
building block of inferential statistics.
Definition: Let E be an experiment. Let S be a sample space associated with E. With
each event A in S we associate a real number designated by P (A) and called the
probability of A.
In general, probability is the chance of an outcome of an experiment. It is the measure
of how likely an outcome is to occur.
Generally probability can be divided into two
i) Subjective probability: - probability determined based on individual’s own
judgment, experience, information, belief . . . is called Subjective probability.
ii) Objective probability: - the probability of an event in a certain experiment based
on experimental evidence.
Page 1 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
11. Dependent Events: Two events are dependent if the first event affects the outcome or
occurrence of the second event in a way the probability is changed.
Example: .What is the sample space for the following experiment
a) Toss a die one time.
b) Toss a coin two times.
c) A light bulb is manufactured. It is tested for its life length by time.
Solution
a) S={1,2,3,4,5,6}
b) S={(HH),(HT),(TH),(TT)}
c) S={t /t≥0}
Sample space can be
Countable ( finite or infinite)
Uncountable
3.3 Counting Rules
In order to calculate probabilities, we have to know
The number of elements of an event
The number of elements of the sample space.
That is in order to judge what is probable, we have to know what is possible.
In order to determine the number of outcomes, one can use several rules of counting.
- The addition rule
- The multiplication rule
- Permutation rule
- Combination rule
To list the outcomes of the sequence of events, a useful device called tree diagram is
used.
The addition rule
Suppose that the 1st procedure designed by 1 can be performed in n1 ways. Assume that 2nd
procedure designed by 2 can be performed in n2 ways.
suppose further more that, it is not possible that both procedures 1 and 2 are performed
together then the number of ways in which we can perform 1or 2 procedure is n1+n2 ways, and
also if we have another procedure that is designed by k with possible way of nk we can
conclude that there is n1+n2+…+nk possible ways.
Example: suppose we planning a trip and are deciding by bus and train transportation. If there
are 3 bus routes and 2 train routes to go from A to B. find the available routes for the trip.
Solution:
There are 3+2 =5 routes for someone to go from A to B.
Page 2 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
An air line has 6 flights from A to B, and 7 flights from B to C per day. If the flights are
to be made on separate days, in how many different ways can the airline offer from A to
C?
Solution: In operation 1 there are 6 flights from A to B, 7 flights are available to make
flight from B to C. Altogether there are 6*7 = 42 possible flights from A to C.
Example2
suppose that in a medical study patients are classified according to their blood type as
A, B , AB, and O; according to their RH factors as + or - and according to their blood
pressure as high, normal or low ,then in how many different ways can a patient be
classified ?
Solution
The 1st classification done in 4 ways, the 2nd in 2 ways, and the 3rd in 3 ways. Thus
patient can be classified in 4*2*3 = 24 different ways.
Example 3
The digits 0, 1, 2, 3, and 4 are to be used in 4 digit identification card. How many different
cards are possible if
a) Repetitions are permitted.
b) Repetitions are not permitted.
Solutions
a)
1st digit 2nd digit 3rd digit 4th digit
5 5 5 5
There are four steps
1. Selecting the 1st digit, this can be made in 5 ways.
2. Selecting the 2nd digit, this can be made in 5 ways.
3. Selecting the 3rd digit, this can be made in 5 ways.
4. Selecting the 4th digit, this can be made in 5 ways.
Page 3 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
3. The number of permutations of n objects in which k1 are alike k2 are alike ---- etc
is
n!
n Pr
k1!*k 2 * ... * k n
Example:
1. Suppose we have a letters A,B, C, D
a) How many permutations are there taking all the four?
b) How many permutations are there two letters at a time?
2. How many different permutations can be made from the letters in the word
“CORRECTION”?
Solutions:
1.
a)
Here n 4, there are four disnict object
There are 4! 24 permutatio ns.
b)
Here n 4, r 2
4! 24
There are 4 P2 12 permutatio ns.
(4 2)! 2
2.
Page 4 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
Here n 10
Of which 2 are C , 2 are O, 2 are R ,1E ,1T ,1I ,1N
K1 2, k 2 2, k3 2, k 4 k5 k6 k7 1
U sin g the 3rd rule of permutatio n , there are
10!
453600 permutatio ns.
2!*2!*2!*1!*1!*1!*1!
Exercises:
1. Six different statistics books, seven different physics books, and 3 different
Economics books are arranged on a shelf. How many different arrangements are
possible if;
i. The books in each particular subject must all stand together
ii. Only the statistics books must stand together
2. If the permutation of the word WHITE is selected at random, how many of the
permutations
i. Begins with a consonant?
ii. Ends with a vowel?
iii. Has a consonant and vowels alternating?
Combination
Solutions:
Permutation Combination
AB BA CA DA AB BC
AC BC CB DB AC BD
AD BD CD DC AD DC
Note that in permutation AB is different from BA. But in combination AB is the same as BA.
Combination Rule
Page 5 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
n n!
r (n r )!*r!
Examples:
1. In how many ways a committee of 5 people be chosen out of 9 people?
Solutions:
n9 , r 5
n n! 9!
126 ways
r ( n r )!* r! 4!* 5!
2. Among 15 clocks there are two defectives .In how many ways can an inspector chose
three of the clocks for inspection so that:
a) There is no restriction.
b) None of the defective clock is included.
c) Only one of the defective clocks is included.
d) Two of the defective clock is included.
Solutions:
a) If there is no restriction select three clocks from 15 clocks and this can be
done in :
n 15 , r 3
n n! 15!
455 ways
(n r )!*r! 12!*3!
r
b) None of the defective clocks is included.
This is equivalent to zero defective and three non defective, which can be done
in:
2 13
* 286 ways.
0 3
c) Only one of the defective clocks is included.
This is equivalent to one defective and two non defective, which can be done in:
Page 6 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
2 13
* 156 ways.
1 2
d) Two of the defective clock is included.
This is equivalent to two defective and one non defective, which can be done in:
2 13
* 13 ways.
2 1
Exercises:
1. Out of 5 Mathematician and 7 Statistician a committee consisting of 2
Mathematician and 3 Statistician is to be formed. In how many ways this can
be done if
a) There is no restriction
b) One particular Statistician should be included
c) Two particular Mathematicians can not be included on the committee.
2. If 3 books are picked at random from a shelf containing 5 novels, 3 books of
poems, and a dictionary, in how many ways this can be done if
a) There is no restriction.
b) The dictionary is selected?
c) 2 novels and 1 book of poems are selected?
3.4 Approaches to measuring Probability
There are four different conceptual approaches to the study of probability theory. These
are:
The classical approach.
The relative frequency approach.
The axiomatic approach.
The subjective approach.
The classical approach
This approach is used when:
- All outcomes are equally likely.
- Total number of outcome is finite, say N.
Definition: If a random experiment with N equally likely outcomes is conducted and out
of these NA outcomes are favorable to the event A, then the probability that event A occur
denoted P(A) is defined as:
N A No. of outcomes favourable to A n( A)
P ( A)
N Total number of outcomes n( S )
Page 7 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
Examples:
1. A fair die is tossed once. What is the probability of getting
a) Number 4?
b) An odd number?
c) An even number?
d) Number 8?
Solutions:
First identify the sample space, say S
S 1, 2, 3, 4, 5, 6
N n( S ) 6
a) Let A be the event of number 4
A 4
N A n( A) 1
n( A)
P ( A) 1 6
n( S )
b) Let A be the event of odd numbers
A 1,3,5
N A n( A) 3
n( A)
P ( A) 3 6 0 .5
n( S )
c) Let A be the event of even numbers
A 2,4,6
N A n( A) 3
n( A)
P( A) 3 6 0. 5
n( S )
d) Let A be the event of number 8
A Ø
N A n( A) 0
n( A)
P ( A) 0 60
n( S )
2. A box of 80 candles consists of 30 defective and 50 non defective candles. If 10
of this candles are selected at random, what is the probability
a) All will be defective.
Page 8 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
Solutions:
80
Total selection N n( S )
10
30 50
Total way in which A occur * N A n( A)
10 0
30 50
*
n( A) 10 0
P ( A) 0.00001825
n( S ) 80
10
b) Let A be the event that 6 will be non defective.
30 50
Total way in which A occur * N A n( A)
4 6
30 50
*
n( A) 4 6
P ( A) 0.265
n( S ) 80
10
c) Let A be the event that all will be non defective.
30 50
Total way in which A occur * N A n( A)
0 10
30 50
*
n( A) 0 10
P ( A) 0.00624
n( S ) 80
10
Exercises:
Page 9 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
1. What is the probability that a waitress will refuse to serve alcoholic beverages to
only three minors if she randomly checks the I.D’s of five students from among
ten students of which four are not of legal age?
2. If 3 books are picked at random from a shelf containing 5 novels, 3 books of
poems, and a dictionary, what is the probability that
a) The dictionary is selected?
b) 2 novels and 1 book of poems are selected?
Short coming of the classical approach:
This approach is not applicable when:
- The total number of outcomes is infinite.
- Outcomes are not equally likely.
The Frequentist Approach
This is based on the relative frequencies of outcomes belonging to an event.
Definition: The probability of an event A is the proportion of outcomes favorable to A in the
long run when the experiment is repeated under same condition.
NA
P( A) lim
N N
Example: If records show that 60 out of 100,000 bulbs produced are defective. What is the
probability of a newly produced bulb to be defective?
Solution:
Let A be the event that the newly produced bulb is defective.
NA 60
P( A) lim 0.0006
N N 100,000
Axiomatic Approach:
Let E be a random experiment and S be a sample space associated with E. With each event
A a real number called the probability of A satisfies the following properties called axioms of
probability or postulates of probability.
1. P( A) 0
2. P( S ) 1, S is the sure event.
3. If A and B are mutually exclusive events, the probability that one or the other occur
equals the sum of the two probabilities. i. e.
P( A B) P( A) P( B)
4. P( A' ) 1 P( A)
5. 0 P( A) 1
6. P (ø) =0, ø is the impossible event.
Remark: Venn-diagrams can be used to solve probability problems.
Page 10 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
AUB AnB A
In general p( A B) p( A) p( B) p( A B)
3.4 Some probability rules
Rule l: let A be an event and A' be the complement of A with respect to a given sample space of
an experiment, then P(A')=1-P(A)
Proof: let S be a sample space S=AUA' and, A and A' are mutually exclusive
A∩A' = ø
P(S) = P (AUA') = P (A') + P (A) and P(S) = 1
1= P (A') + P (A) => P (A') = 1-P (A)
Rule 2: let A and B are events of a sample space S, then
P (A' ∩ B) = P (B) - P (A ∩ B)
Proof: B =S ∩ B = (AUA') ∩ B = (A∩ B) U (A'∩ B)
If A∩B
P (A' ∩ B) = P(B) – P(A ∩ B).
Rule 3: Suppose A and B are two events of a sample space, then
P(AUB) = P(A) + P(B) – P(A ∩ B)
Proof:(AUB) = AU(A' ∩ B), A and A' ∩ B are disjoint sets
P(AU B) = p(A) + p(A' ∩ B) . . . .*
But we have already proved that P (A’ n B) = P (B) – P (A ∩ B)
Put this in equation *
P(A U B) = P(A) + P (B) – P (A ∩ B)
Example 5.17: A fair die is thrown twice. Calculate the probability that the sum of spots on the
face of the die that turn up is divisible by 2 or 3.
Solution
S={(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(3,1),(3,2),(3,3),(3,4),(3,
5),
(3,6),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(5,1),(5,2),(5,3),(5,4),(5,4),(5,5),(5,6),(6,1),(6,2),(6,
3),(6,4),(6,5),(6,6)}
This sample space has 6*6 =36 elements let A be the event that the sum of the spots on the die
is divisible by 2 and B be the event that the sum of the spots on the die is divisible by three, then
A = {(1,1), (1,3), (1,5), (2,2), (2,4), (2,6), (3,1), (3,3), (3,5), (4,2), (4,4), (4,6), (5,1), (5,3),
(5,5), (6,2), (6,4), (6,6)}
B = {(1,2), (1,5), (2,1), (2,4), (3,3), (3,6), (4,2), (4,5), (5,1), (5,4), (6,3), (6,6)}
A∩B = {(1, 5), (2,4), (3,3), (4,2), (5,1), (6,6)}
P (A or B) = P (A U B)
= P (A) +P (B) – P (A∩B)
= 18/36 + 12/36 -6/36 = 24/36 = 2/3
3.5 Conditional Probability and Independence
3.5.1 Conditional Probability
If A and B are events. Conditional probability of A given B means the probability of occurrence
of A when the event B has already happened. It is denoted by P (A/B) and is defined by
P (A/B) = P(A ∩ B)/P (B), if P (B) 0
Page 11 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
Conditional probability of B given A means the probability of occurrence of B when the event
A has already happened. It is denoted by P (B/A) and is defined
P (B/A) =P (A ∩ B)/P (A), if P (A) 0
P (A ∩ B) = P (A) P (B/A) = P (B) P (A/B).
3.5.2 Multiplication Law of Probability: If A and B are events in a sample space S, then
P (A ∩ B) = P (A) P (B/A), P (A) 0
P (A ∩ B) = P (B) P (A/B), P (B) 0
Where P (B/A) represents the conditional probability of B given A and P (A/B) represents the
conditional probability of A given B.
Note: Extension of multiplication law of probability for ‘n’ events A1, A2, …, An we have P
(A1 ∩ A2 ∩ …∩An) = P (A1) P (A2/A1) p (A3/A1 ∩ A2)…P(An/A1∩ A2 ∩ …∩An-1)
Example 3.18: A coin is tossed twice. If it is already known that the first coin has thrown a head,
what is the probability of getting two heads?
Solution:
S = {HH, HT, TH, TT}, A = the first shows a head = {HH, HT}, B= two heads occur ={HH}
P (B/A) = P(A ∩ B)/ P(A) ,But A ∩ B ={HH}, P(A ∩ B) =1/4, P(A)=1/2, therefore, P (B/A)
= P(A ∩ B)/ P(A) = 1/2
Example 3.19: Let A and B are events such that P (A U B) = ¾, P (A ∩ B) = ¼ and P(A' ) =
2/3.
Find P (A'/B)
Solution:
P(A') = 2/3 P (A) = 1- P(A') = 1-2/3 = 1/3
Now, P (A U B) = P (A) + P (B) - P (A ∩ B)
3/4 = 1/3 + P (B) – ¼
P(B) = 3/4 - 1/3 + ¼ = 2/3
Therefore, P (A/B) = P (A ∩ B)/P(B) = 3/8 P(A'/B) =1-P (A/B) = 1-3/8 =5/8.
Conditional probability and Independency
Conditional Events: If the occurrence of one event has an effect on the next occurrence
of the other event then the two events are conditional or dependant events.
Example: Suppose we have two red and three white balls in a bag
1. Draw a ball with replacement
Let A= the event that the first draw is red p ( A) 2
5
B= the event that the second draw is red p ( B ) 2
5
A and B are independent.
2. Draw a ball without replacement
Let A= the event that the first draw is red p ( A) 2
5
B= the event that the second draw is red p( B) ?
This is conditional.
Let B= the event that the second draw is red given that the first draw is red
p( B) 1 4
Conditional probability of an event
Page 12 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
The conditional probability of an event A given that B has already occurred, denoted
p ( A B ) is
p( A B)
p( A B) = , p( B) 0
p( B)
Remark: (1) p( A B) 1 p( A B)
'
(2) p( B A) 1 p ( B A)
'
Examples
1. For a student enrolling at freshman at certain university the probability is 0.25 that
he/she will get scholarship and 0.75 that he/she will graduate. If the probability is
0.2 that he/she will get scholarship and will also graduate. What is the probability
that a student who get a scholarship graduate?
Note; for any two events A and B the following relation holds.
Page 13 of 14
Lecture notes on probability and Statistics Chapter 3: ELEMENTARY PROBABILITY
pB pB A. p A p B A' . p A'
Probability of Independent Events
Page 14 of 14