STAT 342 Statistical Methods For Engineers
STAT 342 Statistical Methods For Engineers
STAT 342 Statistical Methods For Engineers
Probability Histogram A graph of the probability distribution that displays the possible
value of a discrete random variable on the horizontal axis and the probabilities of those
values on the vertical axis. The probability of each value is represented by a vertical bar
whose height equals the probability.
Probability Distribution
• Pattern of distribution of probabilities over all possible events
• Discrete probability distribution is associated with random variable that can take on only a finite
number of values
• Continuous probability distribution is associated with random variable that can take on infinite
number of values
Probability Distribution
➢ The probability distribution is a complete probabilistic description of a random variable.
➢ All other statistical concepts (expectation, variance, etc) are derived from it.
➢ Once we know the probability distribution of a random variable, we know everything we can learn
about it from statistics.
• Probability function
– One form the probability distribution of a discrete random variable may be expressed in.
– Expresses the probability that X takes the value x as a function of x (as we saw before):
PX x P( X x)
Probability Distribution
• The probability function, properties
PX x 0 for each x P x 1
X
x
1.0
Cumulative Probability Distribution (cdf) Cumulative normal
0.8 density function
The cdf is a function which describes the probability that
a random variable does not exceed a value.
0.6 Normal probability
FX x P X x f ( xi ) F 50.00%
density function
xi x 0.4
0 -3s -2s -s m s 2s 3s
y x
Probability Distribution
x
F ( x) f ( x)dx
0 , -
F ( x) f ( x)dx 1
-
d ( F ( x))
f ( x)
dx
Probability Distribution and Probability Mass Functions
For a discrete random variable X with possible values x1, x2, …..xn, a probability
mass function is a function such that:
f xi 0
N
f (x ) 1
i 1
i
f xi P ( X xi )
0 F ( x) 1
If x y , then F ( x ) F ( y )
Expected Value
If a random variable x can have any of the values x1, x2 , x3 ,…, xn, and the corresponding probabilities of
E( x) x1 P( x1 ) x2 P( x2 ) xn P( xn ).
Mean and Variance of a Discrete Random Variable
Mean m E X xf ( x)
x
Variance s V ( X ) E ( X - m ) x - m f ( x) x 2 f ( x) - m 2
2 2 2
x x
Standard Deviation s s2
s V ( X ) x - m f ( x) x 2 f ( x) - 2m xf ( x) m 2 f ( x)
2 2
x x x x
s 2 V ( X ) x 2 f ( x) - 2m 2 m 2 x 2 f ( x) - m 2
x x
Mean and Variance of a Discrete Random Variable
It is possible to calculate expectations and variances of functions of random variables
E g X g x P X x
x
V g X g x - E g x P X x
2
Linear functions
If a and b are constants and X is a random variable
It can be shown that:
E aX b aE X b
V aX b a V X
2
Discrete Uniform Distribution
A random variable X has a discrete uniform distribution if each of the n values
in its range, say, x1, x2, …, xn, has equal probability, then,
1
f ( xi )
n
Discrete Uniform Distribution
1
PDF , a xb
f ( x) b - a
0, otherwise
0, xa
x -a
CDF F ( x) , x [ a, b)
b - a
1, xb
ba
Mean m E( X )
2
(b - a ) 2
Variance s V ( X )
2
12
Discrete Uniform Distribution
f(x)
100
80
Cum % Less Than
or Equal To 60
40
20
0
0 1,000 2,000 3,000 4,000 5,000 6,000
Lease Operating Cost, $
Binomial Distribution
• A random experiment consists of Bernoulli trials such that
– Number of trials is discrete
– Each trial results in only one of two possible outcomes— “success” and “failure”
– Probability (p) of each outcome remains constant from one trial to the next
The random variable X that equals the number of trials that result in a success is a binomial
random variable with parameters 0<p<1 and n=1,2, …. The probability mass function of X is:
n n- x
f ( x) p (1 - p )
x
x 0,1,........, n
x
Bernoulli trials --independent trials with constant probability p of a success
Binomial Distribution
Mean
m E ( X ) np
Variance
s V ( X ) npq
2
q 1 - p
Geometric and Negative Binomial Distribution
In a series of Bernoulli trials, the random variable X that equals the number of trials
until the first success is Geometric random variable with parameter 0<p<1, and
x -1
f ( x) (1 - p ) p, x 1,2,....
➢ Repeated binomial trials
m E( X )
1 (1 - p ) q
Mean Variance s 2
2
2
p p p
Geometric Distribution is a probability distribution to determine the probability that success will
occur on the nth trial of a binomial experiment.
Geometric and Negative Binomial Distribution
In a series of Bernoulli trials, the random variable X that equals the number of trials
until r success occur is Negative Binomial random variable with parameter 0<p<1,
and r=1, 2, 3, …., and
x - 1
f ( x) (1 - p ) x - r p r , x r , r 1, r 2,....
r - 1
r
Mean m E( X )
p
r (1 - p ) rq
Variance s 2
2
2
p p
Hypergeometric Distribution
In a set of N objects contains:
K objects classified as success & N-K objects classified as failure
A sample of size n objects is selected randomly (with replacement) from the N objects
where K N and n N.
The random variable X that equals the number of success in the sample is a
hypergeometric random variable and
K N - K
x n - x
f ( x) , x max{0, n K - N }to min{K , n}
N
n
N -n
Mean m E ( X ) np Variance s 2
np (1 - p )
N -1
Hypergeometric Distribution
The random variable X that equals the number of events in the interval is a Poisson
random variable with parameter 0 , and the probability mass function of X is
e - T ( T ) x
f ( X x) x 0,1,2,....
x!
Poisson Distribution
Mean m E ( X ) T
Variance s 2 V ( X ) T