Probability
Probability
Few centuries ago, gambling and gaming were considered to be fashionable and
became widely popular among many men. As the games became more
complicated, players were interested in knowing the chances of winning or losing a
game from a given situation. In 1654, Chevalier de Mere, a French nobleman with
a taste of gambling, wrote a letter to one of the prominent mathematician of the
time, Blaise Pascal, seeking his advice about how much dividend he would get for
a gambling game played by paying money. Pascal worked this problem
mathematically but thought of sharing this problem and see how his good friend
and mathematician Pierre de Fermat could solve. Their subsequent
correspondences on the issue represented the birth of Probability Theory as a new
branch of mathematics.
i) Random Experiment
If an experiment or trial can be repeated under the same conditions, any number of
times and it is possible to count the total number of outcomes, but individual result
ie., individual outcome is not predictable, then the experiment is known as random
experiment.
Example: Tossing a coin, throwing a die, selecting a card from a pack of playing
cards, etc.
(ii) Outcome:
The result of a random experiment will be called an outcome, events .
Events are said to be mutually exclusive if the happening of any one of them
precludes the happening of all the others, ie., if no two or more of them can happen
simultaneously in the same trial. Symbolically the event A and B are mutually
exclusive if A ∩ B = ∅ .
Events (two or more) of an experiment are said to be equally likely, if any one of
them cannot be expected to occur in preference to the others.
Biased unbiased
1 2’ 10
(i) 0≤P(E)≤1
Therefore n = 2
The favorable outcome for getting a head {H}. Therefore m =1. Thus the required
probability is
Example : If two coin tossed at a time. Find the probability of getting
i) one head ii)two heads iii)three heads iv)at least two heads v)more than one
heads.
When we toss two coins, then from the tree diagram (Fig.8.4), the sample space
can be written as S={HH,HT,TH,TT}
F(x)= x= 0,1,2
HH 2
HT 1
TH 1
TT 0
Example: The king and queen of diamonds, queen and jack of hearts, jack and
king of spades are removed from a deck of 52 playing cards and then well shuffled.
Now one card is drawn at random from the remaining cards. Determine the
probability that the card is
(i) a clavor
(i) White
Illustration
(i) When we throw a die, then from the tree diagram (Fig.8.3), the sample space
can be written as S = {1,2,3,4,5,6}
(ii) When we toss two coins, then from the tree diagram (Fig.8.4), the sample space
can be written as S={HH,HT,TH,TT}
Example Express the sample space for rolling two dice using tree diagram.
Solution When we roll two dice, since each die contain 6 faces marked
with 1,2,3,4,5,6 the tree diagram will look like
Hence, the sample space can be written as
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,5),(5,6)
(6,1),(6,2),(6,3),(6,4),(6,5),(6,6)}
(x) Modern Definition of Probability
The modern approach to probability is purely axiomatic and it is based on the set
theory concepts. In order to study, the theory of probability with an axiomatic
approach it is necessary to define certain basic concepts. They are
Then A∩B = ϕ
(xi) Observation:
Theorem 1:
Then P( ∅ ) = 0 i.e., probability of an impossible event is zero.
Theorem 2:
i)If the two events A and B are mutually exclusive then A∩B = ∅
∴P(A∩B) = 0
ii)If A and B are any two events are not mutually exclusive events then (additive
law)
P A ∪ B = P A + P B − P A ∩ B
The addition theorem may be extended to any three events A,B,C and we have
P ∪ B ∪ C = P A) + P ( B+ P C − P A∩ B − P A ∩ C − P B ∩ CP A
∩ B∩C
Proof
(i) Let A and B be any two events of a random experiment with sample space S.
From the Venn diagram, we have the events only A, A Ո B and only B are mutually
exclusive and their union is A U B
= P(only A) +P (A ∩ B) + P(only B)
P (A U B) = P (A) + P (B ) − P (A ∩ B)
(ii) Let A, B, C are any three events of a random experiment with sample space S.
Let D = B ∪C
P (A U B UC) = P (A ∪ D)
= P (A) + P (D ) − P (A ∩ D)
Example
Solution
P (A U B) = P (A) + P (B ) − P (A ∩ B)
P (A U B) = 0.37 + 0.42 − 0.09 = 0. 7
Example
What is the probability of drawing either a king or a queen in a single draw from a
well shuffled pack of 52 cards?
Solution
Both the events of drawing a king and a queen are mutually exclusive
⇒ P (A ∪ B) = P (A) + P (B)
Example
Two dice are rolled together. Find the probability of getting a doublet or sum of
faces as 4.
Solution
When two dice are rolled together, there will be 6×6 = 36 outcomes. Let S be the
sample space. Then n (S) = 36
Let A be the event of getting a doublet and B be the event of getting face sum 4.
Then A = {(1,1),(2,2),(3,3),(4,4),(5,5),(6,6)}
B = {(1,3),(2,2),(3,1)}
Therefore, A Ո B = {(2,2)}
P (A U B) = P (A) + P (B ) − P (A ∩ B)
Example
If A and B are two events such that P (A) = 1/4 , P (B) = 1/2 and P(A and B)= 1/8,
find (i) P (A or B) (ii) P(not A and not B).
Solution
(i) P (A or B) = P (A U B)
= P (A) + P (B ) − P (A ∩ B)
=P
= 1 − P (A ∪ B)
P(not A and not B) = 1 – 5/8 = 3/8
Example
A card is drawn from a pack of 52 cards. Find the probability of getting a king or a
heart or a red card.
Solution
= 7/13
Example:
The probability that a person will get an electrification contract is 3/5 and the
probability that he will not get plumbing contract is 5/8. The probability of getting
at least one contract is 5/7. What is the probability that he will get both?
Example. In a town of 8000 people, 1300 are over 50 years and 3000 are females.
It is known that 30% of the females are over 50 years. What is the probability that
a chosen individual from the town is either a female or over 50 years?
Example
In a class of 50 students, 28 opted for NCC, 30 opted for NSS and 18 opted both
NCC and NSS. One of the students is selected at random. Find the probability that
Solution
Let A and B be the events of students opted for NCC and NSS respectively.
n (A) = 28 , n (B) = 30 , n (A ∩ B) = 18
(i) Probability of the students opted for NCC but not NSS
(ii) Probability of the students opted for NSS but not NCC.
Independent Events
Events are said to be independent if occurrence or non-occurrence of any one of
the event does not affect the probability of occurrence or non-occurrence of the
other events.
Two events A and B are said to be independent if and only if
P ( A ∩ B ) = P ( A) ⋅ P ( B)
Example
An unbiased die is thrown. If A is the event ‘the number appearing is a multiple of
3’ and B be the event ‘the number appearing is even’ number then find
whether A and B are independent?
Solution:
Where:
P(A ⋂ B) is the notation for the joint probability of event “A” and
“B”.
P(A) is the probability of event “A” occurring.
P(B) is the probability of event “B” occurring.
Conditional probability
A number is selected randomly from the digits11 through 19. Consider the events
Solution:
Therefore, the probability for the occurrence of A given that B has occurred is
Example A pair of dice is rolled and the faces are noted. Let
C: the faces are different then find (i) P (A/C) (ii) P (B/C)
Solution:
A = { (1,2), (1,4), (1,6), (2,1), (2,3), (2,5), (3,2), (3,4), (3,6), (4,1), (4,3), (4,5),
(5,2), (5,4), (5,6), (6,1), (6,3), (6,5) }
B = { (3,6), (4,5), (4,6), (5,4), (5,5), (5,6), (6,3), (6,4), (6,5), (6,6) }
C = { (1,2), (1,3), (1,4), (1,5), (1,6), (2,1), (2,3), (2,4), (2,5), (2,6), (3,1), (3,2),
(3,4), (3,5), (3,6), (4,1), (4,2), (4,3), (4,5), (4,6), (5,1), (5,2), (5,3), (5,4), (5,6),
(6,1), (6,2), (6,3), (6,4), (6,5) }
Since A and B are proper subsets of C, A∩C = A and B∩C = B.
Hence, the probability for the sum of the faces is an odd number given that the
faces are different is
Similarly, the probability for the sum of the faces exceeds 8 given that the faces are
different is
Example
A bag contains 5 white and 3 black balls. Two balls are drawn at random one after
the other without replacement. Find the probability that both balls drawn are black.
Solution:
Let A, B be the events of getting a black ball in the first and second draw
Probability of drawing a black ball in the first attempt is
Probability of drawing the second black ball given that the first ball drawn is black
Example
Find the probability of drawing a queen, a king and a knave (Jack) in that order
from a pack of cards in three consecutive draws, the card drawn not being
replaced.
Solution :
Let
There are 4000 people living in a village including 1500 female. Among the people
in the village, the age of 1000 people is above 25 years which includes 400 female.
Suppose a person is chosen and you are told that the chosen person is a female.
What is the probability that her age is above 25 years?
Solution:
Here, the event of interest is selecting a female with age above 25 years. In
connection with the occurrence of this event, the following two events must
happen.
Situation1:
We are interested in the event B, given that A has occurred. This event can be
denoted by B|A. It can be read as “B given A”. It means that first the event A occurs
then under that condition, B occurs. Here, we want to find the probability for the
occurrence of B|A i.e., P(B|A). This probability is called conditional probability. In
reverse, the probability for selecting a female given that a person has been selected
with age above 25 years is denoted by P(A|B).
Situation 2:
Suppose that it is interested to select a person who is both female and with age
above 25 years. This event can be denoted by A ∩B.
multiplication theorem P ( A ∩ B) = P ( B /A ) P ( A )
i i i
Example
A factory has two machines I and II. Machine I produces 40% of items of the
output and Machine II produces 60% of the items. Further 4% of items produced
by Machine I are defective and 5% produced by Machine II are defective. An item
is drawn at random. If the drawn item is defective, find the probability that it was
produced by Machine II. (See the previous example, compare the questions).
Solution
Let A be the event that the items are produced by Machine-I, A be the event that
1 2
items are produced by Machine-II. Let B be the event of drawing a defective item.
Now we are asked to find the conditional probability P (A / B). Since A , A are
2 1 2
P ( A ) = 0.60, P (B / A ) = 0.05
2 2
Example
A construction company employs 2 executive engineers. Engineer-1 does the work
for 60% of jobs of the company. Engineer-2 does the work for 40% of jobs of the
company. It is known from the past experience that the probability of an error
when engineer-1 does the work is 0.03, whereas the probability of an error in the
work of engineer-2 is 0.04. Suppose a serious error occurs in the work, which
engineer would you guess did the work?
Solution
Let A and A be the events of job done by engineer-1 and engineer-2 of the
1 2
company respectively. Let B be the event that the error occurs in the work.
We have to find the conditional probability
P (A / B ) and P (A / B) to compare their errors in their work.
1 2
P (A ) = 0.40, P (B / A ) = 0.04
2 2
Since P (A1 / B ) > P (A2 / B) , the chance of error done by engineer-1 is greater
than the chance of error done by engineer-2. Therefore one may guess that the
serious error would have been be done by engineer-1.
Example
The chances of X, Y and Z becoming managers of a certain company are 4 : 2 : 3.
The probabilities that bonus scheme will be introduced if X, Y and Z become
managers are 0.3, 0.5 and 0.4 respectively. If the bonus scheme has been
introduced, what is the probability that Z was appointed as the manager?
Solution
Let A , A and A be the events of X, Y and Z becoming managers of the company
1 2 3
respectively. Let B be the event that the bonus scheme will be introduced.
We have to find the conditional probability P ( A / B).
3
Since A , A and A are mutually exclusive and exhaustive events, applying Bayes’
1 2 3
theorem
Example
A consulting firm rents car from three agencies such that 50% from agency L, 30%
from agency M and 20% from agency N. If 90% of the cars from L, 70% of cars
from M and 60% of the cars from N are in good conditions (i) what is the
probability that the firm will get a car in good condition? (ii) if a car is in good
condition, what is probability that it has come from agency N?
Solution
Let A , A , and A be the events that the cars are rented from the agencies X, Y
1 2 3
and Z respectively.
P ( A ) = 0.50, P (G / A ) = 0.90
1 1
P ( A ) = 0.30, P (G / A ) = 0.70
2 2
P (A ) = 0.20, P (G / A ) = 0.60.
3 3
(i) Since A , A and A are mutually exclusive and exhaustive events and G is an
1 2 3
By Bayes’ theorem,
EXERCISE
(1) A factory has two Machines-I and II. Machine-I produces 60% of items and
Machine-II produces 40% of the items of the total output. Further 2% of the items
produced by Machine-I are defective whereas 4% produced by Machine-II are
defective. If an item is drawn at random what is the probability that it is defective?
(2) There are two identical urns containing respectively 6 black and 4 red balls, 2
black and 2 red balls. An urn is chosen at random and a ball is drawn from it. (i)
find the probability that the ball is black (ii) if the ball is black, what is the
probability that it is from the first urn?
(3) A firm manufactures PVC pipes in three plants viz, X, Y and Z. The daily
production volumes from the three firms X, Y and Z are respectively 2000 units,
3000 units and 5000 units. It is known from the past experience that 3% of the
output from plant X, 4% from plant Y and 2% from plant Z are defective. A pipe is
selected at random from a day’s total production,
(i) find the probability that the selected pipe is a defective one.
(ii) if the selected pipe is a defective, then what is the probability that it was
produced by plant Y ?
(4) The chances of A, B and C becoming manager of a certain company are 5 : 3 :
2. The probabilities that the office canteen will be improved i f A, B, and C become
managers are 0.4, 0.5 and 0.3 respectively. If the office canteen has been improved,
what is the probability that B was appointed as the manager?
A probability distribution is a statistical function that describes all the possible values and likelihoods
that a random variable can take within a given range. This range will be between the minimum and
maximum statistically possible values, but where the possible value is likely to be plotted on the
probability distribution depends on a number of factors. These factors include the distribution's mean,
standard deviation, skewness and kurtosis.
An example will make clear the relationship between random variables and probability distributions.
Suppose you flip a coin two times. This simple statistical experiment can have four possible outcomes:
HH, HT, TH, and TT. Now, let the variable X represent the number of Heads that result from this
experiment. The variable X can take on the values 0, 1, or 2. In this example, X is a random variable;
because its value is determined by the outcome of a statistical experiment.
Example
A probability function is associated with each value of the random variable. This
function is used to compute probabilities for events associated with the random
variables. The probability function defined for a discrete random variable is called
probability mass function. The probability function associated with continuous
random variable is called probability density function.
Probability Mass Function
then p(x) is known as the probability mass function (p.m.f) of the discrete random
variable X.
Example
A coin is tossed two times. If X is the number of heads, find the probability mass
function of X.
Solution:
Since the coin is tossed two times, the sample space is S={HH, HT, TH, TT}
If X denotes the numbers of heads, the possible values of X are 0,1,2 with the
following
Example
In example 9.3 the probability mass function of X is given in the following table
A random variable X which can take on any value (integral as well as fraction) in
the interval is called continuous random variable.
The length of time taken by a truck driver to go from Chennai to Madurai, etc.
The probability that a random variable X takes a value in the interval [t , t ] (open
1 2
P ( t1 ≤ X ≤t2 )= ∫ 1 f (x)dx .
t2
t X
Other names that are used instead of probability density function include density
function, continuous probability function, integrating density function.
The probability density functions f (x) or simply by f (x) must satisfy the
X
following conditions.
(i) f ( x) ≥ 0 ∀ x and
(ii) ∞∫ f (x)dx = 1 .
-∞
\\
Example
f (x) = ax , 0 ≤ x ≤ 1
Solution:
Example
f(x) = 5x ,0 ≤ x ≤ 1
4
Solution
Continuous distribution function
Definition
(ii)
(iii) F(⋅) is a monotone, non-decreasing function; that is, F (a)≤ F (b) for a <b .
(v)
(vi)
(vii)
= P (X ≤ b) − P(X ≤ a)
= F (b) − F (a)
Example
Suppose, the life in hours of a radio tube has the following p.d.f
Find the distribution function.
Solution:
Example
The amount of bread (in hundreds of pounds) x that a certain bakery is able to sell
in a day is found to be a numerical valued random phenomenon, with a probability
function specified by the probability density function f (x) is given by
(b) What is the probability that the number of pounds of bread that will be sold
tomorrow is
Solution:
(b) (i) The probability that the number of pounds of bread that will be sold
tomorrow is more than 10 pounds is given by
(ii) The probability that the number of pounds of bread that will be sold tomorrow
is less than 10 pounds, is given by
(iii) The probability that the number of pounds of bread that will be sold tomorrow is
between 5 and 15 pounds is
Let (X, Y) be a discrete bivariate random variable. Then p (x, y) is called the joint
probability mass function of (X, Y) if the following conditions are satisfied.
Definition (Marginal Probability Mass Function)
Given a joint probability mass function p (x, y), then p (x) = Σ p(x,y) is called
y
Example
There are 10 tickets in a bag which are numbered 1, 2, 3, ...10. Two tickets are
drawn at random one after the other with replacement.
Here, random variable X denotes the number on the first ticket and random
variable Y denotes the number on the second ticket.
As we defined in section 9.5.1 the joint probability mass function, we define the
joint probability density function.
Definition:
Proof:
Solution:
Example
Solution: