Topic-2 Probability & Prob Distribution
Topic-2 Probability & Prob Distribution
Topic-2 Probability & Prob Distribution
26 black cards:
13 clubs (♣) and 13 spades (♠)
EXERCISE P4:
If you select one card from a full deck of cards, what is
the probability that it is:
a) A club or a spade;
b) A red card or a 2;
c) A red 2?
PUTTING PROBABILITIES TOGETHER
The probabilities from P4 can be worked out as the
combination of two separate probabilities, and we can
combine probabilities like this in one of two ways:
‘Or’ Rule
determines the probability of one event OR another
occurring
‘And’ Rule
determines the probability of one event AND
another occurring at the same time
‘Or’ Rule
For two mutually exclusive events, the probability
of A or B happening is:
number of ways A or B can happen
total number of possibilities
Application
Prior New Posterior
of Bayes’
Probabilities Information Probabilities
Theorem
Example of Bayes’ Theorem
A manufacturing firm that receives shipments of parts
from two different suppliers. Let A1 denote the event that
a part is from supplier 1 and A2 denote the event that a
part is from supplier 2. Currently 65% of the parts
purchased by the company are from supplier 1 and the
remaining 35% are from supplier 2.
Hence if a part is selected at random, we would assign
the prior probabilities P(A1)=0.65 and P(A2)= 0.35
The quality of the purchased parts varies with the source
of supply.
Historical data suggest that the quality ratings of the two
suppliers are shown in table.
PERCENTAGE PERCENTAGE
OF GOOD PARTS OF BAD PARTS
SUPPLIER 1 98 2
SUPPLIER 2 95 5
P(A1/B)= 0.65*0.02
( 0.65)(0.02) + (0.35)(0.05)
= 0.4262
x f(x) xf(x)
0 .40 .00
1 .25 .25
2 .20 .40
3 .05 .15
4 .10 .40
E(x) = 1.20
expected number of
TVs sold in a day
Variance
Example: JSL Appliances
6/36
5/36
Probability
4/36
3/36
2/36
1/36
2 3 4 5 6 7 8 9 10 11 12
Number of spots
Mathematically: The Binomial Distribution
The Binomial Distribution is the appropriate
distribution to use when an event has the following
characteristics:
There are a number of repeatable trials, n
There are two complementary outcomes: success
or failure
The probability of success at each trial is the same,
so P(success) = p.
The trials are independent.
Exercise P9:
A fair coin is tossed three times, and the outcome (a
head or tail) of throw is noted. What is the probability
that a head is shown on only one toss of the coin?
Is the Binomial distribution appropriate?
1.
2.
3.
4.
Exercise P10:
Three cards are selected at random from a fair pack of
playing cards. What is the probability that they are all red
cards?
Is the Binomial distribution appropriate?
1.
2.
3.
4.
Mathematical representation of the
Binomial Distribution
To find the probability that a discrete random variable (X)
takes on a particular value (r) we can find P(X=r) as
follows:
n r
P(X r) C r p (1 p)
n r
Combinations
There is a symbol in the binomial distribution that may
not be familiar:
n
Cx
n!
Combination: n
Cx
x! (n x )!
EXERCISE P12:
Find the number of groups of 5 essays the student could
write if there are 9 essays he has to do.
EXERCISE P13:
A woman has a voucher to rent 3 DVDs. She has identified
10 DVDs that she wants to watch. How many different
groups of 3 DVDs could she rent?
EXERCISE P14:
What is the probability of you winning the national
lottery?
EXERCISE P15:
Reconsider P9 where a fair coin is tossed three times, and
the outcome (a head or tail) of throw is noted. What is the
probability that a head is shown on only one toss of the
coin?
.5
P(
T) P(H)=0
=0 .5
. 5 ) = 0
P( H P(T)=0.
5
P(T 5
)= 0 .5 P(H)=0.
P(T)=
0.5
EXERCISE P16:
A manufacturer makes chips to go in mobile phones.
The machine used to make the chips is getting old,
and therefore, there is a 40% probability that a chip
made will be defective. The manufacturer makes a
batch of 6 chips. You are told that the binomial
distribution would be an appropriate probability
distribution to model this scenario.
μ = np
σ2 = np(1 - p)
σ = np(1 - p)
EXERCISE P17:
What is the expected value and variance of the number
of defective chips made in the sample for P16?
Poisson Distribution
Used where we have an event that has two
complementary outcomes, but when we do not know
n or p
We need to know the mean number of successes per
‘unit’, where a unit maybe time or number of items
made etc.
The criteria of the Poisson distribution are that:
There are two complementary events
The probability of success is unknown, but
considered to be small
The mean number of successes is known and fixed
EXERCISE P18: (taken from core text, page 205)
Attendance records at a large factory show that on
average, there are seven absentees on any one day. What
is the probability that on a certain day, there will be eight
people absent?
2.
3.
Mathematical representation of the Poisson
Distribution
The Poisson distribution can be generalised as
follows. To find the probability that a discrete
random variable (X) takes on a particular value (r) we
can find P(X=r) as follows:
P( X r )
e m
-m r
r!
m is the mean number of successes per ‘unit’
r is the number of successes
e is a constant and approximately e = 2.71828
EXERCISE P19:
Find the probability that there will be eight people
absent on a certain day for the example in P18.
EXERCISE P20:
A nationwide energy company experiences 2 electricity
power failures any particular month.