Chap 1 Continuous random variables 1.1 Piecewise definition of a probability density function Use probability density function(PDF) to find probabilities ! ๐(๐ ≤ ๐ฅ ≤ ๐) = ) ๐(๐ฅ)๐๐ฅ " To find the mean, variance, median, percentile, mode from a given PDF #$ ) ๐(๐ฅ)๐๐ฅ = 1 %$ The expectation and variance of a function of X For a discrete random variable, X, in which the value xi occurs with probability pi, the expectation and variance of a function g(X) are given by ๐ธ.๐(๐)1 = 2 ๐(๐ฅ& )๐& ๐๐๐.๐(๐)1 = 2{(๐(๐ฅ& ))' ๐& } − {๐ธ(๐(๐))}' The equivalent results for a continuous random variable, X, with PDF f(x) are: ๐ธ.๐(๐)1 = ) ๐(๐ฅ)๐(๐ฅ)๐๐ฅ ()) *")+,./ 1 ๐๐๐.๐(๐)1 = ) (๐(๐ฅ))' ๐(๐ฅ)๐๐ฅ − {๐ธ.๐(๐)1}' ()) *")+,./ 1 Can think of the function g(X) as a new variable. 1.3 The cumulative distribution function The function giving ๐(๐ ≤ ๐ฅ) is called the cumulative distribution function (CDF), and it is usually denoted by F(x). The best method of obtaining the cumulative distribution function is to use indefinite integration. Change PDF to CDF 1 ๐น(๐ฅ) = ๐(๐ ≤ ๐ฅ) = ) ๐(๐ฅ)๐๐ฅ %$ Change CDF to PDF: ๐(๐ฅ) = ๐ ๐น(๐ฅ) ๐๐ฅ To find the median: ๐น(๐) = 0.5, ๐ ๐ ๐กโ๐๐ก, ๐ = ? Notes: pay attention to the range of the variables. Example: The continuous random variable X has PDF f(x) given by ๐(๐ฅ) = E 0.2, 0, ๐๐๐ 3 ≤ ๐ฅ ≤ 8 ๐๐กโ๐๐๐ค๐๐ ๐ The continuous random variable Y is given by ๐ = 5๐ ' . (i) Find H(y) where H(y) is the cumulative distribution function of Y. (ii) Find h(y). (iii) Find P(Y<100). (iv) State the median value of X. (v) Use H(y) to find the median value of Y, showing your working. (vi) Show that you can use the equation Y = 5X 2 to find the median value of Y from that of X. (vii) Write down the value of E(X) and find E(Y ). Can you use the equation ๐ = 5๐ ' to find the mean value of Y from that of X? Key points: #$ 1. ∫%$ ๐(๐ฅ)๐๐ฅ = 1 2. ๐(๐ฅ) ≥ 0, ๐๐๐ ๐๐๐ ๐ฅ 2 3. ๐(๐ ≤ ๐ฅ ≤ ๐) = ∫3 ๐(๐ฅ)๐๐ฅ 4. E(๐ฅ) = ∫ ๐ฅ๐(๐ฅ)๐๐ฅ 5. Var(๐ฅ) = ∫ ๐ฅ ' ๐(๐ฅ)๐๐ฅ − [๐ธ(๐)]' 4 4 6. the median m of X is the value for which: ∫%$ ๐(๐ฅ)๐๐ฅ and ∫%$ ๐(๐ฅ)๐๐ฅ = 0.5 7. the mode of X is the value for which f(x) has its greatest magnitude 8. A probability density function may be defined piecewise. 9. If g[X] is a function of X then the expectation and variance of X are: ๐ธ.๐(๐)1 = ) ๐(๐ฅ)๐(๐ฅ)๐๐ฅ ๐๐๐.๐(๐)1 = )(๐(๐ฅ))' ๐(๐ฅ)๐๐ฅ − (๐ธ.๐(๐)1)' 10. If f(x) is the probability density function of X then the cumulative distribution function (CDF) of X is F(x) where: 1 (i) ๐น(๐ฅ) = ∫" ๐(๐ข)๐๐ข where the constant a is the lower limit of X 2 (ii) ๐(๐ฅ) = 21 ๐น(๐ฅ) (iii) for the median, m, F(m)=0.5 11. Given that f(x) is the probability density function of X, you can find that of a related variable. To do this you need first to find the cumulative distribution function of X and use this to find that of Y. You can then differentiate the cumulative distribution function of Y to find f(y), the probability density function of Y.