Engineering Data Analysis Chap3
Engineering Data Analysis Chap3
P(X=0)=0.6561,
P(X=1)=0.2916,
P(X=2)=0.0486,
P(X=3)=0.0036,
P(X=4)=0.0001
2
• Definition
3
3-3 Cumulative distribution functions
• Ex. 3-6 P(X3) for Ex.3-4
The event that {X3} is the union of the events {X=0}, {X=1},
{X=2}, and {X=3}.
P(X3)= P(X=0)+ P(X=1)+ P(X=2)+ P(X=3)=0.9999
• Definition
4
Ex 3-8 Suppose that a day’s production of 850 manufactured parts
contains 50 parts that do not conform to customer requirements.
Two parts are selected at random, without replacement, from the
batch. Let the random variable X equal the number of
nonconforming parts in the sample. What is the cumulative
distribution function of X?
P(X=0)= (800/850)(799/849)=0.886
P(X=1)= (800/850)(50/849)+(50/850)(800/849) =0.111
P(X=2)= (50/850)(49/849)=0.003
F(0)= P(X=0)=0.886
F(1)= P(X1)=0.886+0.111=0.997
F(2)= P(X2)=1
5
Note that F(x) is defined for all x from -∞<x<∞ and not only
for 0,1, and 2.
6
3-4 mean and variance of a discrete random
variable
• Definition
E[(X-)2]
i 1
9
N
N ( N 1) N
N ( N 1)( 2 N 1)
n
2
, n2 6
n 1 n 1
ba ba
b
(b a )( b a 1)
n (a n) a 2an n (b a 1)a 2a
2 2 2 2
2
2
n a n 0 n 0
(b a )( b a 1)( 2b 2a 1)
6
(b a 1)[ 2a 2 2ab 2b 2 b a ] / 6
4 4! 4 x 4 x
and, P( X x ) 0.1 0.9
x x! ( 4 x )! x
n k n k
n
(a b) a b
n
k 0 k
13
• Definition
14
15
• Ex. 3-18. Each sample of water has a 10% chance of containing a
particular organic pollutant. Assume that the samples are
independent with regard to the presence of the pollutant. Find the
probability that in the next 18 samples,
(a) exactly 2 contain the pollutant.
(b) Determine the probability that at least four samples contain the
pollutant.
18 18!
(a) P(X=2)= (0.1) (0.9)
2 16
(0.1) 2 (0.9)16 0.284
2 (2!)(16!)
18 18
(b) P(X4)= (0.1x )(0.9)18 x 1-P(X<4)
x 4 x
3
18
1 (0.1) x (0.9)18 x 0.098
x 0 x
16
3-7 Geometric and Negative Binomial
Distribution
• Geometric distribution
Instead of a fixed number of trials, trials are conducted until a
success is obtained.
• Ex. 3-20 The probability that a bit transmitted through a digital
transmission channel is received in error is 0.1. Assume the
transmissions are independent events, and let the random variable
X denote the number of bits transmitted until the first error.
1 P( X 3)
1 P( X 1) P( X 2) 1 0.4 0.6*0.4 0.36
20
• Negative Binomial Distribution
Definition
23
A binomial random variable is a count of the number of
successes in n Bernoulli trials.
The number of trials is predetermined, and the number of
successes is random.
A negative binomial random variable is a count of the number
of trials required to obtain r successes.
The number of successes is predetermined, and the
number of trials is random.
24
3.8 Hypergeometric Distribution
• Ex. 3-8
25
• Definition
26
• Ex3-8 Four parts are selected.
Four parts do not conform P(X=4)
What is the probability that two or more parts in the sample do
not conform? P(X2)
What is the probability that at least one part does not conform.
P(X1)=1- P(X=0)
27
Finite population correction factor
The term in the variance of a hypergeometric random variable
N n
N 1
28
29
Ex. From an ordinary deck of 52 cards, we draw cards at random
with replacement, and successively until an ace is drawn. What is
the probability that at least 10 draws are needed?
30
3.9 Poisson Distribution
• Ex3-30
n bits, X:the number of bits in error.
31
Now, suppose that the number of bits transmitted increases
and the probability of an error decreases exactly enough that
pn remains equal to a constant.
That is, n increases and p decreases accordingly, such that E(X)
= remains constant.
32
• Definition
In general, consider an interval T of real numbers partitioned
into subintervals of small length Δt and assume that as Δt
tends to zero,
(1) the probability of more than one count in a subinterval is
zero,
(2) the probability of one count in a subinterval tends to λΔt/T,
(3) the event in each subinterval is independent of other
subintervals.
A random experiment with these properties is called a Poisson
process.
These assumptions imply that the subintervals can be thought
of as approximate independent Bernoulli trials with success
probability p = t/T and the number of trials equal to n =
T/t. Here, pn = , and as t tends to zero, n tends to infinity.
33
The random variable X that equals the number of counts in the
interval is a Poisson random variable with parameter 0<,
and the probability mass function of X is
Ex.
(a) f(5)= exp(-5)(5^5)/5!
(b) mean= 5/h=7.5/(1.5h), f(10)= exp(-7.5)(7.5^10)/10!
(c) mean= 2.5/(0.5h),
P(X<2)= f(0)+f(1)=exp(-2.5)+exp(-2.5)(2.5)
34
35
36
• Ex.一武俠線上遊戲用一數學模型模擬玩家閉關修練某武功所
花的時間:系統每一秒會隨機產生一1至10000的整數,當這整
數小於玩家的智力時則閉關修練成功.若玩家的智力為30時.
1.平均要花多少時間才能修練成功?
2.修練時間超過一小時的機率?
37