STATISTICS IS THE GRAMMAR OF SCIENCE
PROBABILITY AND STATISTICS
LECTURE – 7
INTRODUCTION TO
PROBABILITY
PREPARED BY
HAZBER SAMSON
FAST NUCES ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
INTRODUCTION TO SET THEORY
DEFINITION The collection of well-defined and distinct objects is called a set. Sets are
usually denoted by capital letters while elements of the set are denoted by small letters.
EXAMPLES 1 A 1,2,3,4,5 2 B {a, e, i, o, u}
SOME IMPORTANT SETS
1. Set of Natural Numbers
N 1,2,3,......
2. Set of Whole Numbers
W 0,1,2,3,......
3. Set of Integers
Z 0,1,2,3,......
4. Set of Prime Numbers
P 2,3,5,7,......
5. Set of Even Numbers
E 0,2,4,6......
6. Set of Odd Numbers
O 1,3,5......
7. Set of Rational Numbers
p
Q x x Q x , q 0
q
8. Set of Irrational Numbers
Q c Non Ter min ating and Non Re curring Decimals
9. Set of Real Numbers
R Q Qc
1
10. Set of Complex Numbers
C A Number of the form a bi
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
TYPES OF SETS
EMPTY SET A set which contains no element is called empty set. It is denoted by φ
or { }.
SUBSET If A and B are two sets and if all the elements of A are the elements of B then
set A is called subset of set B. It is denoted by A B.
EXAMPLES 1- If A = {1,2} and B = {1,2,3} then A B.
2- If A = {a,b} and B = {a,b} then A B.
NOTE Every set is a subset of its self ie A A
Empty set is a subset of every set ie φ A.
There are two types of subsets 1- Proper Subset 2-Improper Subset
PROPER SUBSET If A and B are two sets than set A is called proper subset of set B if
A B and there is at least one element in B which is not in A. It is denoted by A B.
EXAMPLES 1- If A = {1,2} and B = {1,2,3} then A B.
2- If A = {A} and B = {a,b} then A B.
IMPROPER SUBSET If A and B are two sets than set A is called an improper subset of
set B if A B and there is no element in B which is not in A. It is denoted by A B.
EXAMPLES 1- If A = {1,2} and B = {1,2} than A B.
2- If A = {a} and B = {a} then A B.
UNIVERSAL SET A set which is superset of all the sets under consideration is called
universal set. It is usually denoted by U.
POWER SET The power set of a set S is the set which contains all the possible subsets
of S. It is denoted by P(A).
EXAMPLES 1- If A = {a,b} than P(A) = { , {a},{b},{a,b} }
2- If B = { } then P(B) = { }
NOTE If set S has n elements than P(S) has 2n elements.
OPERATIONS ON SETS
UNION OF SETS
If A and B are two sets then their union is denoted by A U B and it contains all the
elements of A and B.
EXAMPLES 1- If A = {1,2,3} and B = {2,3,4} than A U B = {1,2,3,4}
2
2- If A = {a} and B = {b} than A U B = {a,b}
Page
NOTE 1 A A A, 2 A A, 3 A U U , 4 , 5 A B B A
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
INTERSECTION OF SETS
If A and B are two sets than their intersection is denoted by A ∩ B and it contains the
common elements of A and B.
EXAMPLES 1- If A = {1,2,3} and B = {2,3,4} than A ∩ B = {2,3}
2- If A = {a} and B= {b} than A ∩ B = { }
NOTE 1 A A A, 2 A , 3 A U A, 4 , 5 A B B A
DIFFERENCE OF SETS
If A and B are two sets than their difference is denoted by A – B and it contains elements
of A which are not in B.
EXAMPLES 1- If A = {1,2,3} and B = {2,3,4} than A-B = {1} and B-A = {4}
2- If A = {a} and B= {b} than A-B = { } and B-A = { }.
NOTE 1 A A , 2 A A, 3 U A Ac , 4 , 5 A B B A
COMPLEMENT OF A SET If A is a subset of U than its complement is denoted by Ac or
A and is given by A U A
EXAMPLES 1- If U = {1,2,3,4,5} and A = {1,2,3} than Ac= U-A = {4,5}
2- If U = {a,b} and B = {a} than Bc U-B {a}
NOTE 1 Ac U A, 2 U c , 3 c U
LAWS OF SETS
If A, B and C are subsets of a Universal set U then the following laws hold
DEMORGAN LAWS
1 A B Ac B c
c
2 A B Ac B c
c
DISTRIBUTIVE LAWS
1 A ( B C ) ( A B) A C
2 A ( B C ) ( A B) A C
ASSOCIATIVE LAWS
1 ( A B) C A ( B C )
2 ( A B) C A ( B C )
3
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
BASIC CONCEPTS OF PROBABILITY
EXPERIMENT A well-defined collection or process of obtaining an observation is called
an experiment. The performance of an experiment is called trial and the result obtained
is called an outcome.
RANDOM EXPERIMENT An experiment which produces different outcomes although it
is repeated under similar conditions for a large number of time is called a random
experiment. A random experiment has following properties.
1. The experiment can be repeated by any number of times.
2. A random trial consists of at least two possible outcomes.
EXAMPLES
1-Toss a coin,
2-Throw a die etc.
SAMPLE SPACE The set of all possible outcomes of a random experiment is called
sample space. It is denoted by S. Each element in a sample space is called sample
point.
EXAMPLES
1. When a coin is tossed once
S H , T
2. When a coin is tossed twice or two coins are tossed once
S HH , HT , TH , TT
3. When a coin is tossed thrice or three coins are tossed once
S HHH , HHT , HTH , HTT , THH , THT , TTH , TTT
4. When a die is thrown once
S 1,2,3,4,5,6
5. When a die is thrown twice or two dice are thrown once
(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)
S
(4,1), (4,2), (4,3), (4,4), (4,5), (4,6)
(5,1), (5,2), (5,3), (5,4), (5,5), (5,6)
4
Page
(6,1), (6,2), (6,3), (6,4), (6,5), (6,6)
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
EVENT AND TYPES OF EVENTS
EVENT A subset of the sample space is called an event. For example
1. When a coin is tossed once then the sets A H or B T are events.
2. When a die is rolled once then the sets A 2 , B 3,4, C 1,3,5 are events.
TYPES OF EVENTS
SIMPLE EVENT An event that contains exactly one sample point is called simple event.
It is also called elementary event. For example
1. When two coins are tossed once then the event A HH is a simple event.
2. When a die is rolled once then the event B 3 is a simple event.
COMPOUND EVENT An event that contains more then one sample point is called
compound event. It is also called composite event. For example
1. When two coins are tossed once then the event A HH .HT is a compound event.
2. When a die is rolled once then the event B 2,4,6is compound event.
IMPOSSIBLE EVENT An event that contains no sample point is called impossible event.
It is also called null event. For example
A is impossible event for every sample space.
SURE EVENT An event that contains all the sample points is called sure event. It is also called
certain event. For example
1. When a coin is tossed once then the event A H , T is sure event.
2. When a die is rolled once then the event B 1,2,3,4,5,6is sure event.
MUTUALLY EXCLUSIVE EVENTS Two events A and B are said to be mutually
exclusive if they cannot occur at the same time ie A B . For example
1. When a coin is tossed once then the events A H and B T are mutually exclusive events.
2. When a die is rolled once then the events A 1,3,5 and B 2,4.6 are mutually exclusive events.
COLLECTIVELY EXHAUSTIVE EVENTS Two events A and B are said to be collectively
exhaustive events if their union is sample space itself ie A B S . For example
1. When a coin is tossed once then the events A H and B T are collectively exhaustive events.
2. When a die is rolled once then the events A 1,3,5and B 2,4.6 are collectively exhaustive events.
EQUALLY LIKELY EVENTS Two events A and b are said to be equally likely, if number
of elements in A and B are same. ie n( A) n( B) . For example
1. When a coin is tossed once then the events A H and B T are equally likely events.
2. When a die is rolled once then the events A 1,3,5 and B 2,4.6 are equally likely events.
5
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
INFORMATION ABOUT CARDS
Total number of cards = 52
COLOURS = 2 (Red and Black)
SETS (SUITS)
There are four sets of Cards (13 in each type)
1. Clubs ♣
2. Hearts ♥
3. Spades ♠
4. Diamonds ♦
ORDER OF CARDS
Ace Queen
A 2 3 4 5 6 7 8 9 10 J Q K
jack King
TYPES
Pictured Cards = 12, Aces = 4
HANDS
Bridge Hand = 13
Poker Hand = 5
6
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
PROBABILITY
CLASSICAL DEFINITION If there are equally likely, mutually exclusive and collectively
exhaustive outcomes and m of which are favorable to the occurrence of an event A then
the probability of the occurrence of the event A, is denoted by P(A) and is given by
P A
no of favourableoutcomes
no of possible outcomes
P A
m
Or
n
MATHEMATICAL DEFINITION The probability that an event will occur, is the ratio of the
number of sample points in A to the total no of sample points in S.
P A
no of elements in A
Mathematically
no of elements in S
n A
Or P A
n S
AXIOMS OF PROBABILITY
1. Probability of an event cannot be negative ie P A 0 .
2. Probability of an event lies between 0 and 1 ie 0 P A 1 .
3. Probability of a null event is zero. ie P 0
4. Probability of a sure event is 1. ie PS 1
5. If A and B are mutually exclusive events then P A B P A PB
NOTE If A is any event of a sample space S then
P Ac 1 P A
Also
P A 1 P Ac 7
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
EXAMPLES OF PROBABILITY
EXAMPLE-1 A box contains two white, three red and five blue balls. A ball is selected at
random what is the probability that selected ball is a
(a) white ball
(b) red ball
(c) not blue ball
SOLUTION Here White balls 2, Re d balls 3, Blue balls 5
(a) Let A denote the event that selected ball is a white ball
n A 2 1
P A
nS 10 5
(b) Let B denote the event that selected ball is a red ball
n B 3
P B
nS 10
(c) Let C denote the event that selected ball is a Blue ball
nC
PC c 1 PC 1
5 5 1
1
nS 10 10 2
EXAMPLE-2 A card is selected from a deck of 52 playing cards. What is the probability
that selected card is
(a) an ace
(b) a diamond card
(c) a queen of hearts
(d) an even numbered card
(e) a prime number card of c lub s
SOLUTION Here nS 52
(a) Let A denote the event that selected card is an ace
n A 4
P A
1
nS 52 13
(b) Let B denote the event that selected card is a diamond card
nB 13 1
P B
nS 52 4
(c) Let C denote the event that selected card is a queen of hearts
nC 1
PC
nS 52
(d ) Let D denote the event that selected card is an even numbered card
nD 20 5
P D
nS 52 13
(e) Let E denote the event that selected card is a prime numbered card of c lub s
8
n E 4
P E
1
Page
nS 52 13
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
EXAMPLE-3 A coin is tossed twice. What is the probability that
(a) head appears
(b) exactly one head appears
(c) atleast one head appears
(d ) atmost one head appears
(e) atmost two tails appears
SOLUTION Here S {HH , HT , TH , TT }
(a ) Let A denote the event that head appears A {HH , HT , TH }
n A 3
P A
nS 4
(b) Let B denote the event that exactly one head appears B {HT , TH }
n B 2 1
P B
nS 4 2
(c) Let C denote the event that atleast one head appears C {HH , HT , TH }
nC 3
PC
nS 4
(d ) Let D denote the event that atmost one head appears D {HT , TH , TT }
n D 3
P D
nS 4
(e) Let E denote the event that atmost two tails appear E {HH , HT , TH , TT }
n E 4
P E 1
nS 4
EXAMPLE-4 A die is rolled once. What is the probability that die shows
(a) an even n number
(b) an odd number
(c) a prime number
(d ) a number greater than 2
(e) a number less than equals to 2
SOLUTION Here S {1, 2, 3, 4, 5, 6}
(a) Let A denote the event that die shows an even number A {2, 4, 6}
n A 3 1
P A
nS 6 2
(b) Let B denote the event that die shows an odd number B {1, 3, 5}
n B 3 1
9
P B
Page
nS 6 2
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD
MT-2005 PROBABILITY AND STATISTICS INTRODUCTION TO PROBABILITY
(c) Let C denote the event that die shows a prime number C {2, 3, 5}
nC 3 1
PC
nS 6 2
(d ) Let D denote the event that die shows a number greater than 2 D {3, 4, 5, 6}
n D 4 2
P D
nS 6 3
(e) Let C denote the event that die shows a number less than equals to 2 E {1, 2}
n E 2 1
P E
nS 6 3
EXAMPLE-5 Two dice are rolled once. What is the probability that
(a) sum of dots appeared is a prime number
(b) difference of dots is an even numer
(c) product of dots is divisible by 5
SOLUTION Here sample space is given by
(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)
S
(4,1), (4,2), (4,3), (4,4), (4,5), (4,6)
(5,1), (5,2), (5,3), (5,4), (5,5), (5,6)
(6,1), (6,2), (6,3), (6,4), (6,5), (6,6)
(a) Let A denote the event that sum of dots appeated is a prime number
A (1,1), (1,2), (1,4), (1,6), (2,1), (2,3), (2,5), (3,2), (3,4), (4,1), (4,3), (5,2), (5,6), (6,1), (6,5)
n A 15 5
P A
nS 36 12
(b) Let B denote the event that difference of dots appeared is an even number
(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),
B
(6,2), (6,4), (6,6)
nB 18 1
P B
nS 36 2
(c) Let C denote the event that product of dots is divisible by 5
C (1,5), (2,5), (3,5), (4,5), (5,1), (5,2), (5,3), (5,4), (5,5), (5,6), (6,5)
10
nC 11
PC
nS 36
Page
PREPARED BY HAZBER SAMSON SCIENCES AND HUMANITIES DPT FAST ISLAMABAD