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