Statistics For Business and Economics: 7 Edition
Statistics For Business and Economics: 7 Edition
Chapter 4
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-1
Introduction to
4.1 Probability Distributions
(olasılık dağılımları)
a random experiment
Random
Variables
Discrete Continuous
Ch. 4 Random Variable Random Variable Ch. 5
(kesikli tesadüfi (sürekli tesadüfi
değişken) değişken)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-2
It’s important to distinguish between a random
variable and the possible values that it can
take.
Examples:
4 possible outcomes
Probability Distribution
T T x Value Probability
0 1/4 = .25
T H 1 2/4 = .50
2 1/4 = .25
H T
Probability
.50
.25
H H
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
0 1 2 x Ch. 4-7
4.3
Probability Distribution
Required Properties
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-8
Cumulative Probability Function
F(x0 ) P(X x 0 )
In other words,
F(x 0 ) P(x)
x x0
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-9
Example (pp.163)
x 0 1 2 3 4 5 6
P(x) 0,05 0,10 0,20 0,20 0,20 0,15 0,10
a) P(3 ≤ x < 6) = ?
b) P(x > 3) = ?
c) P(x ≤ 4) = ?
d) P(2 < x ≤ 5) = ?
Expected Value
Expected Value (or mean) of a discrete
distribution (Weighted Average)
μ E(X) xP(x)
x
x P(x)
Example: Toss 2 coins, 0 .25
x = # of heads, 1 .50
compute expected value of x: 2 .25
E(x) = (0 x .25) + (1 x .50) + (2 x .25)
= 1.0
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-12
Example (pp.165)
σ E(X μ) (x μ) P(x)
2 2 2
σ σ2 x
(x μ) 2
P(x)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-14
Standard Deviation Example
σ (x
x
μ) 2
P(x)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-15
Example (pp.167)
Olaf Motors Inc., is a car
dealer in a small x P(x)
southern town. Based on
an analysis of its sales 0 0,15
history, the managers
know that on any single 1 0,30
day the number of Prius
cars sold can vary from 0 2 0,20
to 5.
3 0,20
Find the expected value
and variance for this 4 0,10
probability distributions.
5 0,05
Functions of Random Variables
E[g(X)] g(x)P(x)
x
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-17
Linear Functions
of Random Variables
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-18
Linear Functions
of Random Variables
(continued)
Let random variable X have mean µx and variance σ2x
Let a and b be any constants.
Let Y = a + bX
Then the mean and variance of Y are
μY E(a bX) a bμX
σ Var(a bX) b σ
2
Y
2 2
x
σY b σX
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-19
Example (pp. 169)
A contractor is interested in the total cost of a project on which she
intends to bid. She estimates that material will cost $ 25.000 and that
her labor will be $ 900 per day. If the project takes X days to
complete, the total labor cost will be 900X dollars and the total cost
of the project (in dollars) will be as follows:
C= 25.000 + 900 X
The contractor froms subjective probalities of a likely completion
times for the project.
a) find the mean and variance for completion time X.
b) find the mean, variance and standard deviation for total cost C
Completion time X
10 11 12 13 14
(days)
Probability 0,10 0,30 0,30 0,20 0,10
Probability Distributions
Probability
Distributions
Binomial Uniform
Hypergeometric Normal
Poisson Exponential
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-21
4.4
The Binomial Distribution
Probability
Distributions
Discrete
Probability
Distributions
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-22
Bernoulli Distribution
x = 1 if success, x = 0 if failure
Then the Bernoulli probability function is
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-23
Bernoulli Distribution
Mean and Variance
The mean is µ = P
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-24
Example (pp.173)
Sequences of x Successes
in n Trials
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-26
Observe that n trials will result in a sequence of
n outcome, each of which must be either
success (S) or failure (F).
S,S,S..S F,F,..F
n!
C n
x
x!(n x)!
Where n! = n·(n – 1)·(n – 2)· . . . ·1 and 0! = 1
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-28
Binomial Probability Distribution
A fixed number of observations, n
e.g., 15 tosses of a coin; ten light bulbs taken from a warehouse
Two mutually exclusive and collectively exhaustive
categories
e.g., head or tail in each toss of a coin; defective or not defective
light bulb
Generally called “success” and “failure”
Probability of success is P , probability of failure is 1 – P
Constant probability for each observation
e.g., Probability of getting a tail is the same each time we toss
the coin
Observations are independent
The outcome of one observation does not affect the outcome of
the other
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-29
Possible Binomial Distribution
Settings
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-30
Binomial Distribution Formula
n! X n-X
P(x) = P (1- P)
x ! (n - x )!
P(x) = probability of x successes in n trials,
with probability of success P on each
Example: Flip a coin four
trial
times, let x = # heads:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-31
Example:
Calculating a Binomial Probability
What is the probability of 1 success in 5
observations if the probability of success is 0.1?
x = 1, n = 5, and P = 0.1
n!
P(x 1) P X (1 P)n X
x!(n x)!
5!
(0.1)1(1 0.1)51
1! (5 1)!
(5)(0.1)(0.9) 4
.32805
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-32
Binomial Distribution
The shape of the binomial distribution depends on the
values of P and n
Mean P(x) n = 5 P = 0.1
.6
Here, n = 5 and P = 0.1 .4
.2
0 x
0 1 2 3 4 5
.6
P(x) n = 5 P = 0.5
Here, n = 5 and P = 0.5
.4
.2
0 x
0 1 2 3 4 5
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-33
Binomial Distribution
Mean and Variance
Mean
μ E(x) nP
Variance and Standard Deviation
σ nP(1- P)
2
σ nP(1- P)
Where n = sample size
P = probability of success
(1 – P) = probability of failure
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-34
Binomial Characteristics
Examples
μ nP (5)(0.1) 0.5
Mean P(x) n = 5 P = 0.1
.6
.4
σ nP(1- P) (5)(0.1)(1 0.1) .2
0.6708 0 x
0 1 2 3 4 5
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-35
Example (pp. 176)
4.5
The Hypergeometric Distribution
Probability
Distributions
Discrete
Probability
Distributions
Binomial
Hypergeometric Hipergeometrik
dağılım
Poisson
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-37
The Hypergeometric Distribution
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-38
Hypergeometric Distribution
Formula
S! (N S)!
CSxCNnxS x!(S x)! (n x)!(N S n x)!
P(x)
CnN
N!
n!(N n)!
Where
N = population size
S = number of successes in the population
N – S = number of failures in the population
n = sample size
x = number of successes in the sample
n – x = number of failures in the sample
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-39
Example
Discrete
Probability
Distributions
Binomial
Hypergeometric
Poisson
Poisson
Dağılımı
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-42
Applications
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-45
Poisson Distribution Formula
λ x
e λ
P(x)
x!
where:
x = number of successes per unit
= expected number of successes per unit
e = base of the natural logarithm system
(2.71828...)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-46
Poisson Distribution
Characteristics
Mean
μ E(X) λ
Variance and Standard Deviation
σ E[(X μ) ] λ
2 2
σ λ
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-47
Poisson Distribution Shape
0.70
= 0.50 0.25
= 3.00
0.60
0.20
0.50
0.15
0.40
P(x)
P(x)
0.30 0.10
0.20
0.05
0.10
0.00 0.00
0 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 9 10 11 12
x x
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-48
Example (pp.185)
Andrew Whittaker, computer center manager,
reports that his computer system experienced 3
component failures during the past 100 days.
P(x, y) P(X x Y y)
The marginal probabilities are
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-51
Properties of Joint Probability Functions
of Discrete Random Variables
Example (pp.191-192)
Conditional Probability Functions
(koşullu olasılık fonksiyonları)
P(x, y)
P(y | x)
P(x)
Similarly, the conditional probability function of X, given
Y = y is:
P(x, y)
P(x | y)
P(y)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-54
Independence
(bağımsızlık)
The jointly distributed random variables X and Y are
said to be independent if and only if their joint probability
function is the product of their marginal probability
functions:
P(x, y) P(x)P(y)
for all possible pairs of values x and y
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-55
Example (pp.194)
Covariance
(covaryans,ortak varyans)
Let X and Y be discrete random variables with means
μX and μY
The expected value of (X - μX)(Y - μY) is called the
covariance between X and Y
For discrete random variables
Cov(X, Y) E[(X μ X )(Y μY )] (x μx )(y μy )P(x, y)
x y
An equivalent expression is
Cov(X, Y) E(XY) μxμy xyP(x, y) μxμy
x y
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-57
Covariance and Independence
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-58
Correlation
The correlation between X and Y is:
Cov(X, Y)
ρ Corr(X, Y)
σ Xσ Y
ρ = 0 no linear relationship between X and Y
ρ > 0 positive linear relationship between X and Y
when X is high (low) then Y is likely to be high (low)
ρ = +1 perfect positive linear dependency
ρ < 0 negative linear relationship between X and Y
when X is high (low) then Y is likely to be low (high)
ρ = -1 perfect negative linear dependency
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-59
Example (pp.206 / 4.82)
A researcher suspected that the number of between-meal snacks eaten by students in a day
during final examinations might depend on the number of tests a student had to take on that
day. The accompanying table shows joint probabilities, estimated from a survey.
a) Find the probability function of X and, hence, the mean number of tests taken by
students on that day.
b) Find the probability function of Y and, hence, the mean number of snacks eaten by
students on that day.
c) Find and interpret the conditional probability function of Y, given that X=3.
d) Find the covariance between X and Y.
e) Are the number of snacks and number of tests independent of each other?