Unit 2 Probability and Probability Distribution
Unit 2 Probability and Probability Distribution
Unit 2 Probability and Probability Distribution
Prerequisites:
Fundamental Principle of Counting:
If one job can be done in m ways and another job can be done in n ways, then the number of
ways of performing the combination of the above two jobs is m * n. It can be extended to any
finite number of operations
Permutation
If 𝑛 objects are given and we have to arrange 𝑟 (𝑟 ≤ 𝑛) out of them and the order in which these
objects are arranged is important, such an arrangement is called a permutation of 𝑛 objects taken
𝑟 at a time.
𝑛 𝑛!
𝑃𝑟 =
(𝑛 − 𝑟)!
Combination
If n objects are given and we have to choose 𝑟(𝑟 ≤ 𝑛) out of them and the order in which objects
are arranged is not important, such a choice is called a combination of n objects taken at a time.
𝑛 𝑛!
𝐶𝑟 =
𝑟! (𝑛 − 𝑟)!
1
Basic Concept in Probability:
Experiment: The term experiment refers to describe an act which can be repeated under some
given conditions.
Random Experiment or Trial:If in an experiment all possible outcomes are known in advance
and none of the outcomes can be predicted with certainty, then such an experiment is called
random experiment.
E.g.: Given any triangle, without knowing the three angles, we can definitely say that the sum of
measure of angles is 180°.
We also perform many experimental activities, where the result may not be same, when they are
repeated under identical conditions. For example, when a coin is tossed it may turn up a head or
a tail, but we are not sure which one of these results will actually be obtained.
Such experiments are called random experiments.
An experiment is called random experiment if it satisfies the following two conditions: (i) It
has more than one possible outcome. (ii) It is not possible to predict the outcome in advance
with certainity.
Sample space: The set consisting of all outcomes of a random experiment is called sample space.
E.g.: Sample space of tossing a coin once is {H, T}, Sample space of throwing a dice is {1, 2, 3,
4, 5, 6}.
Example: Two coins (a one rupee coin and a two rupee coin) are tossed once. Find a sample
space.
Solution: Clearly the coins are distinguishable in the sense that we can speak of the first coin
and the second coin. Since either coin can turn up Head (H) or Tail (T), the possible outcomes
may be
Events: The outcomes of the random experiments are called the events.
2
For example
For S = {H, T}, there are four events, , {H}, {T} and S.
Consider S = {1, 2, 3, 4, 5, 6}, which is the sample space of tossing a die. Some events
connected with this sample space are given below.
A= Getting an odd number = {1, 3, 5}
B= Getting a number divisible by 2 = {2, 4, 6}
C= Getting a number greater than 2 = {3, 4, 5, 6}
D= Getting a number less than 7 = {1, 2,3,4,5, 6} = S
E= Getting a number greater than 6 =
The event S (or D) is called sure event and the event is called impossible event.
Occurrence of an event:
Thus, the event E of a sample space S is said to have occurred if the outcome ω of the
experiment is such that ω ∈E. If the outcome ω is such that ω does not belong to E, we say that
the event E has not occurred.
Types of events
Certain event: An event whose occurrence is inevitable (or certain) is called a certain event.
Impossible event:An event whose occurrence is impossible is called impossible event.
To understand these let us consider the experiment of rolling a die. The associated sample space
is
S = {1, 2, 3, 4, 5, 6}
Let E be the event “the number appears on the die is a multiple of 7”. Can you write the subset
associated with the event E?
Clearly no outcome satisfies the condition given in the event, i.e., no element of the sample space
ensures the occurrence of the event E. Thus, we say that the empty set only correspond to the
event E.
In other words we can say that it is impossible to have a multiple of 7 on the upper face of the
die. Thus, the event E = 𝝋 is an impossible event.
Now let us take up another event F “the number turns up is odd or even”. Clearly
3
F = {1, 2, 3, 4, 5, 6,} = S, i.e., all outcomes of the experiment ensure the occurrence of the event
F. Thus, the event F = S is a sure event.
Intersection of two events:Intersection of two events means the set of all the sample points
belonging to both the events.
Simple Event:
If an event E has only one sample point of a sample space, it iscalled a simple (or
elementary) event.
In a sample space containing n distinct elements, there are exactly n simple events.
For example in the experiment of tossing two coins, a sample space is
S={HH, HT, TH, TT}
There are four simple events corresponding to this sample space. These are
E1= {HH}, E2= {HT}, E3= {TH} and E4={TT}.
Mutually exclusive events: Two events are said to be mutually exclusive or incompatible when
both cannot happen simultaneously in a single trial.
Or
The occurrence of any one of the events prevents the occurrence of the other.
In the experiment of rolling a die, a sample space is
S = {1, 2, 3, 4, 5, 6}.
Consider events, A ‘an odd number appears’ and B ‘an even number appears’
Clearly the event A excludes the event B and vice versa.
In other words, there is no outcome which ensures the occurrence of events A and B
simultaneously.
Here
A = {1, 3, 5} and B = {2, 4, 6}
Clearly A ∩B = 𝝋i.e., A and B are disjoint sets.
In general,
two events A and B are called mutually exclusive events if the
occurrence of any one of them excludes the occurrence of the other event, i.e., if they can
not occur simultaneously. In this case the sets A and B are disjoint.
Again in the experiment of rolling a die, consider the events A ‘an odd number appears’ and
event B ‘a number less than 4 appears’
Obviously A = {1, 3, 5} and B = {1, 2, 3}
Now 3 ∈A as well as 3 ∈B Therefore, A and B are not mutually exclusive events.
4
Independent events:Two or more events are said to be independent when the outcome of one
does not affect and is not affected by the other.
E.g.: If a coin is tossed twice the second throw is not affected by the outcome of the first and
vice-versa. Also while throwing a dice the outcomes of none of the events are affected by the
other.
Dependent events:Dependent events are those events in which the occurrence or non-occurrence
of one event in any one trial affects the probability of other events in other trials.
E.g.: If a card is drawn from a pack of playing cards and is not replaced, this will alter the
probability of next card drawn i. e. probability of drawing a queen from a pack of 52 cards is
(4/52). But if the card drawn in first trial is queen and is not replaced then the probability of
drawing queen in the next trial is (3/52).
Equally likely events:Events are said to be equally likely when one does not occur more often
then the others.
E.g.: If we throw a dice each face may be expected to be observed approximately the same
number.
Exhaustive events:Events are said to be exhaustive when their totality includes all the possible
outcomes of a random experiment.
Consider the experiment of throwing a die. We have S = {1, 2, 3, 4, 5, 6}. Let us define the
following events
A: ‘a number less than 4 appears’,
B: ‘a number greater than 2 but less than 5 appears’
and C: ‘a number greater than 4 appears’.
Then A = {1, 2, 3}, B = {3,4} and C = {5, 6}.
We observe that
A ∪B ∪C = {1, 2, 3} ∪{3, 4} ∪{5, 6} = S.
Such events A, B and C are called exhaustive events.
Example: Two dice are thrown and the sum of the numbers which come up on the dice is noted.
Let us consider the following events associated with this experiment
A: ‘the sum is even’.
B: ‘the sum is a multiple of 3’.
C: ‘the sum is less than 4’.
D: ‘the sum is greater than 11’.
Which pairs of these events are mutually exclusive?
Solution: There are 36 elements in the sample space S = {(x, y): x, y = 1, 2, 3, 4, 5, 6}.
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), (2, 1), (1, 5), (5, 1), (3, 3), (2, 4), (4, 2), (3, 6), (6, 3), (4, 5), (5, 4),
5
(6, 6)}
C = {(1, 1), (2, 1), (1, 2)} and D = {(6, 6)}
We find that
A ∩B = {(1, 5), (2, 4), (3, 3), (4, 2), (5, 1), (6, 6)} ≠ ∅
Example: A coin is tossed three times, consider the following events. A: ‘No head appears’, B:
‘Exactly one head appears’ and C: ‘Atleast two heads appear’. Do they form a set of mutually
exclusive and exhaustive events?
Probability:
𝑝 = 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑜𝑓 𝑠𝑢𝑐𝑒𝑠𝑠
𝑞 = 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑜𝑓 𝑓𝑎𝑖𝑙𝑢𝑟𝑒
Mathematical or Classical approach:If an experiment results in ‘n’ equally likely ways, and out
of which ‘m’ are favorable to the happening of the event A, then the probability of happening of
event A is defined as the ration of m:n.
𝑁𝑢𝑚𝑏𝑒𝑟𝑜𝑓𝑓𝑎𝑣𝑜𝑟𝑎𝑏𝑙𝑒𝑐𝑎𝑠𝑒𝑠 𝑚
𝑃(𝐴) = 𝑇𝑜𝑡𝑎𝑙𝑛𝑢𝑚𝑏𝑒𝑟𝑜𝑓𝑒𝑞𝑢𝑎𝑙𝑙𝑦𝑙𝑖𝑘𝑒𝑙𝑦𝑐𝑎𝑠𝑒𝑠 = 𝑛
The number of favorable cases is always less than or equal to the total number of equally likely
cases.
0≤𝑚≤𝑛
𝑚
0≤ ≤1
𝑛
6
0 ≤ 𝑃(𝐴) ≤ 1
Thus the probability of an event is always between 0 and 1.
The probability of a certain event is always 1 and that of impossible event is 0.
If ‘m’ cases are favorable to the happening of event A, then ‘n-m’ are the cases not favorable to
the happening of A i.e. favorable to the happening of complement of event A.
𝑛−𝑚
𝑃(𝐴′ ) = 𝑛
𝑛 𝑚
𝑃(𝐴′ ) = 𝑛 − 𝑛
𝑚
𝑃(𝐴′ ) = 1 − 𝑛
𝑃(𝐴′ ) = 1 − 𝑃(𝐴)
𝑃(𝐴) + 𝑃(𝐴′ ) = 1
Thus the probability of happening and non-happening of an event is 1.
Shortcomings of the classical approach:
1. It cannot be applied whenever it is not possible to find the no. of equally likely cases.
2. It cannot be applied if exhaustive cases are infinite.
3. It cannot be applied if the events are not equally likely.
7
EXAMPLE : Three unbiased coins are tossed. Find the probability of getting (i) exactly 2 heads,
(ii) at least one tail, (iii) at most 2 heads, (iv) a head on the second coin and, (v) exactly 2 heads
in succession.
Solution:
When three coins are tossed, then sample space S given by
S={HHH, HTH, THH, HHT, TTT,THT, TTH, HTT}
n(s)=8
(i) Let A be the event of getting exactly 2 heads.
A={HTH, THH, HHT}
n(A)=3
𝑛(𝐴) 3
𝑃(𝐴) = =
𝑛(𝑆) 8
𝑛(𝐶) 7
𝑃(𝐴) = =
𝑛(𝑆) 8
(iv) Let D be the event of getting a head on the second coin.
D={HHH,THH,HHT,THT}
n(D)=4
𝑛(𝐷) 4
𝑃(𝐴) = =
𝑛(𝑆) 8
8
EXAMPLE : Find the probability that an odd number appears in a single toss of a fair die.
Solution: The sample for the experiment of tossing a die is S={1,2,3, 4, 5,6}. Let A be the event
that an odd number appears in a single toss of the die. Hence A= {1, 3,5}
P ( A) =
N ( A) 3 1
= =
N (S ) 6 2
EXAMPLE : A card is drawn from a pack of well- shuffled cards. Find the probability of the
following events.
(i) The card drawn is a spade.
(ii) The card drawn is a king.
(iii) The card drawn is a face card.
(iv) The card drawn is not a club.
(v) The card drawn is either a heart or a diamond.
Solution: In the pack there are 52 cards. One card can be drawn from the pack in 52 ways.
Hence the sample space for the experiment of drawing a card has 52 elements i.e. N(S)=52.
(i) Let A= The card drawn is spade.
There are 13 spade cards in the pack. Hence N(A)=13
N ( A) 13 1
P( A) = = =
N ( S ) 52 4
(ii) Let B= The card drawn is king.
There are 4 kings in the pack. Hence N(B)=4
N ( B) 4 1
P( B) = = =
N ( S ) 52 13
(iii) Let C= The card drawn is face card.
There are 12face cards in the pack(4 king, 4 queen, 4 jacks). Hence N(C)=12
N ( A) 12 3
P(C ) = = =
N ( S ) 52 13
(iv) Let D= The card drawn is club.
There are 13 spade cards in the pack. Hence N(D)=13
N ( A) 13 1
P( D) = = =
N ( S ) 52 4
(v) Let E= The card drawn is heart and F= The card drawn is diamond.
N ( E ) 13 1 N ( F ) 13 1
P( E ) = = = , P( F ) = = =
N ( S ) 52 4 N ( S ) 52 4
Now, E F =The card is a heart or diamond.
9
EXAMPLE 4. What is the probability that a leap year selected at random will have 53
Sundays?
Solution:-A leap year has 366 days, that is 52 weeks and 2 days.These 2 days can occur in the
following manner:
(i) Monday and Tuesday (v) Friday and Saturday
(ii) Tuesday and Wednesday (vi) Saturday and Sunday
(iii) Wednesday and Thursday (vii) Sunday and Monday
(iv) Thursday and Friday
N ( A) 3
P( A) = =
N (S ) 4
EXERCISE:-
1)A committee of two persons is selected from two men and two women.
What is the probability that the committee will have (a) no man? (b) one man? (c) two
men?
[Ans:- (i) 1/6, (ii) 2/3, (iii) 1/6]
2.From a collection of 10 bulbs, of which 4 are defective, 3 bulbs are selected at random
and fitted into lamps. Find the probability that (i) all three bulbs glow, and (ii) the rooms is
lit.
[Ans:- (i) 1/6, (ii) 29/30]
3.Two students Anil and Ashima appeared in an examination. The probability that Anil
will qualify the examination is 0.05 and that Ashima will qualify the examination is 0.10.
The probability that both will qualify the examination is 0.02. Find the probability that
(a) Both Anil and Ashima will not qualify the examination. [0.87]
(b) Atleast one of them will not qualify the examination. [0.98]
(c) Only one of them will qualify the examination. [0.11]
10
Addition Theorem:If A and B are two events, the probability of occurrence of either A or B is
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵)
i. If A and B are mutually exclusive events then 𝐴 ∩ 𝐵 = 𝜑 hence𝑃(𝐴 ∩ 𝐵) = 0
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵)
ii. For 3 events A, B and C, the probability that at least one will occur is
Multiplication Theorem: If two events A and B are independent, the probability of occurrence of
both is equal to the product of the individual probabilities of both the events.
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴) ∗ 𝑃(𝐵)
1 1 1 𝐴′
Example:If 𝑃(𝐴) = 3 , 𝑃(𝐵 ′ ) = 4, and 𝑃(𝐴 ∩ 𝐵) = 6, find 𝑃(𝐴 ∪ 𝐵), 𝑃(𝐴′ ∩ 𝐵 ′ ) and 𝑃(𝐵′ ).
Example:There are 5 red ad 7 black balls in an urn. Two balls are drawn at random one after the
other. If they are drawn (i) with replacement (ii) without replacement, find the probability that
both the balls are red.
Example: If an unbiased dice is rolled. Find the probability of getting: (i) Even Number (ii) A
perfect square (iii) A number divisible by 3.
Example: A card is drawn at random from a pack of well shuffled 52 cards. Find the probability
that the card drawn is (i) a king (ii) not a diamond (iii) An ace of red hearts or diamonds
2
Example: The Probability that a contractor will get a contract is 3 and the probability that he will
5 4
get on other contract is .If the probability of getting at least one contract is5, what is the
9
probability that he will get both the contracts?
Example: Two students X and Y work independently on a problem. The probability that X will
3 2
solve it is 4 and probability that Y will solve it is 3. What is the probability that the problem will
be solved?
Example: From well shuffled pack of 52 playing cards, one card is drawn. What is the
probability that (i) It is either red card or black card (ii) it is either a jack or an ace card (iii) it is
either red card or spade card
Example:If the probability of getting a contract A is 0.25, probability of getting contract B is
0.15 and the probability of getting at least one contract is 0.30, Calculate: (i) the probability of
getting both the contracts (ii) the probability of getting contract A only (iii) the probability of
getting contract B only (iv) the probability of not getting both the contracts (v) the probability of
not getting at least one contract
11
Conditional Probability:
Uptill now in probability, we have discussed the methods of finding the probability of events. If
we have two events from the same sample space, does the information about the occurrence of
one of the events affect the probability of the other event? Let us try to answer this question by
taking up a random experiment in which the outcomes are equally likely to occur.
Consider the experiment of tossing three fair coins. The sample space of the experiment is
S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}
Since the coins are fair, we can assign the probability 1/8 to each sample point. LetE be the event
‘at least two heads appear’ and F be the event ‘first coin shows tail’.
Then
E = {HHH, HHT, HTH, THH}
and F = {THH, THT, TTH, TTT}
Therefore P(E) = P ({HHH}) + P ({HHT}) + P ({HTH}) + P ({THH})
=1/8+ 1/8 +1/8+ 1/8 =1/2 (Why ?)
Also E ∩F = {THH}
with P(E ∩F) = P({THH}) = 1/8
Now, suppose we are given that the first coin shows tail, i.e. F occurs, then what is the
probability of occurrence of E?
With the information of occurrence of F, we are sure that the cases in which first coin does not
result into a tail should not be considered while finding the probability of E. This information
reduces our sample space from the set S to its subset F for the event E.
In other words, the additional information really amounts to telling us that the situation may be
considered as being that of a new random experiment for which the sample space consists of all
those outcomes only which are favorable to the occurrence of the event F.
Now, the sample point of F which is favorable to event E is THH.
This probability of the event E is called the conditional probability of E given that F has
already occurred, and is denoted by P (E|F).
Thus P(E|F) = 1/4
Note that the elements of F which favor the event E are the common elements of
E and F, i.e. the sample points of E ∩F.
Thus, we can also write the conditional probability of E given that F has occurred as
12
P(E|F) = Number of elementary events favorable to E ∩ F
Number of elementaryeventswhich are favorable to F
= n(E ∩ F)
n(F)
Dividing the numerator and the denominator by total number of elementary events of the sample
space, we see that P(E|F) can also be written as
Definition: If E and F are two events associated with the same sample space of a random
experiment, the conditional probability of the event E given that F has occurred,
i.e. P (E|F) is given by
P(E|F) = P(E ∩ F)
P(F)
Provided P(F)≠ 𝟎
Property 2If A and B are any two events of a sample space S and F is an event of S such that
P(F) ≠ 0,then
Solution Let b stand for boy and g for girl. The sample space of the experiment is
S = {(b, b), (g, b), (b, g), (g, g)}
Let E and F denote the following events:
E: ‘both the children are boys’
F: ‘at least one of the child is a boy’
Then E = {(b,b)} and F = {(b,b), (g,b), (b,g)}
Now E ∩F = {(b,b)}
13
Thus P(F) =3/4 and P (E ∩F)=1/4
Therefore P(E|F) =(1/4) / (3/4) = 1/3
Degree only
Under 30 90 10 100
30 to 40 20 30 50
Over 40 40 10 50
150 50 200
Example: A department store has been the target of many shoplifters during the past month,
but owing to increased security precautions, 250 shoplifters have been caught.
Each shoplifter’s sex is noted, also noted is whether he/she was a first-time or repeat
offender. The data are summarized in the table below.
Males 60 70 130
Females 44 76 120
14
b) The Probability that the shoplifter is a first-time offender, given that the shoplifter is
male. 60/130
c) The Probability that the shoplifter is female, given that the shoplifter is a repeat
offender.76/146
d) The Probability that the shoplifter is female, given that the shoplifter is a first-time
offender. 44/104
Example: In a certain college, 25% students failed in mathematics, 15% students failed in
statistics and 30% students failed in at least one of the subject selected at random. Find the
probability that (i) he failed in both mathematics and statistics
0.1
(ii) he failed in mathematics if he also failed in statistics
0.4
(iii) he failed in statistics if he also failed in mathematics
0.67
(iv)he failed in mathematics given that he passed in statistics.
Independent Events
Consider the experiment of drawing a card from a deck of 52 playing cards, in which the
elementary events are assumed to be equally likely. If E and F denote the events the card drawn
is a spade' and 'the card drawn is an ace' respectively, then
Also E and F is the event ' the card drawn is the ace of spades' so that
P(E∩F) =1/52
Hence P(E|F) = 1/4
Since P(E) =1/4 = P (E|F),
We can say that the occurrence of event F has not affected the probability of occurrence of the
event E.
We also have
P(F|E) = 1/13 =P(F)
Which shows that occurrence of event E has not affectedthe probability of occurrence of the
event F.
Thus, E and F are two events such that the probability of occurrence of one ofthem is not
affected by occurrence of the other.
Such events are called independent events.
15
P (E|F) = P (E) provided P (F) ≠ 𝟎 Thus in this definition we need to have P (E) ≠ 𝟎 and
P(F) ≠ 𝟎
Now, by the multiplication rule of probability, we have
P(E ∩F) = P(E) . P (F|E) ... (1)
If E and F are independent, then (1) becomes
P(E ∩F) = P(E) . P(F) ... (2)
Example: A die is thrown. If E is the event ‘the number appearing is a multiple of 3’ and F
be the event ‘the number appearing is even’ then find whether E and F are independent ?
SolutionWe know that the sample space is S = {1, 2, 3, 4, 5, 6}
Now E = {3, 6}, F = {2, 4, 6} and E ∩ F = {6}
Illustration1.A card is drawn from a well-shuffled pack of cards. What is the probability
that it is either a spade or an ace?
Solution:-Let A and B be the events of getting a spade and an ace card respectively.
13
𝐶1 13
P(A) = 52 =
𝐶1 52
4
𝐶1 4
P(B) = 52 =
𝐶1 52
1
𝐶1 1
𝑃(𝐴 ∩ 𝐵) = 52 =
𝐶1 52
Probability of getting either a spade or an ace card
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵)
=13/52+4/52-1/52=4/13.
16
Illustration2. The probability that a contractor will get a plumbing contract is 2/3 and the
probability that he will not get an electric contract is 5/9. If the probability of getting any
one contract is 4/5, what is the probability that he will get both the contract?
Solution:- Let A and B be the events that the contractor will get plumbing and electric contracts
respectively.
2 5 4
𝑃(𝐴) = , 𝑃(𝐵̅ ) = , 𝑃(𝐴 ∪ 𝐵) =
3 9 5
5
𝑃(𝐵) = 1 − 𝑃(𝐵̅ ) = 1 − = 4/9
9
Probability that the contractor will get any one contract
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵)
Probability that the contractor will get both the contracts
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∪ 𝐵)
2 4 4 14
=3 + 9 − 5 = 45.
EXERCISE:-
1) Two cards are drawn from a pack of cards. Find the probability that they will be both red
and both pictures.
[Ans:-188/663]
2) A box contains 4 white, 6 red, 5 black balls and 5 balls of other colors. Two balls are
drawn from the box at random. Find the probability that (i) both are white or both are red,
and (ii) both are red or both are black.
[Ans:- (i) 21/190, (ii) 5/38]
1 1
Illustration1:-If A and B are 2 events such that p(A)=2/3, 𝑃(𝐴̅ ∩ 𝐵) = 6 𝑎𝑛𝑑𝑃(𝐴 ∩ 𝐵) = 3, find
P(B), P(A∪ 𝐵), 𝑃(𝐴̅ ∪ 𝐵), P(A/B), P(B/A) and 𝑃(𝐵̅). Also examine whether the events A and B
are (i) equally likely, (ii) exhaustive, (iii) mutually exclusive, and (iv) independent
Solution:-
P(B)=𝑃(𝐴̅ ∩ 𝐵) + 𝑃(𝐴 ∩ 𝐵)=1/6+1/3=1/2.
P(A∪ 𝐵)=P(A)+P(B)-𝑃(𝐴 ∩ 𝐵)=2/3+1/2-1/3=5/6
P(A/B)
𝑃(𝐴∩𝐵) 1/3
= =1/2=2/3
𝑃(𝐵)
17
𝑃(𝐴∩𝐵) 1/3
P(B/A)= =2/3=1/2
𝑃(𝐴)
EXERCISE:-
1) If a and B are 2 events with p(A)=1/3, P(B)=1/4, 𝑃(𝐴 ∩ 𝐵) = 1/12. Find (i) P(A/B), (ii)
P(B/A), (iii) P(B/𝐴̅), and (iv) 𝑃(𝐴 ∩ 𝐵̅ ).
[Ans:- (i) 1/3, (ii) ¼, (iii) ¼, (iv) ¼]
2) Find the probability of drawing a queen and a king from a pack of cards in 2 consecutive
draws, the cards drawn not being replaced.
[Ans:- 4/663]
3) A bag contains 8 red and 5 white balls. Two successive draws of 3 balls each are made
such that (i) the balls are replaced before the Second trial, and (ii) the balls are not
replaced before the second trial. Find the probability that the first draw will give 3 white
and the second 3 red balls.
[Ans:- (i) 140/20449, (ii) 7/429]
4) From a bag containing 4 white and 6 black balls, 2 balls are drawn at random. If the balls
are drawn one after the other without replacements, find the probability that the first ball
is white and the second ball is black.
[Ans:- 4/15]
Bayes’ theorem:
Consider that there are two bags I and II. Bag I contains 2 white and 3 red balls and
Bag II contains 4 white and 5 red balls. One ball is drawn at random from one of the bags. We
can find the probability of selecting any of the bags (i.e.1/2 ) or probability of drawing a ball of a
particular colour (say white) from a particular bag (say Bag I). In other words, we can find the
probability that the ball drawn is of a particular colour, if we are given the bag from which the
ball is drawn. But, can we find the probability that the ball drawn is from a particular bag (say
Bag II), if the colour of the ball drawn is given? Here, we have to find the reverse probability of
Bag II to be selected when an event occurred after it is known. Famous mathematician, John
Bayes' solved the problem of finding reverse probability by using conditional probability. The
formula developed by him is known as ‘Bayes theorem’ which was published posthumously in
1763.
18
In conditional probability we consider the probability of an event when we have information
about the occurrence of an earlier event. Bayes theorem determines the probability of an earlier
event based on the information about the occurrence of a later event.
Statement of Baye’s Theorem: If an event A corresponds to a number of mutually exclusive
events B1 , B2 ,......Bn and if P( Bi ) and P( A Bi ) are known and P( A) 0, then
P(Bi )P(A Bi )
P(Bi A) = , i = 1,2,....n
P(B )P(A B )
n
i i
i =1
P(B1 )P ( A B1 )
P (B1 A) =
P (B1 )P ( A B1 ) + P(B2 )P ( A B2 )
P(B2 )P ( A B2 )
P (B1 A) =
P(B1 )P ( A B1 ) + P(B2 )P ( A B2 )
and
Illustration1: In a pharmaceutical factory, machines A and B manufacture 40% and 60% of the
total output. Of this production of tablets, machines A and B produce 5% and 10% defective
tablets. A tablet is picked at random and is found to be defective. What is the probability that the
tablet was produced by the machine A?
Solution: Let B1=the tablet is produced by machine A
B2=the tablet is produced by machine B.
40 60
P( B1 ) = = 0.4, P( B2 ) = = 0.6
100 100
Let D = the tablet is defective.
P(B1 )P (D B1 )
P(B1 A) =
P(B1 )P (D B1 ) + P(B2 )P (D B2 )
0.4 * 0.05 0.02
= = = 0.25
0.4 * 0.05 + 0.6 * 0.10 0.08
19
Illustration2: In a bolt factory machines A, B and C manufacture 25%, 35% and 40% of the
total. Of their output 5%, 4% and 2% are defective bolts. A bolt is drawn at random from the
product and is found to be defective. What is the probability that it was manufactured by
machine A?
Solution:
llustration3: In a railway reservation office, two clerks are engaged in checking reservation
forms. On an average the clerk A checks 55% of the forms, while the clerk B does the remaining
work. The clerk A has an error rate of 0.03 and the clerk B has an error rate of 0.02. A
reservation form is selected at random from the total number of forms checked during a day and
discovered to have an error. Find the probabilities that it was checked by the clerks A and B
respectively.
Solution: Let B1=the form is checked by the clerk A
B2= the form is checked by the clerk B.
55 45
P( B1 ) = = 0.55, P( B2 ) = = 0.45
100 100
Let A = the form selected at random has an error.
P(B1 )P( A B1 )
P (B1 A) =
P(B1 )P ( A B1 ) + P(B2 )P( A B2 )
0.55 * 0.03 165
= = = 0.647
0.55 * 0.03 + 0.45 * 0.02 255
Now, P(B2 A) = 1 − P(B1 A) = 1 − 0.647 = 0.353
Illustration4: Suppose that 5 men out of 100 and 25 women out of 10,000 are colour blind. A
colour blind person is chosen at random. What is the probability of his being male? (Assume
males and females to be in equal numbers.)
Solution: Let B1=the person is a male
B2= the person is a female.
1 1
P( B1 ) = , P( B2 ) =
2 2
Let A = the person is colour blind.
P(A B1 ) = , P(A B2 ) =
5 25
100 10000
20
We wish to find P(B1 A) . By Bayes’ theorem,
P(B1 )P( A B1 )
P(B1 A) =
P(B1 )P( A B1 ) + P(B2 )P( A B2 )
1 5
*
2 100 500 500 20
= = = =
1 5 1 25 500 + 25 525 21
* + *
2 100 2 10000
EXERCISE:-
1) A company has 2 plants to manufacture hydraulic machines. Plant I manufactures 70% of
the hydraulic machines, and plant II manufactures 30%. At plant I, 80% of hydraulic
machines are rated standard quality; and at plant II, 90% of hydraulic machines are rated
as standeard quality. A machine is picked at random and is found to be of standard
quality. What is the chance that it has come from plant I?
[Ans:- 0.6747]
2) A bag A contains 2 white and 3 red balls, and a bag B contains 4 white and 5 red balls.
One ball is drawn at random from one of the bags and it is found to be red. Find the
probability that the red ball is drawn from the bag B.
[Ans:- 25/52]
Poisson distribution:
(1) The probability that a blade manufactured by a factory is defective is
1
. Blades are packed in packets of 10 blades. Find the expected
500
number of packets containing
(i) No defective blade
(ii) One defective blade
(iii) 2 defective blades, in a consignment of 10,000 packets.
( e −0.02 = 0.9802 )
(2) Between the hours of 2 and 4 pm the average number of phone calls
per minute coming into the switch board of a company is 2.5. Find the
probabilities that during the one particular minute there will be
(i) No phone call at all
(ii) Exactly 3 calls (e −2.5 = 0.0821)
(3) The probability that patient will get reaction of a particular injection is
0.001. 2000 patients are given that injection. Find the probabilities that
(i) 3 patients will get reaction
21
(ii) More than 2 patients will get reaction.
(e = 0.135)
−2
Probability Distributions
Overview:
The theory of probability owes its origins to the study of games of chance or gambling. For
example the chance of winning a cricket match, the chance of getting pass in examination, the
chance of getting railway ticket booking confirmed etc. Probability theory is designed to deal
with uncertainties regarding happening of given phenomena. Thus when we throw a coin, a head
is likely to occur but may not occur. When a product is manufactured may or may not defective.
The cricket board refers numbers of names in the list who are likely to play for the country but
are not certain to be included in the team.
RANDOM VARIABLE:-
A random variable is a numerical description of the outcome of an experiment.
In effect, a random variable associates a numerical value with each possible experimental
outcome. The particular numerical value of the random variable depends on the outcome of the
experiment. A random variable can be classified as being either discrete or continuous depending
on the numerical values it assumes.
22
Discrete Probability Distributions:-
The probability distributionfor a random variable describes how probabilities are distributed
over the values of the random variable. For a discrete random variable x, the probability
distribution is defined by a probability function, denoted by f (x). The probabilityfunction
provides the probability for each value of the random variable.
f ( x) 0
f ( x) = 1
DISCRETE UNIFORM PROBABILITY FUNCTION
f ( x) = 1/ n
Where, n = the number of values the random variable may assume
For example, suppose that for the experiment of rolling a die we define the randomvariable x to
be the number of dots on the upward face. For this experiment, n= 6 valuesare possible for the
random variable; x = 1, 2, 3, 4, 5, 6. Thus, the probability function forthis discrete uniform
random variable is
f ( x) = 1/ 6 x = 1, 2,3, 4,5,6
The possible values of the random variable and the associated probabilities are shown.
23
Expected Value and Variance:-
Expected Value:- The expected value, or mean, of a random variable is a measure of the central
location for the random variable. The formula for the expected value of a discrete random
variable x follows.
Variance:-
Even though the expected value provides the mean value for the random variable, we oftenneed a
measure of variability, or dispersion. We now use varianceto summarize the variability in the
values of a random variable. The formula for the variance of a discrete random variable follows.
Var ( x) = 2 = ( x − )2 f ( x)
The notations Var ( x) and 2 are both used to denote the variance of a randomvariable. The
standard deviation, σ, is defined as the positive square rootof the variance.
24
Var ( x) = E ( x − ) 2
= E ( x 2 − 2 x + 2 )
= E ( x 2 ) − 2 E ( x) + E ( 2 )
= E ( x 2 ) − 2 + 2
= E( x2 ) − 2
= E ( x 2 ) − [ E ( x)]2
Some properties of variance:
(1) If k is a constant , V (k ) = 0
(2) V (kx) = k 2V ( x)
(3) V (ax + b) = a 2V ( x)
(4) If x and y are two independent random variables V (ax + by ) = a 2V ( x) + b 2V ( x)
Example: 1. A tray of electronics components contains nine good components and three
defective components. If two components are selected at random, what is the expected
number of defective components?
Sol : Let a random variable X be the number of defective components selected.
X can have the value 0,1,or 2. We need the probability of each of those numbers.
P(0) = Probability of no. of defective
= 9C2 / 12C2
= 36 / 66
= 12 / 22
P(1) = Probability of 1good and 1 defective
= 9C1. 3C1 / 12C2
= 27 / 66
= 9/ 22
P(2) = Probability of two defective
= 3C2 / 12C2
= 3 / 66
= 1 / 22
The expected value is
E(X) = 12/22 (0) + 9/22 (1) +1/22 (2)
= 11/22. = ½. So the expected number of components is ½.
25
Example: 2 Which of the following functions are probability density function?
(i) F(x) = (1/2)x (1/2)1-x; x =0,1
Sol:
x 0 1
F(x) .5 .5
∑ 𝑋𝑃(𝑥) ∑ 𝑥 2 𝑃(𝑥)
=0 = 1.6
From the table , We have
(i) E(x) = ∑ 𝑋𝑃(𝑥) =0
26
(ii) E(x2) =∑ 𝑥 2 𝑃(𝑥) = 1.6
Exercise :
Example: 1 Two unbiased coins are tossed. Find expected values of number of heads.
Example: 2 In a lottery of 10,000 tickets, only one ticket bears a prize of Rs. 5,000. The
price of a ticket is Rs. 100. Rakesh has one ticket of this lottery. Find his expectation.
Example:3 The probability distribution of demand of a commodity is given below:
Demand x 5 6 7 8 9 10
Probability 0.05 0.1 0.3 0.4 0.1 0.05
p(x)
Find the expected demand and its variance.
A Binomial Experiment
A binomial experimentexhibits the following four properties.
27
4. The trials are independent. If properties 2, 3, and 4 are present, we say the trials are generated
by a Bernoulli process. If, in addition, property 1 is present, we say we have a binomial
experiment. Figure 1 depicts one possible sequence of successes and failures for a binomial
experiment involving eight trials.
In a binomial experiment, our interest is in the number of successes occurring in the n trials. If
we let x denote the number of successes occurring in the n trials, we see that x can assume the
values of 0, 1, 2, 3,..., n . Because the number of values is finite, x is a discrete random variable.
The probability distribution associated with this random variable is called the binomial
probability distribution.
For example, consider the experiment of tossing acoin five times and on each toss observing
whether the coin lands with a head or a tail onits upward face. Suppose we want to count the
number of heads appearing over the fivetosses. Does this experiment show the properties of a
binomial experiment? What is the random variable of interest? Note that:
1. The experiment consists of five identical trials; each trial involves the tossing ofone coin.
2. Two outcomes are possible for each trial: a head or a tail. We can designate head asuccess and
tail a
failure.
3. The probability of a head and the probability of a tail are the same for each trial,
with p =0.5 and 1 − p =0.5.
4. The trials or tosses are independent because the outcome on any one trial is not affected by
what
happens on other trials or tosses.
In applications involving binomial experiments, a special mathematical formula, calledthe
binomial probability function, can be used to compute the probability of x successesin the n
trials.
The number of experimental outcomes resulting in exactly x successes in n trials canbe
computed using the following formula.
28
BINOMIAL PROBABILITY FUNCTION
n
f ( x) = p x (1 − p )( n − x )
x
where
f ( x) = the probability of x successes in n trials
n = the number of trials
n n!
=
x x !(n − x)!
p = the probability of a success on any one trial
1 − p = the probability of a failure on any one trial
Expected Value and Variance for the Binomial Distribution
we provided formulas for computing the expected value and varianceof a discrete random
variable. In the special case where the random variable has a binomial distribution with a known
number of trials n and a known probability of success p ,the general formulas for the expected
value and variance can be simplified. The resultsfollow.
Mean :-
= E ( x)
= x f ( x)
= x nC x p x q n − x
xn !
= p x q n− x
x !(n − x)!
xn(n − 1)!
= p x q n− x
x( x − 1)!(n − x)!
(n − 1)!
= np p x −1q n − x
( x − 1)!(n − x)!
= np ( n −1)C( x −1) p x −1q n − x
= np ( p + q ) n −1
= np (1) n −1
= np
MEAN OF BINOMIAL DISTRIBUTION IS np
Variance = E ( x) 2 − [ E ( x)]2
29
E ( x 2 ) = E x[( x − 1) + x]
= E x( x − 1) f ( x) + xf ( x)
E x( x − 1) f ( x) = x( x − 1) nC x p x q n − x
x( x − 1)n ! x n − x
= p q
x !(n − x)!
x( x − 1)n(n − 1)(n − 2)! x n − x
= p q
x( x − 1)( x − 2)!(n − x)!
(n − 2)!
= n(n − 1) p 2 p x−2q n− x
( x − 2)!(n − x)!
= n(n − 1) p 2 ( n − 2)C( x − 2) p x − 2 q n − x
= n(n − 1) p 2 ( p + q ) n − 2
= n(n − 1) p 2 (1)
= n(n − 1) p 2
E ( x 2 ) = E x[( x − 1) + x]
= E x( x − 1) f ( x) + xf ( x)
= n(n − 1) p 2 + np
V ( x) = E ( x 2 ) − [ E ( x)]2
= n(n − 1) p 2 + np − (np ) 2
= n 2 p 2 − np 2 + np − n 2 p 2
= np − np 2
= np(1 − p )
= npq
30
Example 1 For the binomial distribution with n = 20, p = 0.35.Find mean and variance of
binomial distribution.
Sol:
n = 20 p = 0.35 q = 1-p =0.65
Mean = 𝜇 = np = 20(0.35) = 7
Variance = 𝜎 2 = npq. = (20)(0.35)(0.65) = 4.55
𝜎 = √𝑛𝑝𝑞= 2.133.
Example 2 An unbiased coin is tossed 6 times. Find the probability of getting (i) exactly 4
heads (ii) at least 4 heads.
Sol: Probability of getting head in each trial p = ½.
q = 1-p = ½.
Now the coin is tossed 6 times
So, n = 6.
1 6
= 6𝐶𝑥 (2) ;
1 6
P(6) = 6𝐶6 (2) = 1/64.
31
Exercise:
Example: 1 For the binomial distribution with n = 160, p = 0.21.
Example: 2 The probability that a man aged 60 will live up to 70 is 0.65. What is the
probability that out of 10 such men now at 60 at least 7 will live up to 70?
In this section we consider a discrete random variable that is often useful in estimating the
number of occurrences over a specified interval of time or space. For example, the random
variable of interest might be the number of arrivals at a car wash in one hour, the number of
repairs needed in 10 miles of highway, or the number of leaks in 100 miles of pipeline. If the
following two properties are satisfied, the number of occurrences is a random variable described
by the Poisson probability distribution.
1.The probability of an occurrence is the same for any two intervals of equal length.
2. The occurrence or nonoccurrence in any interval is independent of the occurrence or
nonoccurrence in any other interval.
x e−
f ( x) =
x!
32
\Variance of Poisson distribution:
Variance = E ( x) 2 − [ E ( x)]2
E ( x 2 ) = x 2 f ( x)
= [ x( x − 1) + x] f ( x)
= x( x − 1) f ( x) + x. f ( x)
x e−
Now, x( x − 1) x!
x e−
= x( x − 1)
x( x − 1)( x − 2)!
x−2 −
e
= 2
( x − 2)!
= 2 (1)
= 2
E ( x 2 ) = E[ x( x − 1) + x]
= E ( x( x − 1)) + E ( x)
= 2 +
V ( x) = E ( x 2 ) − [ E ( x)]2
= 2 + − 2
=
The following are some of the instances where Poisson distribution can be applied:
1. Number of accidents on a road.
2. Number of miss prints per page of a book.
3. Number of defects in a radio set.
4. Number of air bubbles in a glass bottles.
Example 1The variate X has a poisson distribution and is given that P(X = 2) = 0.25 and
P(X =3) = 0.125 Find P(X = 0) ,P(X = 1) and P(X< 3).
Sol: From the recurrence relation
𝜆
P(x+1) = 𝑥+1 𝑝(𝑥)
𝜆
P(3) = 3 𝑝(2)
33
𝜆
0.125 = 3 (0.25)
So, 𝜆 = 1.5.
Hence P(X=0) = 𝑒 −1.5= 0.223.
P(X = 1) = 0.335.
1.52
P(X< 3) = P(X≤ 2) = 𝑒 −1.5 ∑2𝑥=0 = 0.808
𝑥!
Example2 100 electric bulbs are found to be defective in a lot of 5000 bulbs. Find the
probability that at the most 3 bulbs are defective in a box of 100 bulbs (𝒆−𝟐 = 𝟎. 𝟏𝟑𝟓𝟑)
Sol:
Probability that a bulb is defective = p = 100/5000. = 0.02
In a box there are 100 bulbs
n = 100
np = 𝜆 = 100(0.02) = 2
By Poisson distribution ,the Probability that x bulbs are defective is P(x).
𝑒 −𝜆 𝜆𝑥
Where P(x) = ,𝜆 = 2
𝑥!
= 𝑒 −2 (1 + 2 + 2 + 1.33)
= 0.1353 * 6.33
= 0.8924.
Exercise :
Example 1: For Poisson variate X; it P(X = 3) = P(X = 4) then ,find P(X = 0).
[Ans : 0.018]
Example2 :Certain mass Produced articles of which 0.5% are defective ,are packed in
cartons each containing 100. What proportion of cartons are free from defective articles ,
and what proportion contain 3 or more defective ?
34
Example3: There are 100 misprints in a book of 100 pages. If a page is selected at random,
find the probabilities that (i) there will be no misprint in the page (ii) there will be 1
misprint (iii) there will be at the most 2 misprints.
35
Normal Distribution:
The most important probability distribution for describing a continuous random variable is
thenormal probability distribution. The normal distribution has been used in a wide variety
of practical applications in which the random variables are heights and weights of
people, test scores, scientific measurements, amounts of rainfall, and other similar values.
It is also widely used in statistical inference, which is the major topic of the remainder of
this book. In such applications, the normal distribution provides a description of the likely
results obtained through sampling.
Normal Curve
The form, or shape, of the normal distribution is bell-shaped normal curve. The probability
density function that defines the bell-shaped curve of the normal distribution follows.
2
1 (𝑥−𝜇)
−
𝑓(𝑥) = 𝑒 2𝜎2
𝜎√2𝜋
b. 95.4% of the values of a normal random variable are within plus or minus two standard
deviations of its mean.
c. 99.7% of the values of a normal random variable are within plus or minus three standard
deviations of its mean.
36
Standard Normal Probability Distribution
A random variable that has a normal distribution with a mean of zero and a standard deviation
of one is said to have a standard normal probability distribution. The letter z is
commonly used to designate this particular normal random variable. Figure 6.5 is the graph
of the standard normal distribution. It has the same general appearance as other normal
distributions,
but with the special properties of 𝜇 = 0 and 𝜎 = 1.
EXAMPLE :1 What is the probability that a standard normal variate Z will be (i)
greater than 1.09? (ii) less than -1.65? (iii) lying between -1 and 1.96 ? (iv)lying between
1.25 And 2.75?
Solution:
(i) Z > 1.09
P(Z > 1.09) = 0.5 – P(0≤ 𝑍 ≤ 1.09)
= 0.5 – 0.3621 = 0.1379
(ii) Z≤ −1.65
P(Z≤ −1.65) = 1 − 𝑃(𝑍 > −1.65)
= 1 – P[0.5 + P(-1.65 < Z <0)]
= 1 – P[0.5 + P(0 < Z <1.65)](By symmetry)
= 0.5 - P(0 < Z <1.65)
= 0.5 – 0.4505
= 0.0495
(iii) P(-1 < Z <1.96)
= P(-1 < Z <0)+ P(0 < Z <1.96)
= P(0 < Z <1)+ P(0 < Z <1.96)
= 0.3413 + 0.4750
= 0.8163
37
(iv) P(1.25< Z < 2.75)
= P(0< Z <2.75)- P(0< Z <1.25)
= 0.4970-0.3944
= 0.1026
Example2 :
Students at Nirma Institute of Technology spend average of 24.3 hours per week on
homework ,with a standard deviation of 1.4 hours.
(a) What percentage of students spend more than 28 hours per week on homework?
(b) What is the probability that a student spends more than 28 hours per week on
homework
Sol:
(a) The value of z corresponding to 28 hours is
𝑥−𝜇 28−24.3 3.7
Z= = = 1.4 = 2.64
𝜎 1.4
Example 3
A sample of 100 dry battery cells tested and found that average life of 12 hours and a
standard deviation 3 hours .Assuming the data to be normally distributed, What
percentage of battery cells are expected to have life (i)more than 15 hours (ii) less than 6
hours (iii) between10 to 14 hours ?
Sol:
𝐻𝑒𝑟𝑒 𝜇 = 12 hours 𝜎 = 3 hours
38
𝑥−𝜇 𝑥−12
Z= =
𝜎 3
(i) When x = 15 , z = 1
P( X> 15) = P( Z > 1)
= P( 0 < z < ∞) – P( 0 < z < 1 )
= 0.5 – 0.3413.
= 0.1587 = 15.87%
(ii) When x = 6 , z = -2
P( X< 6) = P( Z < -2)
= P( z > 2)
= P( 0 < z < ∞) – P( 0 < z < 2 )
= 0.5 – 0.4772.
= 0.0228 = 2.28%
39