Slide Chap4
Slide Chap4
Example:
1. The height of a student at FPT university can be any number
between 150cm – 190cm.
2. The weight of a newborn can be any number between
0.5kg - 4.5kg.
2. Probability density function (pdf)
Definition
The probability density function (pdf) of a continuous random
variable X is a function such that:
(1) ≥ 0, ∀
(2) ∫ =1
(3) ≤ ≤ =∫
= area under f(x) from a to b
(i) P( X x) 0, x
(ii) P( x1 X x2 ) P( x1 X x2 ) P( x1 X x2 ) P( x1 X x2 )
Example 1: Suppose that the probability density function of a
continuous random variable X is:
f (x) e-( x-3) , x ³ 3
Determine
P(1 X 5); P( X 8); P( X ³ 0).
2. f ( x) F ( x)
3. P ( X x) 0, x
4. P (a X b) P( a X b) P( a X b) P (a X b)
b
5. P( a X b) f ( x) dx
a
or
P (a X b) F (b) - F (a )
m
6. P( X m) P( X m) f ( x) dx F ( m)
-
7. P( X m) P( X ³ m) f ( x)dx
m
or
m
P ( X ³ m) 1 - P ( X m) 1 - f ( x) dx 1 - F (m)
-
Chú ý quan trọng: Khi tính toán XS cho BNN liên tục (continuous random variable) thì ta
không cần bận tâm đến việc trong bất đẳng thức có dấu “=” hay không, điều này khác với
BNN rời rạc (discrete random variabe).
4. Mean and variance of a continuous random
variable
Definition
Suppose X is a continuous random variable with probability
density function f(x).
The mean or expected value of X is defined by
E ( X ) : xf ( x)dx
-
The variance of X is defined by
2 V ( X ) : ( x - )2 f ( x)dx x2 f ( x)dx - 2
- -
Example:
EX2 x 2 f ( x) dx, E X 3 x 3 f ( x) dx
- -
Example 1: Assume that X is a continuous random variable with
the following probability density function
x2
f (x) , for - 3 x 3
18
Determine the mean and variance of X.
ì 1
ï , a xb
pdf: f ( x) í b - a
ïî 0 otherwise
ab 2 (b - a ) 2
EX , V (X )
2 12
cdf: ì 0, if x a
ïx-a
ï
F ( x) í , if a x b
ïb - a
ïî1, if x ³ b
Continuous uniform distribution
Example 1: Suppose X has a continuous uniform distribution
over the interval [1;10].
• Determine the mean, variance and standard deviation of X.
• Find P(X<6.5).
• Determine the cumulative distribution function of X.
26/05/2024
Standard normal distribution
Notation: Z = N(0,1) (mean = 0 and variance = 1)
- x2
1 2
pdf: f ( x) e , - x
2
- x2
z 2
e
cdf: (z) dx
- 2
Example 2: Assume that z scores are normally distributed with a mean of 0 and a
standard deviation of 1. If P(z < a) = 0.1487, find a.
Hint: Use Appendix Table III or NORM.S.INV(p) in Excel to find a such that
P(z < a) = p.
26/05/2024
Normal distribution
Standardizing
If X = N(µ, σ2), then
X -
Z
is a standard normal random variable N(0, 1).
• ≤ = ≤ = ≤
• ≥ = ≥ = ≥ =1− ≤
• ≤ ≤ = ≤ ≤
= ≤ ≤ = ≤ − ≤
Normal distribution
Example 1: A machine pours beer into 16 oz. bottles. Experience has shown
that the number of ounces poured is normally distributed with a standard
deviation of 1.3 ounces. Find the probabilities that the amount of beer the
machine will pour into the next bottle will be more than 16.25 ounces.
x 0.5 - np
Continuity correction : P( X x) P( X x 0.5) P(Z )
np(1 - p)
x - 0.5 - np
P( X ³ x) P( X ³ x - 0.5) P(Z ³ )
np(1 - np)
x - 0.5 - np
P( X x) P( X x - 0.5) P(Z )
np(1 - p)
x 0.5 - np
P( X x) P( X x 0.5) P(Z ), ( x 0,1,2,..., n)
np(1 - p)
Approximation using Normal distribution
x 0 .5 -
P ( X x ) P ( X x 0 .5) P ( Z )
x - 0 .5 -
P ( X ³ x ) P ( X ³ x - 0 .5 ) P ( Z ³ )
x - 0 .5 -
P ( X x) 1 - P ( X ³ x) 1 - P (Z ³ )
x 0 .5 -
P ( X x) 1 - P ( X x) 1 - P (Z )
Approximation using Normal distribution