Proba
Proba
Proba
Probability
Let E be a random experiment (where we ‘know’ all possible outcomes but can’t predict
what the particular outcome will be when the experiment is conducted). The set of all
possible outcomes is called a sample space for the random experiment E.
Example 1:
Toss two coins and observe the sequence of heads and tails. A sample space for this
experiment could be S = {HH , TH , HT , TT }. If however we only observe the number
of heads got, the sample space would be S = {0, 1, 2}.
Example 2:
Toss two fair dice and observe the two numbers on the top. A sample space would be
If however, we are interested only in the sum of the two numbers on the top, the
sample space could be S = { 2, 3, …, 12}.
Example 3:
1
Example 4:
Events
Example 5:
Suppose a balanced die is rolled and we observe the number on the top. Let A be the
event: an even number occurs.
Thus in symbols,
A = {2,4,6} ⊂ S = {1,2,3,4,5,6}
Two events are said to be mutually exclusive if they cannot occur together; that is there
is no element common between them.
In the above example if B is the event: an odd number occurs, i.e. B = {1,3,5} , then A and
B are mutually exclusive.
Solved Examples
Example 1:
(a) region 2 (b) regions 1 and 3 together (c) regions 3, 5, 6 and 8 together.
2
A B
7 2 5
1
4 3
C 6
8
Solution:
(a) Since this region is contained in A and B but not in C, it represents the event that
the shaft is too large and the windings improper but the electrical connections are
satisfactory.
(b) Since this region is common to B and C, it represents the event that the windings
are improper and the electrical connections are unsatisfactory. (c) Since this is the
entire region outside A, it represents the event that the shaft size is not too large.
Example 2:
A carton of 12 rechargeable batteries contain one that is defective. In how many ways can
the inspector choose three of the batteries and
Solution:
(a) one defective can be chosen in one way and two good ones can be chosen in
11
= 55 ways. Hence one defective and two good can be chosen in 1 x 55 = 55
2
ways.
11
(b) Three good ones can be chosen in = 165 ways
3
3
AXIOMS OF PROBABILITY
(i) 0 ≤ P ( A) ≤ 1
(ii) P (S ) = 1
(iii) If A and B are any two mutually exclusive events, then
P ( A ∪ B ) = P ( A) + P ( B )
(iv) If {A1, A2 - - - - - -An , …} is a sequence of pair- wise mutually exclusive
events, then P ( A1 ∪ A2 ∪ ... ∪ An ∪ ...) = P ( A1 ) + P ( A2 ) + ... + P ( An ) + ...
Axiom 1 says that the probability of an event is always a number between 0 and 1.
Axiom 2 says that the probability of the certain event S is 1. Axiom 3 says that the
probability is an additive set function.
1. P(φ ) = 0
Proof: S= S ∪ φ .. Now S and φ are disjoint.
Hence P ( S ) = P ( S ) + P (φ ) P (φ ) = 0. Q.E.D.
Proof: By induction on n.
Def.: If A is an event
A′ the complementary event = S-A (It is the shaded portion in the figure below)
4
3. P ( A′) = 1 − P ( A)
Proof: S = A ∪ A ′
Now P ( S ) = P ( A) + P ( A′) as A and A ′ are disjoint or 1 = P ( A) + P ( A′) .
Thus P ( A′) = 1 − P ( A) . Q.E.D.
4. Probability is a
subtractive set function; i.e.
B
If A ⊂ B , then A
P ( B − A) = P ( B ) − P ( A) .
∴ P( A ∪ B ) = P( A) + P ( B) − P( A ∩ B ) . Q.E.D.
5
Proof:
P(A ∪ B ∪ C) = P(A ∪ B) + P(C) − P((A ∪ B) ∩ C )
= P(A) + P(B) − P(A ∩ B) + P(C) − P((A ∪ B) ∩ C)
= P(A) + P(B) + P(C) − P(A ∩ B) − P((A ∩ C) ∪ (B ∩ C))
= P(A) + P(B) + P(C) − P(A ∩ B) − P(A ∩ C) − P(B ∩ C) + P(A ∩ B ∩ C)
More generally,
+ (−1) n −1 P(A1 ∩ A 2 ∩ − − − − − − − ∩ A n )
Finite Sample Space (in which all outcomes are equally likely)
6
Example 1:
If a card is drawn from a well-shuffled pack of 52 cards find the probability of drawing
2
(a) a red king Ans:
52
16
(b) a 3, 4, 5 or 6 Ans:
52
1
(c) a black card Ans:
2
4
(d) a red ace or a black queen Ans:
52
Example 2:
When a pair of balanced die is thrown, find probability of getting a sum equal to
(a) 7.
6 1
Ans: = (Total number of equally likely outcomes is
36 6
36 & the favourable number of outcomes = 6, namely
(1,6), (2,5),, …(6,1).)
2
(b) 11 Ans:
36
8
(c) 7 or 11 Ans:
36
1 2 1 4
(d) 2, 3 or 12 Ans: = + + = .
36 36 36 36
Example 3:
10 persons in a room are wearing badges marked 1 through 10. 3 persons are chosen at
random and asked to leave the room simultaneously and their badge nos are noted. Find
the probability that
(a) the smallest badge number is 5.
(b) the largest badge number is 5.
7
Solution:
(a) 3 persons can be chosen in 10C3 equally likely ways. If the smallest badge
number is to be 5, the badge numbers should be 5 and any two of the 5
numbers 6, 7, 8, 9,10. Now 2 numbers out of 5 can be chosen in 5C2 ways.
Hence the probability that the smallest badge number is 5 is 5C2 /10C3 .
(b) Ans. 4C2 /10C3 .
Example 4:
A lot consists of 10 good articles, 4 articles with minor defects and 2 with major defects.
Two articles are chosen at random. Find the probability that
10
C2
(a) both are good Ans: 16
C2
2
C2
(b) both have major defects Ans: 16
C2
6c1
(c) At least one is good Ans: 1 – P(none is good) = 1 −
16c 2
10c1 . 6c1
(d) Exactly one is good Ans:
16c 2
(e) At most one is good Ans. P(none is good) + P(exactly one is good) =
6c 2 10c1 . 6c1
+
16c 2 16c 2
14c 2
(f) Neither has major defects Ans:
16c 2
6c 2
(g) Neither is good Ans:
16c 2
8
Example 5:
From 6 positive and 8 negative integers, 4 integers are chosen at random and multiplied.
Find the probability that their product is positive.
Solution:
The product is positive if all the 4 integers are positive or all of them are negative or two
of them are positive and the other two are negative. Hence the probability is
6 8 6 8
4 4 2 2
+ +
14 14 14
4 4 4
Example 6:
If, A, B are mutually exclusive events and if P(A) = 0.29, P(B) = 0.43, then
Example 7:
Example 8:
Example 9:
Three newspapers are published in a city. A recent survey of readers indicated the
following:
20 + 16 + 14 + −8 − 5 − 4 + 2
Ans. 1 − P(A ∪ B ∪ C) = 1 − = 0.65
100
(c) reads at least A and B given he reads at least one of the papers.
P (At least reading A and B given he reads at least one of the papers)
P(A ∩ B) 8
= =
P(A ∪ B ∪ C) 35
10
CONDITIONAL PROBABILITY
P(A ∩ B)
P(A | B) = probability of A given B = .
P(B)
P(A ∩ B)
Similarly we define P(B | A) = if P(A) ≠ 0.
P(A)
Example 10
A bag contains 4 red balls and 6 black balls. 2 balls are chosen at random one by one
without replacement. Find the probability that both are red.
Solution
Let A be the event that the first ball drawn is red, B the event the second ball drawn is
red. Hence the probability that both balls drawn are red =
4 3 2
P(A ∩ B) = P(A) × P(B | A) = × =
10 9 15
Independent events:
A∩B
A′ ∩ B
Mutually
exclusive
Example 11
Solution
If Ai is the event of getting a head in the ith toss, A1, A2, …, A8 are independent and
1
P(Ai) = for all i. Hence P(getting all heads) =
2
8
1
P(A1) P(A2)…P(An) =
2
Example 12
It is found that in manufacturing a certain article, defects of one type occur with
probability 0.1 and defects of other type occur with probability 0.05. Assume
independence between the two types of defects. Find the probability that an article chosen
at random has exactly one type of defect given that it is defective.
12
Let A be the event that article has exactly one type of defect.
P(A ∩ B)
Required P(A | B) =
P(B)
0.14
∴Probability =
0.145
[Note: If A and B are two events, probability that exactly only one of them occurs
is P(A) + P(B) – 2P(A ∩ B)]
Example 13
P (A fails) = 0.2
13
Solution
P(A and B failed) 0.15 1
(a) P(A fails | B has failed) = = =
P(B failed) 0.30 2
Example 14
A binary number is a number having digits 0 and 1. Suppose a binary number is made up
of ‘n’ digits. Suppose the probability of forming an incorrect binary digit is p. Assume
independence between errors. What is the probability of forming an incorrect binary
number?
Example 15
A question paper consists of 5 Multiple choice questions each of which has 4 choices (of
which only one is correct). If a student answers all the five questions randomly, find the
probability that he answers all questions correctly.
5
1
Ans .
4
Let B1, B2, …, Bn be n mutually exclusive events of which one must occur. If A is any
other event, then
Example 16
There are 2 urns. The first one has 4 red balls and 6 black balls. The second has 5 red
balls and 4 black balls. A ball is chosen at random from the 1st and put in the 2nd. Now a
ball is drawn at random from the 2nd urn. Find the probability it is red.
14
Solution:
Let B1 be the event that the first ball drawn is red and B2 be the event that the first ball
drawn is black. Let A be the event that the second ball drawn is red. By the theorem on
total probability,
4 6 6 5 54
P(A) = P(B1) P(A | B1) + P(B2) P(A | B2) = × + × = =0.54.
10 10 10 10 100
Example 17:
A consulting firm rents cars from three agencies D, E, F. 20% of the cars are rented from
D, 20% from E and the remaining 60% from F. If 10% of cars rented from D, 12% of
cars rented from E, 4% of cars rented from F have bad tires, find the probability that a
car rented from the consulting firm will have bad tires.
Example 18:
A bolt factory has three divisions B1, B2, B3 that manufacture bolts. 25% of output is
from B1, 35% from B2 and 40% from B3. 5% of the bolts manufactured by B1 are
defective, 4% of the bolts manufactured by B2 are defective and 2% of the bolts
manufactured by B3 are defective. Find the probability that a bolt chosen at random from
the factory is defective.
25 5 35 4 40 2
Ans. × + × + ×
100 100 100 100 100 100
15
BAYES’ THEOREM
Let B1, B2, ……….Bn be n mutually exclusive events of which one of them must occur.
If A is any event, then
Example 19
Miss ‘X’ is fond of seeing films. The probability that she sees a film on the day before
the test is 0.7. Miss X is any way good at studies. The probability that she maxes the test
is 0.3 if she sees the film on the day before the test and the corresponding probability is
0.8 if she does not see the film. If Miss ‘X’ maxed the test, find the probability that she
saw the film on the day before the test.
Solution
Let B1 be the event that Miss X saw the film before the test and let B2 be the
complementary event. Let A be the event that she maxed the test.
Required. P(B1 | A)
P(B1 )P(A | B1 )
=
P(B1 ) × P(A | B1 ) + P(B) × P(A | B 2 )
0 .7 × 0 .3
=
0 . 7 × 0 . 3 + 0 . 3 × 0 .8
Example 20
At an electronics firm, it is known from past experience that the probability a new worker
who attended the company’s training program meets the production quota is 0.86. The
corresponding probability for a new worker who did not attend the training program is
0.35. It is also known that 80% of all new workers attend the company’s training
16
program. Find probability that a new worker who met the production quota would have
attended the company’s training programme.
Solution
Let B1 be the event that a new worker attended the company’s training programme. Let
B2 be the complementary event, namely a new worker did not attend the training
programme. Let A be the event that a new worker met the production quota. Then we
0 .8 × 0 .8
want P(B1 | A) = .
0.8 × 0.86 + 0.2 × 0.35
Example 21
A printing machine can print any one of n letters L1, L2,……….Ln. It is operated by
electrical impulses, each letter being produced by a different impulse. Assume that there
is a constant probability p that any impulse prints the letter it is meant to print. Also
assume independence. One of the impulses is chosen at random and fed into the machine
twice. Both times, the letter L1 was printed. Find the probability that the impulse chosen
was meant to print the letter L1.
Solution:
Let B1 be the event that the impulse chosen was meant to print the letter L1. Let B2 be the
complementary event. Let A be the event that both the times the letter L1 was printed.
1
P(B1) = . P(A|B1) = p2. Now the probability that an impulse prints a wrong letter is (1-
n
1− p
p). Since there are n-1 ways of printing a wrong letter, P(A|B2) = . Hence P(B1|A)
n −1
P(B1 ) × P(A | B1 )
=
P(B1 ) × P(A | B1 ) + P(B 2 ) × P(A | B 2 )
1 2
p
n
= 2
. This is the required probability.
1 2 1 1− p
p + 1−
n n n −1
17
Miscellaneous problems
1 (a). Suppose the digits 1,2,3 are written in a random order. Find probability that at
least one digit occupies its proper place.
Solution
There are 3! = 6 ways of arranging 3 digits (See the figure), out of which in 4
arrangements , at least one digit occupies its proper place. Hence the probability is
4 4
= . 123 213 312
3! 6
132 231 321
(Remark. An arrangement like 231, where no digit occupies its proper place is
called a derangement.)
15
(b) Same as (a) but with 4 digits 1,2,3,4 Ans. (Try proving this.)
24
Solution
Let A1 be the Event 1st digit occupies its proper place
A2 be the Event 2nd digit occupies its proper place
A3 be the Event 3rd digit occupies its proper place
A4 be the Event 4th digit occupies its proper place
18
1 1 1
= 1− + −
2 6 24
24 − 12 + 4 − 1 15
= =
24 24
Solution
Let A1 be the Event 1st digit occupies its proper place
A2 be the Event 2nd digit occupies its proper place
……………………
An be the Event nth digit occupies its proper place
= P(A1∪A2 ∪ … ∪An)
(n − 1)! (n − 2)! (n − 3)! 1
= nc1 − nc 2 + nc 3 - ...... + (-1) n -1
n! n! n! n!
1 1 1 1
= 1− + − ..........(−1) n −1 ≈ 1 − e −! (for n large).
2! 3! 4! n!
2. In a party there are ‘n’ married couples. If each male chooses at random a
female for dancing, find the probability that no man chooses his wife.
1 1 1 1
Ans 1-( 1 − + − ..........(−1) n −1 ).
2! 3! 4! n!
3. A and B play the following game. They throw alternatively a pair of dice.
Whosoever gets sum of the two numbers on the top as seven wins the game
and the game stops. Suppose A starts the game. Find the probability (a) A
wins the game (b) B wins the game.
19
Solution
A wins the game if he gets seven in the 1st throw or in the 3rd throw or in the
1 5 5 1 5 5 5 5 1
5th throw or …. Hence P(A wins) = + × × + × × × × + …
6 6 6 6 6 6 6 6 6
1 1
6 6 6 5
= = = . P(B wins) = complementary probability = .
5
2
36 − 25 11 11
1− 36
6
4. Birthday Problem
There are n persons in a room. Assume that nobody is born on 29th Feb.
Assume that any one birthday is as likely as any other birth day. Find the
probability that no two persons will have same birthday.
Solution
If n > 365, at least two will have the same birthday and hence the probability
that no two will have the same birthday is 0.
6!
Ans.
66
(b) What is probability that exactly ‘n’ throws are needed? (n > 6)
20
6. Polya’s urn problem
An urn contains g green balls and r red balls. A ball is chosen at random and
its color is noted. Then the ball is returned to the urn and c more balls of same
color are added. Now a ball is drawn. Its color is noted and the ball is
replaced. This process is repeated.
g
Ans.
g+r
(b) Find the probability that the 2nd ball drawn is green.
g g+c r g g
Ans. × + =
g +r g +r+c g +r g+r+c g+r
(c) Find the probability that the nth ball drawn is green.
g
The surprising answer is .
g+r
7. There are n urns and each urn contains a white and b red balls. A ball is
chosen from Urn 1 and put into Urn 2. Now a ball is chosen at random from
urn 2 and put into urn 3 and this is continued. Finally a ball drawn from Urn n.
Find the probability that it is white.
Solution
a +1 a
∴ p r = p r −1 × + (1 − p r −1 ) × ; r = 1, 2, …, n.
a + b +1 a + a +1
a
This is a recurrence relation for pr. Noting that p1 = , we can find pn.
a+b
21
MATHEMATICAL EXPECTATION & DECISION MAKING
Suppose we roll a die n times. What is the average of the n numbers that appear on the
top?
1 × n 1 + 2 × n 2 ..........6 × n 6 n n n
= = 1 × 1 + 2 × 2 + ... + 6 × 6
n n n n
Here clearly n1, n2, …, n6 are unknown. But by the relative frequency definition of
n 1 n
probability, we may approximate 1 by P(getting 1 on the top) = , 2 by
n 6 n
1
P(getting 2 on the top) = , and so on. So we can ‘expect’ the average of the n
6
7
numbers to be = 3.5 . We call this the Mathematical Expectation of the number
2
on the top.
Definition
22
Problems
1. If a service club sells 4000 raffle tickets for a cash prize of $800, what is the
mathematical expectation of a person who buys one of these tickets?
1 1
Solution. 800 × + 0 × ( ) = = 0 .2
4000 5
2. A charitable organization raises funds by selling 2000 raffle tickets for a 1st prize
worth $5000 and a second prize $100. What is mathematical expectation of a
person who buys one of the tickets?
1 1
Solution. 5000 × + 100 × + 0× ( )
2000 2000
3. A game between 2 players is called fair if each player has the same mathematical
expectation. If some one gives us $5 whenever we roll a 1 or a 2 with a balanced
die, what we must pay him when we roll a 3, 4, 5 or 6 to make the game fair?
4. Gambler’s Ruin
A and B are betting on repeated flips of a balanced coin. At the beginning, A has
m dollars and B has n dollars. After each flip the loser pays the winner 1 dollar
and the game stops when one of them is ruined. Find probability that A will win
B’s n dollars before he loses his m dollars.
Solution.
Let p be the probability that A wins (so that 1-p is the probability that B wins).
Since the game is fair, A’s math exp = B’s math exp.
m
Thus n × p + 0 (1 − p ) = m(1 − p) + 0.p or p =
m+n
23
5. An importer is offered a shipment of machines for $140,000. The probability that
he will sell them for $180,000, $170,000 (or) $150,000 are respectively 0.32,
0.55, and 0.13. What is his expected profit?
6. The manufacturer of a new battery additive has to decide whether to sell her
product for $80 a can and for $1.2 a can with a ‘double your money back if not
satisfied’ guarantee. How does she feel about the chances that a person will ask
for double his/her money back if
Solution. In the 1st case, she gets a fixed amount of $0.80 a can
Let p be the prob that a person will ask for double his money back.
(a) happens if 0.80 > 1.20 –2.40 p
p > 1/6
(b) happens if
p < 1/6
24
7. A manufacturer buys an item for $1.20 and sells it for $4.50. The probabilities for
a demand of 0, 1, 2, 3, 4, “5 or more” items are 0.05, 0.15, 0.30, 0.25, 0.15, 0.10
respectively. How many items he must stock to maximize his expected profit?
(a) Which job should the contractor choose to maximize his expected profit?
3 1
i. Exp. profit for job1 = 240,000 × − 60,000 × = 155,000
4 4
1 1
ii. Exp. profit for job2 = 36,000 × − 90,000 × = 135,000
2 2
Go in for job1.
(b) What job would the contractor probably choose if her business is in bad
shape and she goes broke unless, she makes a profit of $300,000 on her
next job.
Ans:- She takes the job2 as it gives her higher profit.
25
RANDOM VARIABLES
Example 1
Let E be the random experiment of tossing a fair coin 3 times. We see that there are
2 3 = 8 outcomes TTT, HTT, THT, TTH, HHT, HTH, THH, HHH all of which are
equally likely. Let X be the random variable that ‘counts’ the number of heads obtained.
Thus X can take only 4 values 0,1,2,3. We note that
1 3 3 1
P ( X = 0 ) = , P ( X = 1) = , P ( X = 2 ) = , P ( X = 3) = . This is called the
8 8 8 8
probability distribution of the rv X. Thus the probability distribution of a rv X is the
listing of the probabilities with which X takes all its values.
Example 2
Let E be the random experiment of rolling a pair of balanced die. There are 36 possible
equally likely outcomes, namely (1,1), (1,2)…… (6,6). Let X be the rv that gives the sum
of the two nos on the top. Hence X take 11 values namely 2,3……12. We note that the
probability distribution of X is
1 2
P(X = 2 ) = P(X = 12 ) = , P(X = 3) = P(X = 11) = ,
36 36
3
P(X = 4 ) = P(X = 10 ) = ,
36
4
P(X = 5) = P(X = 9 ) = .
36
5 6 1
P(X = 6 ) = P(X = 8) = , P(X = 7 ) = = .
36 36 6
Example 3
Let E be the random experiment of rolling a die till a 6 appears on the top. Let X be the
no of rolls needed to get the “first” six. Thus X can take values 1,2,3…… Here X takes
an infinite number of values. So it is not possible to list all the probabilities with which X
takes its values. But we can give a formula.
26
x −1
5 1
P( X = x ) = (x = 1,2.....)
6 6
(Justification: X = x means the first (x-1) rolls gave a number (other than 6) and
x −1
5 5 5 1 5 1
the xth roll gave the first 6. Hence P ( X = x ) = × ...× × = )
6 6 6 6 6 6
x −1 times
We say X is a discrete rv of it can take only a finite number of values (as in example 1,2
above) or a “countably” infinite values (as in example 3).
On the other hand, the annual rainfall in a city, the lifelength of an electronic device, the
diameter of washers produced by a factory are all continuous random variables in the
sense they can take (theoretically at least) all values in an ‘interval’ of the x-axis. We
shall discuss continuous rvs a little later.
The first condition follows from the fact that the probability is always ≥ 0. The second
condition follows from the fact that the probability of the certain event = 1.
27
Example 4
Determine whether the following can be the probability distribution of a rv which can
take only 4 values 1,2,3 and 4.
Binomial Distribution
Let E be a random experiment having only 2 outcomes, say ‘success’ and ‘failure’.
Suppose that P(success) = p and so P(failure) = q (=1-p). Consider n independent
repetitions of E (This means the outcome in any one repetition is not dependent upon the
outcome in any other repetition). We also make the important assumption that P(success)
= p remains the same for all such independent repetitions of E. Let X be the rv that
’counts’ the number of successes obtained in n such independent repetitions of E. Clearly
X is a discrete rv that can take n+1 values namely 0,1,2,….n. We note that there are
2 n outcomes each of which is a ‘string’ of n letters each of which is an S or F (if n =3, it
will be FFF, SFF, FSF, FFS, SSF, SFS, FSS, SSS).
x successes and (n-x) failures in some order. One such will be SSS ..S FFF ..F . Since all
x n− x
the repetitions are independent prob of this outcome will be p x q n − x . Exactly the same
prob would be associated with any other outcome for which X = x. But x successes can
n
occur out of n repetitions in mutually exclusive ways. Hence
x
n
P(X = x ) = p x q n − x (x = 0,1, ...n ).
x
28
We say X has a Binomial distribution with parameters n ( ≡ the number of repetitions)
and p (Prob of success in any one repetition).
We denote P(X = x ) by b(x; n , p ) to show its dependence on x, n and p. The letter ‘b’
stands for binomial.
Since all the above (n+1) probabilities are the (n+1) terms in the expansion of the
binomial (q + p ) , X is said to have a binomial distribution. We at once see that the sum
n
The independent repetitions are usually referred to as the “Bernoulli” trials. We note that
b(x; n, p ) = b(n − x; n, q )
(LHS = Prob of getting x successes in n Bernoulli trials = prob of getting n-x failures in
n Bernoulli trials = R.H.S.)
29
Example 5 (Exercise 4.15 of your book)
During one stage in the manufacture of integrated circuit chips, a coating must be
applied. If 70% of the chips receive a thick enough coating find the probability that
among 15 chips.
Solution
Among 15 chips, let X be the number of chips that will have thick enough coatings.
Hence X is a rv having Binomial distribution with parameters n =15 and p = 0.70.
A food processor claims that at most 10% of her jars of instant coffee contain less coffee
than printed on the label. To test this claim, 16 jars are randomly selected and contents
weighed. Her claim is accepted if fewer than 3 of the 16 jars contain less coffee (note that
10% of 16 = 1.6 and rounds to 2). Find the probability that the food processor’s claim
will be accepted if the actual percent of the jars containing less coffee is
Solution:
Let X be the number of jars that contain less coffee (than printed on the label) (among the
16 jars randomly chosen. Thus X is a random variable having a Binomial distribution
30
with parameters n = 16 and p (the prob of “success” = The prob that a jar chosen at
random will have less coffee)
Suppose there is an urn containing 10 marbles of which 4 are white and the rest are black.
Suppose 5 marbles are chosen with replacement. Let X be the rv that counts the no of
white marbles drawn. Thus X = 0,1,2,3,4 or 5 (Remember that we replace each marble in
the urn before drawing the next one. Hence we can draw 5 white marbles)
4
P (“Success”) = P (Drawing a white marble in any one of the 5 draws) = (remember
10
we draw with replacement).
4
Thus X has a Binomial distribution with parameters n = 5 and p =
10
4
Hence P ( X = x ) = b x;5,
10
31
1
When n = 10, p = , P ( X = 5) is the greatest or 5 is the mod e.
2
Fact
b( x + 1; n, p ) n − x p
= × > 1if x < np − (1 − p )
b( x; n; p ) n +1 1− p
= 1 if x = np − (1 − p )
<1if n > n p − (1 − p )
Thus so long as x <np – (1-p) the binomial probabilities increase and if x> np-(1-p) they
decrease. Hence if np-(1-p) = x0 is an integer, then the mode is x0 and x0 + 1. If n – (1-p)
in not an integer and if x0 = smallest integer ≥ np − (1 − p ) , the mode is x 0 .
An urn contains 10 marbles of which 4 are white. 5 marbles are chosen at random
without replacement. Let X be the rv that counts the number of white marbles drawn.
Thus X can take 5 values names 0,1,2,3,4. What is P (X = x)? Now out of 10 marbles 5
10 4 6
can be chosen in equally like ways, out of which there will be ways of
5 x 5− x
drawing x white marbles (and so 5-x read marbles) (Reason out of 4 white marbles, x can
4 6
be chosen in ways and out of 6 red marbles, 5-x can be chosen in ways).
x 5− x
4 6
x 5− x
Hence P ( X = x ) = x = 0,1,2,3,4.
10
5
A box contains N marbles out of which a are white. n marbles are chosen without
replacement. Let X be the random variable that counts the number of white marbles
drawn. X can take the values 0,1,2……. n.
32
a N −a
x n−x
P( X = a ) = x = 0,1,2.... n
N
n
(Note x must be less than or equal to a and n-x must be less than or equal to N-a)
We say the rv X has a hypergeometric distribution with parameters n,a and N. We denote
P(X=x) by h (x;n,a,N).
Among the 12 solar collectors on display, 9 are flat plate collectors and the other three
are concentrating collectors. If a person choses at random 4 collectors, find the prob that
3 are flat plate ones.
9 3
3 1
Ans h (3; 4, 9,12 ) =
12
4
If 6 of 18 new buildings in a city violate the building code, what is the probability that a
building inspector, who randomly selects 4 of the new buildings for inspection, will catch
(a) None of the new buildings that violate the building code
12
4
Ans h(1; 4, 6, 18) =
18
4
(b) One of the new buildings that violate the building code
33
6 12
1 3
Ans h(1; 4, 6,18) =
18
4
(c) Two of the new buildings that violate the building code
6 12
2 2
Ans h(2; 4, 6, 18) =
18
4
(d) At least three of the new buildings that violate the building code
A shipment of 120 burglar alarms contains 5 that are defective. If 3 of these alarms are
randomly selected and shipped to a customer, find the probability that the customer will
get one defective alarm.
34
Solution
5 115
1 2 5 × 6555
= = = 0.1167
120 280840
3
5
(b) h(1; 3, 5, 120 ) ≈ b 1; 3,
120
2
3 5 5
= 1− = 0.1148
1 120 120
Among the 300 employees of a company, 240 are union members, while the others are
not. If 8 of the employees are chosen by lot to serve on the committee which
administrates the provident fund, find the prob that 5 of them will be union members
while the others are not.
Solution
35
THE MEAN AND VARIANCE OF PROBABILITY DISTRIBUTIONS
We know that the equation of a line can be written as y = mx + c. Here m is the slope and
c is the y intercept. Different m,c give different lines. Thus m and c characterize a line.
Similarly we define certain numbers that characterize a probability distribution.
Example 11
X 1 2 3
Prob 1 1 1
2 3 6
1 1 1 5
µ =1 × + 2× + 3× =
2 3 6 3
Example 12
X 0 1
Prob q p
36
where q = 1 − p. Thus µ = 0 × q + 1 × p = p.
Mean of X = µ = np.
a
If X is a rv having hypergeometric distribution with parameters N , n, a, then µ = n .
N
Digression
The mean of a rv x give the “average” of the values taken by the rv. X. Thus the
average marks in a test is 40 means the students would have got marks less than 40
and greater than 40 but it averages out to be 40. But we do not get an idea about the
spread ( ≡ deviation from the mean) of the marks. This spread is measured by the
variance. Informally speaking by the average of the squares of deviation from the
mean.
Variance of X = σ 2
= (x i − )2 P(X = x i )
xi ∈ R X
The positive square root σ of σ 2 is called the standard deviation of X and has the
same units as X and µ .
37
Example 13
For the rv X having the prob distribution given in example 11, the variance is
2 2 2
5 1 5 1 5 1
1− × + 2− × + 3− ×
3 2 3 3 3 6
4 1 1 1 16 1 5
= x + × + × =
9 2 9 3 9 6 9
( )
σ 2 = E (X − µ ) = E X 2 − µ 2
2
( ) 1
Here E X 2 = 12 ×
2
1 1 1 4 9 60 10
+ 2 2 × + 32 × = + + = =
3 6 2 3 6 18 3
10 25 5
∴σ2 = − = .
3 9 9
Example 14
( )
E X 2 = o 2 × q + 12 × p = p
∴σ 2 = p − p 2 = p(1 − p ) = pq
σ 2 = npq
a a N −n
σ2 =n 1− . .
N N N −1
38
CHEBYCHEV’S THEOREM
1
P(| X − µ | ≥ kσ ) ≤
k2
In words the prob of getting a value which deviates from its mean µ by at least kσ is at
1
most .
k2
Note: Chebyshev’s Theorem gives us an upper bound of the prob of an event. Mostly it is
of theoretical interest.
In one out of 6 cases, material for bullet proof vests fails to meet puncture standards. If
405 specimens are tested, what does Chebyshev theorem tell us about the prob of getting
at most 30 or at least 105 cases that do not meet puncture standards?
1 135
Here µ = np = 405 × =
6 2
1 5
σ 2 = n p q = 405 × ×
6 6
15
∴σ =
2
Let X = no of cases out of 405 that do not meet puncture standards
Reqd P(X ≤ 30 or X ≥ 105)
75
Now X ≤ 30 X − µ ≤−
2
75
X ≥ 105 X −µ ≥
2
75
Thus X ≤ 30 or X ≥ 105 | X −µ |≥ = 5σ
2
39
1 1
∴P(X ≤ 30 or X ≥ 105) = P(| X − µ | ≥ 5σ ) ≤ = = 0.04
5 2 25
Example 16 (Exercise 446 of your text)
How many times do we have to flip a balanced coin to be able to assert with a prob of at
most 0.01 that the difference between the proportion of tails and 0.50 will be at least
0.04?
Solution:
Suppose we flip the coin n times and suppose X is the no of tails obtained. Thus the
X No of tails
proportion of tails = = . We must find n so that
n Total No of flips
X
P − 0.50 ≥ 0.04 ≤ 0.01
n
X
Now − 0.50 ≥ 0.04 is equivalent to X − n × 0.50 ≥ 0.04n.
n
1
We know P( X − µ ≥ kσ )≤
k2
Here kσ = 0.04n
0.04n
∴k = = 0.08 n
0.50 × n
40
X
∴P − 0.50 ≥ 0.04
n
1
= P(| X − µ | ≥ kσ ) ≤ ≤ 0.01
k2
1
= 100 or if (.08) n ≥ 100.
2
if k 2 ≥
0.01
100
or n ≥ =15625
(.08)2
Suppose a factory manufactures items. Suppose there is a constant prob p that an item is
defective. Suppose we choose n items at random and let X be the no of defectives found.
Then X is a rv having binomial distribution with parameters n and p.
X
Now P −p ≥ε
n
= P( X − np ≥ nε ) = P( x − µ ≥ kσ ) (where kσ = nε )
1 σ2 npq pq
≤ ( by Chebyshev '
s theorem ) = = 2 2 = 2 → 0 as n → ∞.
k 2
n ε
2 2
n ε nε
Thus we can say that the prob that the proportion of defective items differs from the
actual prob. p by any + ve no ε → 0 as n → ∞ . (This is called the Law of Large
numbers)
This means “most of the times” the proportion of defectives will be close to the actual
X
(unknown) prob p that an item is defective for large n. So we can estimate p by , the
n
(Sample) proportion of defectives.
41
POISSON DISTRIBUTION
A random variable X is said to have a Poisson distribution with parameter λ > 0 if its
probability distribution is given by
λx
P ( X = x ) = f ( x; λ ) = e − λ x = 0,1,2......
x!
Hence for n large, p small, the binomial prob b( x; n, p ) can be approximated by the
Poisson prob f ( x; λ ) where λ = np.
Example 17
b(3;100, 0.03)
e −3 3 3
≈ f (3;3) =
3!
If 0.8% of the fuses delivered to an arsenal are defective, use the Poisson approximation
to determine the probability that 4 fuses will be defective in a random sample of 400.
Solution
If X is the number of defectives in a sample of 400, X has the binomial distribution with
parameters n = 400 and p = 0.8% = 0.008.
42
Thus P (4 out of 400 are defective)
=e − 3.2 (3.2)4
4!
= 0.781 − 0.603
(from table 2 at the end of the text)
= 0.178
For various λ and x, F(x; λ ) has been tabulated in table 2 (of your text book on page 581
to 585) .We use the table 2 as follows.
Poisson Process
There are many situations in which events occur randomly in regular intervals of time.
For example in a time period t, let X t be the number of accidents at a busy road junction
in New Delhi; X t be the number of calls received at a telephone exchange; X t be the
number of radio active particles emitted by a radioactive source etc. In all such examples
we find X t is a discrete rv which can take non-ve integral values 0,1,2,….. The important
thing to note is that all such random variables have “same” distribution except that the
parameter(s) depend on time t.
Divide the time period t into n small time periods each of length ∆t . Hence by
assumptions above, we note that Xt = no of successes in time period t is a rv having
Binomial distribution with parameters n and p = α∆t . Hence
→ f (x; ) as n → ∞
where = n. t
(Note: For a more rigorous derivation of the distribution of Xt, you may see Meyer,
Introductory probability and statistical applications, pages 165-169).
Given that the switch board of a consultant’s office receives on the average 0.6 call per
minute, find the probability that
44
Solution
Example 20
Suppose that Xt, the number of particles emitted in t hours from a radio – active source
has a Poisson distribution with parameter 20t. What is the probability that exactly 5
particles are emitted during a 15 minute period?
Solution
1
15 minutes = hour
4
1
Hence if X 14 = no of particles emitted in hour
4
5
1
× 20
( )
P X 14 = 5 = e
− 14 × 20 4
5!
= e −5
55
5!
45
THE GEOMETRIC DISTRIBUTION
Suppose there is a random experiment having only two possible outcomes, called
‘success’ and ‘failure’. Assume that the prob of a success in any one ‘trial’ ( ≡ repetition
of the experiment) is p and remains the same for all trials. Also assume the trials are
independent. The experiment is repeated till a success is got. Let X be the rv that counts
the number of trials needed to get the 1st success. Clearly X = x if the first (x-1) trials
were failures and the xth trial gave the first success. Hence
We say X has a geometric distribution with parameter p (as the respective probabilities
form a geometric progression with common ratio q).
1 q
µ= and the variance is σ 2 = 2
p p
(For example suppose a die is rolled till a 6 is got. It is reasonable to expect on an average
1
we will need 1 = 6 rolls as there are 6 nos!)
6
An expert hits a target 95% of the time. What is the probability that the expert will miss
the target for the first time on the fifteenth shot?
Solution
Here ‘Success’ means the expert misses the target. Hence p = P(Success ) = 5% = 0.05 . If
X is the rv that counts the no. of shots needed to get ‘a success’, we want
P ( X = 15) = q 14 × p = (0.95) × 0.05.
14
46
Example 22
The probability of a successful rocket launching is 0.8. Launching attempts are made till
a successful launching has occurred. Find the probability that exactly 6 attempts will be
necessary.
Example 23
(a) P ( X ≥ r ) = q r −1 r = 1,2,.........
(b) P(x ≥ s + t | x > s ) = P( X ≥ t )
Solution
∞
q r −1 p
(a) P(X ≥ r ) = q x −1 .p = = q r −1 .
x =r 1− q
P ( X ≥ s + t ) q s +t −1
(b) P(X ≥ s + t X > s )= = = q t −1 = P ( X ≥ t ).
P( X > s ) q s
Service facility
Customers arrive in a
Depart after service
Poisson Fashion S
There is a service facility. Customers arrive in a random fashion and get service if the
server is idle. Else they stand in a Queue and wait to get service.
47
Questions that one can ask are :
1. At any point of time on an average how many customers are in the system
(getting service and waiting to get service)?
2. What is the mean time a customer waits in the system?
3. What proportion of time a server is idle? And so on.
We shall consider only the simplest queueing system where there is only one server. We
assume that the population of customers is infinite and that there is no limit on the
number of customers that can wait in the queue.
We also assume that the customers arrive in a ‘Poission fashion’ at the mean rate of α .
This means that X t the number of customers that arrive in a time period t is a rv having
Poisson distribution with parameter α t . We also assume that so long as the service
station is not empty, customers depart in a Poisson fashion at a mean rate of β . This
means, when there is at least one customer, Yt , the number of customers that depart
(after getting service) in a time period t is a r.v. having Poisson distribution with
parameter βt (where β > α ).
Further assumptions are : In a small time interval ∆t , there will be a single arrival or a
single departure but not both. (Note that by assumptions of Poisson process in a small
time interval ∆t , there can be at most one arrival and at most one departure). Let at time
t, N t be the number of customers in the system. Let P ( N t = n ) = p n (t ). We make another
assumption:
α
π o =1−
β
n
α α
π n = 1− (n = 0, 1, 2, . . .)
β β
Thus L = Mean number of customers in the system getting service and waiting to get
service)
48
∞
α
= n.π n =
n =0 β −α
∞
α2 α
= (n − 1) π n = =L−
n =1 β (β − α ) β
1 L
= =
β −α α
α Lq 1
= = =W − .
β (β − α ) α β
Trucks arrive at a receiving dock in a Poisson fashion at a mean rate of 2 per hour. The
trucks can be unloaded at a mean rate of 3 per hour in a Poisson fashion (so long as the
receiving dock is not empty).
(a) What is the average number of trucks being unloaded and waiting to get
unloaded?
(b) What is the mean no of trucks in the queue?
(c) What is the mean time a truck spends waiting in the queue?
(d) What is the prob that there are no trucks waiting to be unloaded?
(e) What is the prob that an arriving truck need not wait to get unloaded?
49
Solution
Thus
α 2
(a) L= = =2
β −α 3−2
α2 22 4
(b) Lq = = =
β (β − α ) 3(1) 3
α 2
(c) Wq = = hr
β (β − α ) 3
α α α 2 2 2
= π 0 +π 1 = 1− + 1− = 1− + 1−
β β β 3 3 3
1 2 5
= + =
3 9 9
Example 25
With reference to example 24, suppose that the cost of keeping a truck in the system is
Rs. 15/hour. If it were possible to increase the mean loading rate to 3.5 trucks per hour at
a cost of Rs. 12 per hour, would this be worth while?
50
Solution
4
In the new scheme α = 2, β = 3, L = verify!
3
4
∴ Net cost per hour to the dock = × 15 + 12 = 32 / hr.
3
51