Probablility Notes Week 3
Probablility Notes Week 3
Definitions An experiment a process that when performed results in exactly one of many possible
outcomes. The sample space (S) is the set of all possible outcomes.
Example A coin is tossed. The sample space is
S = {H, T}
where H is head and T is tail.
Definition An event is a subset of the sample space.
Example If die is rolled, then {2, 4, 6} is the event that an even outcome is obtained.
Definition The probability of an event is a numerical measure of the likelihood that a specific event will
occur.
Properties of Probability
P( E )
Example If a die is tossed, then
If
and
then
S 1,2,3,4,5,6}
E 2,4,6}
F 1,5}
3 1
P( E )
6 2
P( F )
Also,
2 1
6 3
1
6
1
4
3
4
2 1
4 2
1
4
Relative Frequency Suppose that we wish to determine the probability that the next car coming out of
an auto factory is defective. We may select 500 cars out of the production line. If 10 are defective,
then
10
0.02
500
P ( A)
f
.
n
Note This method only gives an approximate probability, as another selection of 500 cars may have a
different number of defective cars.
Note If we consider the whole population instead of a sample, then the relative frequency will give an
exact probability.
Law of Large Numbers
If an experiment is performed over and over, the probability of an event obtained from the relative
frequency approaches the actual or theoretical probability.
Counting Rule If an experiment consists of two steps such that the first step has m possible outcomes
and the second step has n possible outcomes, then the total number of possible outcomes for the
experiment is mn.
Example If two chairs are to be placed close together, the first one can be black or white, and the
second red, yellow or green, how many different colour combinations are possible?
Solution The possible colour combinations are
BR, BY, BG
WR, WY, WG
The total number is
6 = 2 3
S 1,2,3,4,5,6}
2
A 2,4,6}
B 3,4,5,6}
Calculate
(1) P ( A)
(2) P (B )
(3) P ( A B )
(4) P ( A B )
Solution
3 1
6 2
4 2
(2) P ( B )
6 3
(1) P ( A)
2 1
6 3
5
(4) P ( A B ) P2,3,4,5,6
6
(3) P ( A B ) P{4,6}
Male
Female
Car
20
10
SUV
40
30
Male (M)
Female (F)
Total
Car
20
10
30
SUV
40
30
70
Total
60
40
100
Definition Marginal probability is the probability of a single event without considering any other event.
Example One person is chosen at random from the hundred people in the previous example. The four
marginal probabilities are
number of males
60
0.60
total number of people 100
number of females
40
P( F )
0.40
total number of people 100
P( M )
P (C )
30
0.30
100
P(S )
70
0.70
100
Definition Conditional probability is the probability that an event will occur given that another event
has already occurred.
Notation P ( A / B ) is the conditional probability of A given B.
Example Continuation of the above example
P( M / C )
20
0.67
30
P( S / F )
30
0.75
40
P( M / S )
40
0.57
70
P( F / S )
30
0.43
70
P( F / C )
10
0.33
30
P( S / M )
40
0.67
60
Definition Events that cannot occur together are called mutually exclusive events.
Example For one roll of a die, let
A = {2, 4, 6}
B = {1, 3, 5}
C = {1, 2, 3, 4}
A and B are mutually exclusive, as shown in the following diagram. These two sets have empty
intersection.
A
2
5
4
A and C are not mutually exclusive. If 2 or 4 is obtained, then both A and C would have occurred.
This is because 2 and 4 are in the intersection of the sets A and C as shown in the following diagram.
C
1
3
A
2
Definition Two events A and B are said to be independent if the occurrence of one does not affect the
probability of occurrence of the other, that is, if
P( A / B) P( A)
P( B / A) P( B)
or
Example A box contains 100 CDs that were manufactured by two machines A and B .
A
B
Total
D
9
6
15
G
51
34
85
Total
60
40
100
A CD is selected at random.
P ( D / A)
P( D)
9
0.15
60
15
0.15 P ( D / A)
100
Male (M)
Female (F)
Total
Car
20
10
30
SUV
40
30
70
Total
60
40
100
P( M ) 0.60
P( M / C ) 0.67 P( M )
Hence M and C are not independent.
Definitions Two mutually exclusive events that together include all possible outcomes of an experiment
are called complementary events. The complement A of A includes all outcomes not in A.
Example For one roll of a die, suppose that the events A and B are as follows:
P( A) P( A ) 1
and so
P( A) 1 P( A )
2
6
4
P( B) 1 P( A)
6
P ( A)
P ( A B ) P ( A) P ( B / A)
Note From the above equation, we obtain
P( A B)
P( A)
P( B / A)
Example From the example on cars and SUVs,
P( F C ) P( F ) P(C / F )
40 10
0.10
100 40
P( F C )
10
0.10
100
Also,
P( S M ) P( S ) P( M / S )
P( S M )
70 40
0.40
100 70
40
0.40
100
Example A box contains 20 DVDs, 4 of which are defective. If two DVDs are selected at random
(without replacement) form this box, what is the probability that both are defective?
Solution Let
P( D1 D2 ) P( D1 ) P( D2 / D1 )
P ( D1 )
4
20
If the first DVD chosen is defective, then out of the remaining 19, 3 would be defective.
7
P ( D2 / D1 )
Hence
P ( D1 D2 )
3
19
4 3
= 0.0316
20 19
P( A B) P ( A) P ( B)
Example A building has two fire detectors. The probability that either one will fail to go off during a fire
is 0.02. Find the probability that both will fail to go off during a fire.
Solution Let