pdf_CDF

advertisement
Chapter 4: Continuous Random Variables
Definition:
Let ๐‘Œ denote a random variable (r. v.) then the distribution function of ๐‘Œ is
denoted by ๐‘ญ(๐’š) and is defined by
๐‘ญ(๐’š) = ๐‘ท ( ๐’€ ≤ ๐’š ),
๐Ÿ๐จ๐ซ − ∞ < ๐’š < ∞.
๐น( ๐‘ฆ ) is also called the cumulative distribution function of ๐‘Œ and is
abbreviated as CDF.
Example 4.1
Suppose that ๐‘Œ has a binomial distribution with ๐‘› = 2 and ๐‘ = 1/2. Find
๐น(๐‘ฆ).
2 1 ๐‘ฆ 1 2−๐‘ฆ
2 1 2
The probability function of Y is ( ) ( ) ( )
= ( ) ( ) for ๐‘ฆ = 0, 1, 2.
2
๐‘ฆ 2
๐‘ฆ 2
1
1
1
๐‘(0) = ,
๐‘(1) = , ๐‘(2) =
4
2
4
for ๐‘ฆ < 0,
0,
1/4, for 0 ≤ ๐‘ฆ < 1,
๐น(๐‘ฆ) = ๐‘ƒ(๐‘Œ ≤ ๐‘ฆ) = {
3/4, for 1 ≤ ๐‘ฆ < 2,
for ๐‘ฆ ≥ 2.
1
1
Properties of a CDF,
If ๐น( ๐‘ฆ ) is a distribution function, then
1.
๐‘ญ(−∞) = ๐ฅ๐ข๐ฆ ๐‘ญ(๐’š) = ๐ŸŽ
2.
๐‘ญ(∞) = ๐ฅ๐ข๐ฆ ๐‘ญ(๐’š) = ๐Ÿ
3.
๐’š→−∞
๐’š→∞
๐‘ญ( ๐’š ) is a non-decreasing function.
That is, if ๐‘ฆ1 < ๐‘ฆ2 , ๐‘กโ„Ž๐‘’๐‘› ๐น(๐‘ฆ1 ) ≤ ๐น(๐‘ฆ2 )
Definition:
The random variable ๐‘Œ with CDF ๐น(๐‘ฆ) is said to be continuous if ๐น(๐‘ฆ) is
continuous on (− ∞ , ∞ ).
Let ๐น(๐‘ฆ) be the CDF of a continuous random variable ๐‘Œ. The probability
density function (pdf) of Y is defined as
๐’…๐‘ญ(๐’š)
๐’‡(๐’š) = ๐‘ญ′ (๐’š) =
๐’…๐’š
By the fundamental theorem of calculus,
2
๐’š
๐‘ญ(๐’š) = ∫ ๐’‡(๐’•)๐’…๐’•
−∞
Properties of a pdf,
If ๐‘“(๐‘ฆ)is a density function for a continuous random variable, then
1.
๐‘“(๐‘ฆ) ≥ 0 for all ๐‘ฆ, −∞ < ๐‘ฆ < ∞
2.
∫−∞ ๐‘“(๐‘ฆ)๐‘‘๐‘ฆ = 1
∞
Let ๐‘Œ be a random variable with pdf ๐‘“(๐‘ฆ)then
๐‘
๐‘ƒ(๐‘Ž ≤ ๐‘Œ ≤ ๐‘) = ∫ ๐‘“(๐‘ฆ)๐‘‘๐‘ฆ
๐‘Ž
3
Note that ๐‘ƒ(๐‘Ž ≤ ๐‘Œ ≤ ๐‘) = ๐‘ƒ(๐‘Ž < ๐‘Œ < ๐‘) = ๐‘ƒ(๐‘Ž ≤ ๐‘Œ < ๐‘) + ๐‘ƒ(๐‘Ž < ๐‘Œ ≤ ๐‘)
(WHY?)
Example 4.2
Suppose that
0,
๐น(๐‘ฆ) = {๐‘ฆ,
1,
for ๐‘ฆ < 0
for 0 ≤ ๐‘ฆ ≤ 1
for ๐‘ฆ > 1
Find the pdf for ๐‘Œ and graph it.
Example 4.3
Y’s pdf is
๐‘“(๐‘ฆ) = {
3๐‘ฆ 2 , 0 ≤ ๐‘ฆ ≤ 1
0,
elsewhere
Find CDF of Y. Graph both ๐‘“(๐‘Œ)and ๐น(๐‘Œ).
4
0,
๐น(๐‘ฆ) = {๐‘ฆ 3 ,
1
๐‘ฆ<0
0≤๐‘ฆ≤1
๐‘ฆ>1
Exercise 4.11 on page 167:
Suppose random variable ๐‘Œ has pdf ๐‘“(๐‘ฆ) given by the following:
a.
๐‘๐‘ฆ, if 0 ≤ ๐‘ฆ ≤ 2
๐‘“(๐‘ฆ) = {
0,
otherwise
Find ๐‘ so that ๐‘“(๐‘ฆ) is a valid pdf.
b.
Find ๐น(๐‘Œ)
c.
Graph ๐‘“(๐‘ฆ)and ๐น(๐‘ฆ)
d.
Use ๐น(๐‘Œ)to find ๐‘ƒ(1 ≤ ๐‘Œ ≤ 2)
e.
Use ๐‘“(๐‘ฆ) and geometry to find ๐‘ƒ(1 ≤ ๐‘Œ ≤ 2)
f.
Find ๐‘ƒ(๐‘Œ ≥ 1 | ๐‘Œ ≤ 3)
Solve:
∞
2
a. By property of pdf, ∫−∞ ๐‘“(๐‘ฆ)๐‘‘๐‘ฆ = 1. So, ∫0 ๐‘๐‘ฆ๐‘‘๐‘ฆ = 1
2
2
2
๐‘ฆ2
22
∫ ๐‘๐‘ฆ๐‘‘๐‘ฆ = ๐‘ ∫ ๐‘ฆ๐‘‘๐‘ฆ = ๐‘ โˆ™ ] = ๐‘ โˆ™ ( − 0) = ๐‘ โˆ™ 2 = 1
2 0
2
0
0
∴๐‘=
1
2
๐‘ฆ
0
๐‘ฆ
0
๐‘ฆ1
b. ๐น(๐‘ฆ) = ∫−∞ ๐‘“(๐‘ก)๐‘‘๐‘ก = ∫−∞ ๐‘“(๐‘ก)๐‘‘๐‘ก + ∫0 ๐‘“(๐‘ก)๐‘‘๐‘ก = ∫−∞ 0๐‘‘๐‘ก + ∫0
1 1 2 ๐‘ฆ ๐‘ฆ2
=0+ โˆ™ ๐‘ก ] =
2 2 0
4
0,
๐‘ฆ2
๐น(๐‘ฆ) = {
4
1,
5
if − ∞ < ๐‘ฆ < 0
if 0 ≤ ๐‘ฆ < 2
if ๐‘ฆ ≥ 2
2
๐‘ก๐‘‘๐‘ก
c.
d.
๐‘ƒ(1 ≤ ๐‘Œ ≤ 2) = ๐น (2) − ๐น (1) =
22
4
−
12
4
=
e. The shaded part is a trapezoid.
The area is
1
2
1
3
2
4
[( + 1) โˆ™ 1] =
f. ๐‘ƒ(๐‘Œ ≥ 1 |๐‘Œ ≤ 3) =
๐น (3)−๐น(1)
๐น(3)
=
๐‘ƒ(๐‘Œ≥1 and ๐‘Œ≤3)
๐‘ƒ(๐‘Œ≤3)
1
4
1−
1
=
3
4
Do Examples 4.4 & 4.5 on page 165yourself.
6
=
๐‘ƒ(1≤๐‘Œ≤3)
๐‘ƒ(๐‘Œ≤3)
=
3
4
Download