The Binomial Distribution 1
The Binomial Distribution 1
f ( x) = 1
Discrete Probability Distributions
Number 80/200
Units Sold of Days x f ( x)
0 80 0 .40
1 50 1 .25
2 40 2 .20
3 10 3 .05
4 20 4 .10
200 1.00
Discrete Probability Distributions
.50
.40
Probability
.30
.20
.10
0 1 2 3 4
Values of Random Variable x (TV sales)
Discrete Uniform Probability Distribution
expected number of
TVs sold in a day
Expected Value and Variance
Variance and Standard Deviation
We are not dealing with samples but with population values so dealing with
parameters.
The probability stays the same from one trail to the next.
N!
P(r , N , p) C N ,r p r q N r rN p r q N r p r q N r
r!( N r )!
0.40 0.14
Expectation Value
Expectation Value 0.12 = np = 50 * 1/3 = 16.667...
0.30 = np = 7 * 1/3 = 2.333...
0.10
P (k , 50, 1/3)
P (k , 7, 1/3)
0.08
0.20
0.06
0.04
0.10
0.02
0.00 0.00
0 2 4 6 8 10 0 5 10 15 20 25 30
k k
Binomial Distribution
n!
f (x) p x (1 p )( n x )
x !(n x )!
where:
f(x) = the probability of x successes in n trials
n = the number of trials
p = the probability of success on any one trial
Binomial Formulas
Mean
N N m N m
m p q
p m 0 0
N
m
m0
p
N
m
m 1 N m
q
N
m0
p
N
m
m
( N m)(1 p ) N m 1 0
N
p 1 m
m 0
p
N
m
m N m
q N (1 p) 1
m 0
N
p
N
m
m
N
(1 p ) N m (1 p) 1 m
m0
p
N
m
m
(1 p ) N m
p 1 N (1 p ) 1 1 (1 p ) 1
Np
Standard Deviation
N
2
(m ) P(m, N, p)
2 m0
N
Npq
P(m, N, p)
m0
Binomial Distribution
n!
f (x) p x (1 p)( n x )
x !(n x )!
Probability of a particular
Number of experimental sequence of trial outcomes
outcomes providing exactly with x successes in n trials
x successes in n trials
Binomial Distribution
Let: p = .10, n = 3, x = 1
n!
f ( x) p x (1 p ) (n x )
x !( n x )!
3!
f (1) (0.1)1 (0.9)2 3(.1)(.81) .243
1!(3 1)!
Binomial Distribution
Tree Diagram
1st Worker 2nd Worker 3rd Worker x Prob.
L (.1) 3 .0010
Leaves (.1)
S (.9) 2 .0090
Leaves
(.1) L (.1) 2 .0090
Stays (.9)
S (.9) 1 .0810
L (.1) 2 .0090
Leaves (.1)
Stays S (.9) 1 .0810
(.9) L (.1)
1 .0810
Stays (.9)
S (.9) 0 .7290
Binomial Distribution
E(x) = = np
Variance
Var(x) = 2 = np(1 p)
Standard Deviation
np(1 p )
Binomial Distribution
Expected Value
Variance
Standard Deviation
= 6/hour = 3/half-hour, x = 4
34 (2.71828)3
f (4) .1680
4!
Poisson Distribution
Poisson Probabilities
0.25
0.20
Probability
0.15 actually,
the sequence
0.10 continues:
11, 12, …
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10
Number of Arrivals in 30 Minutes
Poisson Distribution
= 2
Poisson Distribution
=2=3
Example
Arrivals at a bus-stop follow a
Poisson distribution with an average
of 4.5 every quarter of an hour.
Obtain a barplot of the distribution
(assume a maximum of 20 arrivals in
a quarter of an hour) and calculate
the probability of fewer than 3 arrivals
in a quarter of an hour.
The probabilities of 0 up to 2 arrivals can
be calculated directly from the formula
x
e with =4.5
p( x )
x!
4.5 0
e 4.5
p(0) So p(0) = 0.01111
0!
Similarly p(1)=0.04999 and p(2)=0.11248
f (x) Exponential
Uniform
f (x)
Normal
f (x )
x
x
x
Continuous Probability Distributions
A continuous random variable can assume any value
in an interval on the real line or in a collection of
intervals.
It is not possible to talk about the probability of the
random variable assuming a particular value.
Instead, we talk about the probability of the random
variable assuming a value within a given interval.
Continuous Probability Distributions
x
x x1 xx12 x2
x1 x2
x
x1 x2
Uniform Probability
Distribution
A random variable is uniformly distributed
whenever the probability is proportional to the
interval’s length.
The uniform probability density function is:
E(x) = (a + b)/2
Variance of x
Var(x) = (b - a)2/12
Uniform Probability
Distribution
Example: Slater's Buffet
Slater customers are charged for the amount
of
salad they take. Sampling suggests that the amount
of salad taken is uniformly distributed between 5
ounces and 15 ounces.
Uniform Probability Distribution
where:
x = salad plate filling weight
Uniform Probability Distribution
Expected Value of x
E(x) = (a + b)/2
= (5 + 15)/2
= 10
Variance of x
Var(x) = (b - a)2/12
= (15 – 5)2/12
= 8.33
Uniform Probability
Distribution
Uniform Probability Distribution
for Salad Plate Filling Weight
f(x)
1/10
x
5 10 15
Salad Weight (oz.)
Uniform Probability Distribution
f(x)
x
5 10 12 15
Salad Weight (oz.)
Normal Probability Distribution
The normal probability distribution is the most
important distribution for describing a continuous
random variable.
It is widely used in statistical inference.
It has been used in a wide variety of applications:
• Heights of people
• Scientific measurements
• Test scores
• Amounts of rainfall
Normal Probability Distribution
Normal Probability Density Function
1 ( x )2 /2 2
f (x) e
2
where:
= mean
= standard deviation
= 3.14159
e = 2.71828
Normal Probability Distribution
Characteristics
x
Normal Probability Distribution
Characteristics
Standard Deviation
x
Mean
Normal Probability Distribution
Characteristics
x
Normal Probability Distribution
Characteristics
x
-10 0 20
Normal Probability Distribution
Characteristics
= 15
= 25
x
Normal Probability Distribution
Characteristics
Probabilities for the normal random variable are
given by areas under the curve. The total area
under the curve is 1 (.5 to the left of the mean and
.5 to the right).
.5 .5
x
Normal Probability Distribution
Characteristics
Characteristics
99.72%
95.44%
68.26%
x
– 3 – 1 + 1 + 3
– 2 + 2
Standard Normal Probability Distribution
z
0
Standard Normal Probability Distribution
x
z
z = (x - )/
= (20 - 15)/6
= .83
P(z
< .83)
Standard Normal Probability Distribution
Probability
of a stockout P(x > 20)
Standard Normal Probability Distribution
Area = 1 - .7967
Area = .7967
= .2033
z
0 .83
Standard Normal Probability Distribution
Area = .9500
Area = .0500
z
0 z.05
Standard Normal Probability Distribution
x = + z.05
= 15 + 1.645(6)
= 24.87 or 25
Density Function
1 x /
f ( x) e for x > 0, > 0
where: = mean
e = 2.71828
Exponential Probability Distribution
Cumulative Probabilities
P ( x x0 ) 1 e xo /
where:
x0 = some specific value of x
Exponential Probability Distribution
Example: Al’s Full-Service Pump
The time between arrivals of cars at Al’s full-service
gas pump follows an exponential probability
distribution with a mean time between arrivals of
3 minutes. Al would like to know the probability that
the time between two successive arrivals will be 2
minutes or less.
Exponential Probability Distribution
f(x)