Professional Documents
Culture Documents
Distributions
BITS Pilani Dr. Udayan Chanda, Department of Management, BITS Pilani.
Pilani|Dubai|Goa|Hyderabad
Learning Objectives
In this session, you learn:
• The properties of a probability distribution
16-Aug-17 3
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Types of Random Variables
• Discrete Random Variable can assume only
certain clearly separated values. It is usually
the result of counting something
16-Aug-17 4
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Definitions
Random Variables
Random
Variables
Discrete Continuous
Random Variable Random Variable
P( x ) 1
i 1
i
Discrete Distributions
Probability
sum to unity
unity..
0.25
0.20
0.15
Note also that a 0.10
X = # of heads, 0 0.25
1 0.50
compute expected value of X:
2 0.25
x P(x)
What is the average or expected
0 0.05
number of service calls?
1 0.10
2 0.30
3 0.25
4 0.20
5 0.10
Total 1.00
Discrete Distributions
Example: Service Calls
0.15
0.10
= 2.75.
0.05
However, the mean
0.00
0 1 2 3 4 5 is still the balancing
= 2.75
Num ber of Service Calls
point.
Because E(X) is an average
average,, it does not have to be an
observable point.
Discrete Distributions
Application: Life Insurance
N
σ σ2 i
[X
i1
E(X)]2
P(Xi )
where:
E(X) = Expected value of the discrete random variable X
Xi = the ith outcome of X
P(Xi) = Probability of the ith occurrence of X
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Discrete Random Variables
Measuring Dispersion (continued)
σ [X E(X)] P(X )
i
2
i
16-Aug-17 23
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Mean of a Probability Distribution - Example
16-Aug-17 24
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Variance and Standard
Deviation of a Probability Distribution - Example
16-Aug-17 25
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Probability Distributions
Probability
Distributions
Discrete Continuous
Probability Probability
Distributions Distributions
16-Aug-17
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Uniform Distribution
Characteristics of the Uniform Distribution
0.14 0.80
0.70
0.12
Probability
Probability
0.60
0.10
0.50
0.08
0.40
0.06
0.30
0.04 0.20
0.02 0.10
0.00 0.00
1 2 3 4 5 6 1 2 3 4 5 6
Number of Dots Show ing on the Die Number of Dots Show ing on the Die
(b a) 1
2
1
(6 1) 1
2
1
1.708
12 12
Uniform Distribution
Application: Pumping Gas
On a gas pump, the last two digits (pennies) displayed
will be a uniform random integer (assuming the pump
stops automatically).
0.012 1.000
0.900
0.010
0.800
0.700
0.008
0.600
0.006 0.500
0.400
0.004
0.300
0.200
0.002
0.100
0.000 0.000
0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90
Pennies Digits on Pum p Pennies Digits on Pum p
PMF CDF
The parameters are: a = 00 and b = 99
Uniform Distribution
Application: Pumping Gas
• The PMF for all x is:
1 1 1
P( x) .010
b a 1 99 0 1 100
• Calculate the mean as:
a b 0 99
49.5
2 2
• Calculate the standard deviation as:
(b a) 1 1
2
(99 0) 1 1
2
28.87
12 12
Binomial Probability Distribution
i 1
n!
P(X 2) π X (1 π ) n X
X!(n X)!
10!
(.02)2 (1 .02)10 2
2!(10 2)!
(45)(.0004)(.8508)
.01531
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Binomial Distribution
Example
There are five flights daily from Pittsburgh via US
Airways into the Bradford, Pennsylvania,
Regional Airport. Suppose the probability that
any flight arrives late is .20.
16-Aug-17 44
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Binomial Distribution
Shape
P(X) n = 5 π = 0.5
.6
.4
.2
0
Here, n = 5 and π = .5 0 1 2 3 4 5 X
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Binomial Distribution
Using Binomial Tables
n = 10
x … π=.20 π=.25 π=.30 π=.35 π=.40 π=.45 π=.50
0 … 0.1074 0.0563 0.0282 0.0135 0.0060 0.0025 0.0010 10
1 … 0.2684 0.1877 0.1211 0.0725 0.0403 0.0207 0.0098 9
2 … 0.3020 0.2816 0.2335 0.1757 0.1209 0.0763 0.0439 8
3 … 0.2013 0.2503 0.2668 0.2522 0.2150 0.1665 0.1172 7
4 … 0.0881 0.1460 0.2001 0.2377 0.2508 0.2384 0.2051 6
5 … 0.0264 0.0584 0.1029 0.1536 0.2007 0.2340 0.2461 5
6 … 0.0055 0.0162 0.0368 0.0689 0.1115 0.1596 0.2051 4
7 … 0.0008 0.0031 0.0090 0.0212 0.0425 0.0746 0.1172 3
8 … 0.0001 0.0004 0.0014 0.0043 0.0106 0.0229 0.0439 2
9 … 0.0000 0.0000 0.0001 0.0005 0.0016 0.0042 0.0098 1
10 … 0.0000 0.0000 0.0000 0.0000 0.0001 0.0003 0.0010 0
… π=.80 π=.75 π=.70 π=.65 π=.60 π=.55 π=.50 x
Examples:
n = 10, π = .35, x = 3: P(x = 3|n =10, π = .35) = .2522
n = 10, π = .75, x = 2: P(x = 2|n =10, π = .75) = .0004
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Binomial Distribution - Table
Five percent of the worm gears produced by an automatic, high-
speed Carter-Bell milling machine are defective. What is the
probability that out of six gears selected at random none will be
defective? Exactly one? Exactly two? Exactly three? Exactly four?
Exactly five? Exactly six out of six?
16-Aug-17
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Binomial Distribution
Characteristics
• Mean
μ E(x) nπ
Variance and Standard Deviation
2
σ nπ (1 - π )
σ nπ (1 - π )
Where n = sample size
π = probability of the event of interest for any trial
(1 – π) = probability of no event of interest for any trial
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Binomial Distribution
Characteristics
Examples
P(X) n = 5 π = 0.1
μ nπ (5)(.1) 0.5 .6
.4
.2
σ nπ (1 - π ) (5)(.1)(1 .1)
0
0.6708 0 1 2 3 4 5 X
P(X) n = 5 π = 0.5
μ nπ (5)(.5) 2.5 .6
.4
σ nπ (1 - π ) (5)(.5)(1 .5) .2
0
1.118 0 1 2 3 4 5 X
Discrete Probability Distribution
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Binomial Distribution
Characteristics
For the example regarding
the number of late flights,
recall that p =.20 and n =
5.
16-Aug-17 51
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Using Excel For The Binomial Distribution
16-Aug-17 53
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Cumulative Binomial Probability
Distributions
• Solution:
16-Aug-17 54
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Binomial Distribution
Example: Quick Oil Change Shop
• It is important to quick oil change shops to ensure
that a car’s service time is not considered “late” by
the customer
customer..
• Service times are defined as either late or not late
late..
n=5
0.20
0.15 0.20
0.15
0.15
0.10 0.10
0.10
0.05 0.05
0.05
0.00
0.00 0.00
0 5 10 15 20
0 5 10 15 20 0 5 10 15 20
Num ber of Successes
Num ber of Successes Num ber of Successes
Binomial Distribution
Binomial Shape
0.30 0.30
0.25
0.25 0.25
0.20
0.20 0.20
0.15
0.15 0.15
n = 10 0.10
0.05
0.10
0.05
0.10
0.05
0.00
0.00 0.00
0 5 10 15 20
0 5 10 15 20 0 5 10 15 20
Num ber of Successes
Num ber of Successes Num ber of Successes
Binomial Distribution
Binomial Shape
n = 20 0.05
0.06
0.04 0.05
0.02
0.00
0.00 0.00
0 5 10 15 20
0 5 10 15 20 0 5 10 15 20
Num ber of Successes
Num ber of Successes Num ber of Successes
Binomial Distribution
p = .20 p = .50 p = .80
Skewed right Symmetric Skewed left
0.45 0.35 0.45
0.40 0.40
0.30
0.35 0.35
0.25
0.30 0.30
0.25 0.20 0.25
n=5
0.20 0.15 0.20
0.15 0.15
0.10
0.10 0.10
0.05
0.05 0.05
0.00 0.00 0.00
0 5 10 15 20 0 5 10 15 20 0 5 10 15 20
Num ber of Successes Num ber of Successes Num ber of Successes
0.25 0.25
0.20
0.20 0.20
0.15
n = 10 0.15
0.10
0.10
0.05
0.15
0.10
0.05
0.05
0.00 0.00
0.00
0 5 10 15 20 0 5 10 15 20
0 5 10 15 20
Num ber of Successes Num ber of Successes
Num ber of Successes
n = 20
0.10
0.10 0.08 0.10
0.06
0.05
0.04 0.05
0.02
0.00
0.00 0.00
0 5 10 15 20
Binomial Distribution
Application: Uninsured Patients
• On average, 20% of the emergency room patients at
Greenwood General Hospital lack health insurance.
• In a random sample of 4 patients, what is the probability
that at least 2 will be uninsured?
• X = number of uninsured patients (“success”)
• P(uninsured) = p = 20% or .20
• n = 4 patients
• The range is X = 0, 1, 2, 3, 4 patients.
Binomial Distribution
Application: Uninsured Patients
• What is the mean and standard deviation of this
binomial distribution?
= 4(.20(1-
4(.20(1-.20)
= 0.8 patients
Binomial Distribution
4! = BINOMDIST(4,4,.2,0)
P(4) (.2)4 (1 .2)44 1 .24 .80
4!(4 4)! =.0016
Binomial Distribution
Application: Uninsured Patients
Binomial probabilities can also be determined by
looking them up in a table for selected values of n
(row) and p (column)
(column)..
p
n X 0.01 0.02 0.05 0.10 0.15 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.85 0.90 0.95 0.98 0.99
2 0 0.9801 0.9604 0.9025 0.8100 0.7225 0.6400 0.4900 0.3600 0.2500 0.1600 0.0900 0.0400 0.0225 0.0100 0.0025 0.0004 0.0001
1 0.0198 0.0392 0.0950 0.1800 0.2550 0.3200 0.4200 0.4800 0.5000 0.4800 0.4200 0.3200 0.2550 0.1800 0.0950 0.0392 0.0198
2 0.0001 0.0004 0.0025 0.0100 0.0225 0.0400 0.0900 0.1600 0.2500 0.3600 0.4900 0.6400 0.7225 0.8100 0.9025 0.9604 0.9801
3 0 0.9703 0.9412 0.8574 0.7290 0.6141 0.5120 0.3430 0.2160 0.1250 0.0640 0.0270 0.0080 0.0034 0.0010 0.0001 -- --
1 0.0294 0.0576 0.1354 0.2430 0.3251 0.3840 0.4410 0.4320 0.3750 0.2880 0.1890 0.0960 0.0574 0.0270 0.0071 0.0012 0.0003
2 0.0003 0.0012 0.0071 0.0270 0.0574 0.0960 0.1890 0.2880 0.3750 0.4320 0.4410 0.3840 0.3251 0.2430 0.1354 0.0576 0.0294
3 -- -- 0.0001 0.0010 0.0034 0.0080 0.0270 0.0640 0.1250 0.2160 0.3430 0.5120 0.6141 0.7290 0.8574 0.9412 0.9703
4 0 0.9606 0.9224 0.8145 0.6561 0.5220 0.4096 0.2401 0.1296 0.0625 0.0256 0.0081 0.0016 0.0005 0.0001 -- -- --
1 0.0388 0.0753 0.1715 0.2916 0.3685 0.4096 0.4116 0.3456 0.2500 0.1536 0.0756 0.0256 0.0115 0.0036 0.0005 -- --
2 0.0006 0.0023 0.0135 0.0486 0.0975 0.1536 0.2646 0.3456 0.3750 0.3456 0.2646 0.1536 0.0975 0.0486 0.0135 0.0023 0.0006
3 -- -- 0.0005 0.0036 0.0115 0.0256 0.0756 0.1536 0.2500 0.3456 0.4116 0.4096 0.3685 0.2916 0.1715 0.0753 0.0388
4 -- -- -- 0.0001 0.0005 0.0016 0.0081 0.0256 0.0625 0.1296 0.2401 0.4096 0.5220 0.6561 0.8145 0.9224 0.9606
Binomial Distribution
Compound Events
• Or use =BINOMDIST(67,1024,0.048,0)
Binomial Distribution
Recognizing Binomial Applications
In a sample of 20 friends:
• How many are left-
left-handed?
1.79 e1.7
P(9) .0001 =POISSON(9,1.7,0)
9!
Poisson Distribution
• Here are the graphs of the distributions:
0.35 1.00
0.90
0.30
0.80
0.25 0.70
Probability
Probability
0.60
0.20
0.50
0.15 0.40
0.10 0.30
0.20
0.05
0.10
0.00 0.00
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
Num ber of Custom er Arrivals Num ber of Custom er Arrivals
• Set = np = (1000)(.0006) = .6
28 2! 8!
1 2 1! 1! 2! 6! 56 7
P (1) = .4667 =HYPGEOMDIST(1,3,2,10)
10 10! 120 15
3! 7!
3
2 8 2! 8!
2 1 2! 0! 1! 7! 8 1
P(2) = .0667 =HYPGEOMDIST(2,3,2,10)
10 10! 120 15
3! 7!
3
Hypergeometric Distribution