Chapter 5. Continuous Probability Distributions Sections 5.4, 5.5: Exponential and Gamma Distributions Jiaping Wang Department of Mathematical Science 03/25/2013, Monday The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Exponential: PDF and CDF Exponential: Mean and Variance Gamma: PDF and CDF Gamma: Mean and Variance More Examples The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 1. Exponential: PDF and CDF The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Probability Density Function In general, the exponential density function is given by π π₯ = 1 − π₯ /π π , π π₯≥0 0, ππ‘βπππ€ππ π Where the parameter θ is a constant (θ>0) that determines the rate at which the curve decreases. θ=2 θ = 1/2 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cumulative Distribution Function The exponential CDF is given as 0, π₯ < 0 / πΉ π₯ = 1 − π − π₯ π, π₯ ≥ 0 θ=2 θ = 1/2 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 2. Mean and Variance The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Gamma Function The gamma function Γ(α) is given as ∞ Γ πΌ = 0 π₯πΌ − 1π − π₯ππ₯ We can show that Γ πΌ + 1 = πΌΓ πΌ So Γ π = π − 1 Γ π − 2 = β― = π − 1 ! Specially, Γ 1/2 = π The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Mean and Variance ∞ π¬ πΏ = ∞ ππ π π π = −∞ = π ππ = π ∞ π π½ π β πππ ∞ π±π ππ±π© π π π± − π π − π½ π π π = ππ± = π πͺ π π π πππ − π π π½ π½ π Γ π½ π π½π = π½. π ππ = πππ. Then we have V(X)=E(X2)-E2(X)=2θ2- θ2= θ2. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 5.9 A sugar refinery has three processing plants, all of which receive raw sugar in bulk. The amount of sugar that one plant can process in one day can be modeled as having an exponential distribution with a mean of 4 tons for each of the three plants. If the plants operate independently, find the probability that exactly two of the three plants will process more than 4 tons on a given day. Answer: The probability that any given plant will process more than 4 tons a day, with X representing the amount used, is 4 π = π π > 4 = 1 − π π ≤ 4 = 1 − πΉ 4 = 1 − 1 − exp − 4 = exp −1 = 0.37 As the plants operate independently, the problem is to find the probability of two successes out of three tries with p=0.37, which is a binomial distribution, so P(Exactly two of three plants use more than 4 tons)= 32 0.37 2 0.63 = 0.26. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 5.10 Consider a particular plant in Example 5.9. How much raw sugar should be stocked for that plant each day so that the chance of running out of product is only 0.05? Answer: Let a denote the amount to be stocked. Because the amount to be used X has an exponential distribution, so that π π π π > π = 1 − π π ≤ π = 1 − 1 − exp − 4 = exp − 4 So we choose a with P(X>a)=exp(-a/4)=0.05ο a=11.98 (tons). The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Properties 1. Memoryless: π π > π + π π > π = exp π − π π π>π+π π π>π π+π = 1− 1−exp − π π 1− 1−exp − = π = 1 − πΉ π = π(π > π) 2. Relation with Poisson distribution: Assume a Poisson distribution with λ events per hour, so in t hours, the number of events, Y, follows a Poisson with mean λt. Now we start at time zero and ask “ how long do I have to wait to see the 1st event occur? Let X denote the length of time until 1st event occurs. λπ‘ 0 exp −λπ‘ π π > π‘ = π π = 0 ππ π‘βπ πππ‘πππ£ππ 0, π‘ = = exp −λπ‘ P(X≤ t)=1-exp(- λπ‘) ο π π‘ = 1 exp π 1 − π 0! , π‘ > 0 which means the interval time between two consecutive events in Poisson distribution follows the exponential distribution. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 3. Gamma: PDF The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Probability Density Function (PDF) In general, the Gamma density function is given by π π₯ = 1 πΌ − 1exp(− π₯ ), π₯ Γ πΌ π½πΌ π½ π₯≥0 0, ππ‘βπππ€ππ π Where the parameters α and β are constants (α >0, β>0) that determines the shape of the curve. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 4. Mean and Variance The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL π¬ πΏ = ∞ ππ π π π = −∞ π Γ πΆ π·πΆ ∞ πβπ π −π πΆ π πππ − π π= π Γ πΆ π·πΆ π· ∞ πΆ π π πΆ+π π πππ − π π = Γ πΆ + π π· π π· Γ πΆ π·πΆ = πΆπ· Similary , we can find π¬(πΏπ) = πΆ(πΆ + π)π·π, so π½(πΏ) = π¬(πΏπ) − π¬π(πΏ) = πΆπ·π. Suppose π = ∑πΏπ with πΏπ, πΏπ, … , πΏπ being independent Gamma variables with parameters α and β, then π¬(π) = ππΆπ·, π½(π) = ππΆπ·π. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 5.11 A certain electronic system has a life length of X1, which has an exponential distribution with a mean of 450 hours. The system is supported by an identical backup system that has a life length of X2. The backup system takes over immediately when the system fails. If the system operate independently, find the probability distribution and expected value for the total life length of the primary and backup systems. Answer: Let Y denote the total life length, Y= X1+X2, where X1 and X2 are Independent exponential random variable with mean β=450. So Y is a gamma Distribution with α=2 and β=450, that is, π π¦ = 1 Γ 2 450 π¦ , π¦>0 2 π¦ππ₯π − 450 0, ππ‘βπππ€ππ π Then the mean E(Y)=αβ=2(450)=900. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 5.12 Suppose that the length of time X needed to conduct a periodic maintenance check on a pathology lab’s microscope (known from previous experience) follows a gamma distribution with α=3 and β=2 (minutes). Suppose that a new repairperson requires 20 minutes to check a particular microscope. Does this time required to perform a maintenance check seem our of line with prior experience? Answer: so μ=E(X)=αβ=6, σ2=V(X)=αβ2=12, the standard deviation σ=3.446, When x=20 minutes required from the repairperson, the deviation is 20-6=14 minutes, Which exceeds the mean 6 by k=14/3.446 standard deviations, so based on the Tschebysheff’s inequality, we have P(|X-6|≥14)≤(3.446/14)2=0.06, which is really small Probability, so we can say it is out of line with prior experience. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 3. More Examples The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Additional Example 1 An insurance policy reimburses dental expense, X, up to a maximum benefit of 250 . The probability density function for X is: where c is a constant. Calculate the median benefit for this policy. Answer: If P(X>a)=1/2, then a is a median. So c=250. As F(x)=1-exp(-x/250), we have 1-exp(-x/250)=1/2 ο x=250[ln(2)] = 173.29 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Additional Example 2 Let X be an exponential random variable such that P(X>2) = 2P(X>4). Find the variance of X. Answer: Let the distribution function F π₯ = 1 − exp − π₯ π , based on P(X>2)=2P(X>4), we have 1-F(2)=2(1-F(4))ο 1-(1-exp(-2/θ))=2(1-(1-exp(-4/θ))ο exp(-2/θ)=2exp(-4/θ)ο -2/θ=ln(2)-4/θ ο θ = 2/ln(2) ο V(X)=[2/ln(2)]2. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Additional Example 3 If X has probability density function given by Find the mean and variance. Answer: Change it to the standard form with α=3, β=/12, so we can find E(X)=αβ=3/2, V(X)=αβ2=3/4. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL