Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tutorial 8: Further Topics on Random Variables 1

Similar presentations


Presentation on theme: "Tutorial 8: Further Topics on Random Variables 1"β€” Presentation transcript:

1 Tutorial 8: Further Topics on Random Variables 1
Weiwen LIU March 20, 2017

2 Derived distributions
Given π‘Œ=𝑔(𝑋) of a continuous random variable 𝑋 and PDF of 𝑋, how to calculate the PDF of π‘Œ? Two step approach

3 Calculation of PDF of π‘Œ = 𝑔(𝑋)
Calculate the CDF 𝐹 π‘Œ of π‘Œ using the formula 𝐹 π‘Œ 𝑦 =𝑃 𝑔 𝑋 ≀𝑦 = {π‘₯|𝑔(π‘₯)≀𝑦} 𝑓 𝑋 (π‘₯)𝑑π‘₯ Differentiate 𝐹 π‘Œ to obtain the PDF 𝑓 π‘Œ of π‘Œ: 𝑓 π‘Œ 𝑦 = 𝑑 𝐹 π‘Œ 𝑑𝑦 𝑦 .

4 Calculation of PDF of π‘Œ = 𝑔(𝑋)
Linear case: The PDF of π‘Œ=π‘Žπ‘‹+𝑏 in terms of the PDF 𝑋. 𝑓 π‘Œ 𝑦 = 𝑑 𝐹 π‘Œ 𝑑𝑦 𝑦 = 1 |π‘Ž| 𝑓 𝑋 π‘¦βˆ’π‘ π‘Ž Monotonic Case: Suppose that 𝑔 is monotonic and that for some function β„Ž and all π‘₯ in the range of 𝑋 we have 𝑦=𝑔 π‘₯ if and only if π‘₯=β„Ž(𝑦). Assume that β„Ž is differentiable. 𝑓 π‘Œ 𝑦 = 𝑓 𝑋 β„Ž(𝑦) π‘‘β„Ž 𝑑𝑦 (𝑦)

5 Example 1 Let X be a random variable with PDF 𝑓 𝑋 . Find the PDF of the random variable π‘Œ = |𝑋|, (a) when 𝑓 𝑋 π‘₯ = , 𝑖𝑓 βˆ’2<π‘₯≀1, 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’; (b) when 𝑓 𝑋 π‘₯ = 2 𝑒 βˆ’2π‘₯ , 𝑖𝑓 π‘₯>0, 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’; (c) for general 𝑓 𝑋 (π‘₯).

6 Example 1 Since π‘Œ = 𝑋 , you can visualize the PDF for any given 𝑦 as
𝑓 π‘Œ (𝑦)= 𝑓 𝑋 𝑦 + 𝑓 𝑋 βˆ’π‘¦ , 𝑖𝑓 𝑦β‰₯0 0, 𝑖𝑓 𝑦<0 Also note that since π‘Œ = |𝑋|, π‘Œ β‰₯ 0.

7 Example 1 (a) Since 𝑓 𝑋 π‘₯ = 1 3 , 𝑖𝑓 βˆ’2<π‘₯≀1, 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’;
So, 𝑓 𝑋 (π‘₯) for βˆ’1 ≀ π‘₯ ≀ 0 gets added to 𝑓 𝑋 (π‘₯) for 0 ≀ π‘₯ ≀ 1: 𝑓 π‘Œ 𝑦 = , 𝑖𝑓 0≀𝑦<1, 1 3 , 𝑖𝑓 1≀𝑦<2, , π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’;

8 f π‘Œ y = 𝑓 𝑋 π‘₯ = 2 𝑒 βˆ’2π‘₯ , 𝑖𝑓 π‘₯>0, 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’.
Example 1 (b) Here we are told 𝑋 > 0. So there are no negative values of 𝑋 that need to be considered. Thus f π‘Œ y = 𝑓 𝑋 π‘₯ = 2 𝑒 βˆ’2π‘₯ , 𝑖𝑓 π‘₯>0, 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’. (c) As explained in the beginning, 𝑓 π‘Œ (𝑦) = 𝑓 𝑋 (𝑦) + 𝑓 𝑋 (βˆ’π‘¦).

9 Example 2: archer shooting
Two archers shoot at a target. The distance of each shot from the center of the target is uniformly distributed from 0 to 1, independent of the other shot. Question: What is the PDF of the distance of the winning shot from the center?

10 Example 2: archer shooting
Let 𝑋 and π‘Œ be the distances from the center of the first and second shots, respectively. 𝑍: the distance of the winning shot: 𝑍= min 𝑋, π‘Œ . Since 𝑋 and π‘Œ are uniformly distributed over 0,1 , we have, for all π‘§βˆˆ 0, 1 , 𝑃 𝑋β‰₯𝑧 =𝑃 π‘Œβ‰₯𝑧 =1βˆ’π‘§.

11 Example 2: archer shooting
Thus, using the independence of 𝑋 and π‘Œ, we have for all π‘§βˆˆ 0,1 , 𝐹 𝑍 𝑧 =1βˆ’π‘ƒ min ⁑{𝑋, π‘Œ} β‰₯ 𝑧 =1βˆ’π‘ƒ 𝑋β‰₯𝑧 𝑃 π‘Œβ‰₯𝑧 =1βˆ’ 1βˆ’π‘§ 2 . Differentiating, we obtain 𝑓 𝑍 𝑧 = 2(1βˆ’π‘§), if 0≀𝑧≀1. 0, otherwise.

12 Covariance The covariance of two random variables 𝑋 and π‘Œ are defined as cov 𝑋,π‘Œ =E π‘‹βˆ’E 𝑋 π‘Œβˆ’π„ π‘Œ . Alternatively cov 𝑋,π‘Œ =E π‘‹π‘Œ βˆ’E 𝑋 E π‘Œ .

13 Correlation Coefficient
For any random variable 𝑋, π‘Œ with nonzero variances, the correlation coefficient 𝜌 𝑋,π‘Œ of them is defined as 𝜌(𝑋,π‘Œ)= cov(𝑋,π‘Œ) var 𝑋 var(π‘Œ) . It may be viewed as a normalized version of the covariance cov(𝑋,π‘Œ). Recall cov 𝑋,𝑋 =var 𝑋 . It’s easily verified that βˆ’1β‰€πœŒ(𝑋,π‘Œ)≀1

14 Example 3 A restaurant serves three fixed-price dinners costing $12, $15, and $20. For a randomly selected couple dinning at this restaurant, let 𝑋 = π‘‘β„Žπ‘’ π‘π‘œπ‘ π‘‘ π‘œπ‘“ π‘‘β„Žπ‘’ π‘šπ‘Žπ‘›β€™π‘  π‘‘π‘–π‘›π‘›π‘’π‘Ÿ and π‘Œ = π‘‘β„Žπ‘’ π‘π‘œπ‘ π‘‘ π‘œπ‘“ π‘‘β„Žπ‘’ π‘€π‘œπ‘šπ‘Žπ‘›β€™π‘  π‘‘π‘–π‘›π‘›π‘’π‘Ÿ. If the joint PMF of 𝑋 and π‘Œ is assumed to be, what is cov 𝑋,π‘Œ ?

15 Example 3 Cov 𝑋, π‘Œ =𝐄[π‘‹π‘Œ]βˆ’π„ 𝑋 𝐄[π‘Œ] = βˆ’ 15.9 Β· = βˆ’0.755


Download ppt "Tutorial 8: Further Topics on Random Variables 1"

Similar presentations


Ads by Google