Review of Exam 2 Sections 4.6 โ 5.6 Jiaping Wang Department of Mathematical Science 04/01/2013, Monday The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Negative Binomial, Poisson, Hypergeometric Distributions and Moment Generating Function Continuous Random Variables and Probability Distribution Uniform, Exponential, Gamma, Normal Distributions The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 1. Negative Binomial, Poisson, Hypergeometric Distributions and MGF The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Negative Binomial Distribution What if we were interested in the number of failures prior to the second success, or the third success or (in general) the r-th success? Let X denote the number of failures prior to the r-th success, p denotes the common probability. The negative binomial distribution function: ๐๐๐ฅ , x= 0, 1, 2, โฆ., q=1-p P(X=x)=p(x)= ๐ฅ+๐โ1 ๐ ๐โ1 If r=1, then the negative binomial distribution becomes the geometric distribution. In summary, ๐ธ ๐ = ๐๐ ,๐ ๐ ๐ = ๐๐ ๐2 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Poisson Distribution The Poisson probability function: ฮป๐ฅ โ ๐ฅ P(X=x)=p(x)= ๐ , x= ๐ฅ! The distribution function is F(x)=P(Xโคx)= ๐ ๐ฅ ฮป ๐=0 ๐! 0, 1, 2, โฆ., for ฮป> 0 ๐โ๐ Recall that ฮป denotes the mean number of occurrences in one time period, if there are t non-overlapped time periods, then the mean would be ฮปt. Poisson distribution is often referred to as the distribution of rare events. E(X)= V(X) = ฮป for Poisson random variable. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Hypergeometric Distribution Now we consider a general case: Suppose a lot consists of N items, of which k are of one type (called successes) and N-k are of another type (called failures). Now n items are sampled randomly and sequentially without replacement. Let X denote the number of successes among the n sampled items. So What is P(X=x) for some integer x? The probability function is: P(X=x) = p(x) = ๐ ๐ฅ ๐โ๐ ๐โ๐ฅ ๐ ๐ , 0 โค ๐ฅ โค ๐ โค ๐, 0 โค ๐ฅ โค ๐ โค ๐ Which is called hypergeometric probability distribution. ๐ ๐ฌ ๐ฟ =๐ ๐ต ๐ ๐ ๐ตโ๐ ๐ฝ ๐ฟ =๐ ๐โ ๐ต ๐ต ๐ตโ๐ The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Moment Generating Function The k-th moment is defined as E(Xk)=โxkp(x). For example, E(X) is the 1st moment, E(X2) is the 2nd moment. The moment generating function is defined as M(t)=E(etX) So we have M(k)(0)=E(Xk). For example, ๐ด ๐ ๐ = ๐ ๐ด ๐ ๐ ๐ ๐ = ๐ ๐ ๐ฌ ๐๐๐ฟ = ๐ฌ So if set t=0, then M(1)(0)=E(X). ๐ ๐๐ฟ ๐ ๐ ๐ = ๐ฌ[๐ฟ๐๐๐ฟ] It often is easier to evaluate M(t) and its derivatives than to find the moments of the random variable directly. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 2. Continuous Random Variables and Probability Distribution The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Density Function A random variable X is said to be continuous if there is a function f(x), called probability density function, such that Notice that P(X=a)=P(a โค X โค a)=0. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Distribution Function The distribution function for a random variable X is defined as F(b)=P(X โค b). If X is continuous with probability density function f(x), then Notice that Fโ(x)=f(x). For example, we are given Thus, The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Expected Values Definition 5.3: The expected value of a continuous random variable X that has density function f(x) is given by โ ๐ธ ๐ = ๐ฅ๐ ๐ฅ ๐๐ฅ . โโ Note: we assume the absolute convergence of all integrals so that the expectations exist. Theorem 5.1: If X is a continuous random variable with probability density f(x), and if g(X) is any real-valued function of โ X, then ๐ธ ๐ ๐ = โโ ๐ ๐ฅ ๐ ๐ฅ ๐๐ฅ The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Variance Definition 5.4: For a random variable X with probability density function f(x), the variance of X is given by โ V ๐ = ๐ธ ๐ โ ๐ 2 = โโ ๐ฅ โ ๐ 2๐ ๐ฅ ๐๐ฅ = ๐ธ ๐2 โ ๐2 . Where ฮผ=E(X). For constants a and b, we have E(aX+b)=aE(X)+b V(aX+b)=a2V(X) The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 3. Uniform, Exponential, Gamma, Normal Distributions The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Uniform Distribution โ Density Function Consider a simple model for the continuous random variable X, which is equally likely to lie in an interval, say [a, b], this leads to the uniform probability distribution, the density function is given as ๐ ๐ ๐ = ๐ โ ๐,๐ โค ๐ โค ๐ ๐, ๐๐๐๐๐๐๐๐๐ The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Uniform Distribution โ CDF The distribution function for a uniformly distributed X is given by 0, ๐ฅ < 1 ๐ฅโ๐ , ๐โค๐ฅโค๐ ๐น ๐ฅ = ๐โ๐ 1, ๐ฅ > ๐ For (c, c+d) contained within (a, b), we have P(cโคXโคc+d)=P(Xโคc+d)-P(Xโคc)=F(c+d)-F(c)=d/(b-a), which this probability only depends on the length d. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Uniform Distribution -- Mean and Variance โ ๐ธ ๐ = ๐ ๐ฅ๐ ๐ฅ ๐๐ฅ = โโ ๐ โ ๐ธ ๐2 = ๐ ๐ฅ2๐ ๐ฅ ๐๐ฅ = โโ ๐ ๐ =๐ธ ๐2 โ ๐ธ2 ๐ = ๐ ๐2+๐๐+๐2 ๐+๐ 2 3 2 the length of the interval [a, b]. ๐ฅ ๐+๐ ๐๐ฅ = ๐โ๐ 2 ๐ฅ2 ๐2 + ๐๐ + ๐2 ๐๐ฅ = ๐โ๐ 3 = 1 12 ๐โ๐ 2 which depends only on 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 Mean and Variance โ ๐ฌ ๐ฟ = โ ๐๐ ๐ ๐ ๐ = โโ = ๐ ๐๐ = ๐ โ ๐ ๐ฝ ๐ โ ๐๐๐ โ ๐ฑ๐ ๐๐ฑ๐ฉ ๐ ๐ ๐ฑ โ ๐ ๐ โ ๐ฝ ๐ ๐ ๐ = ๐๐ฑ = ๐ ๐ช ๐ ๐ ๐ ๐๐๐ โ ๐ ๐ ๐ฝ ๐ฝ ๐ ฮ ๐ฝ ๐ ๐ฝ๐ = ๐ฝ. ๐ ๐๐ = ๐๐๐. Then we have V(X)=E(X2)-E2(X)=2ฮธ2- ฮธ2= ฮธ2. 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 ๐ฌ ๐ฟ = โ ๐๐ ๐ ๐ ๐ = โโ ๐ ฮ ๐ถ ๐ท๐ถ โ ๐โ๐ ๐ โ๐ ๐ถ ๐ ๐๐๐ โ ๐ ๐= ๐ ฮ ๐ถ ๐ท๐ถ ๐ท โ ๐ถ ๐ ๐ ๐ถ+๐ ๐ ๐๐๐ โ ๐ ๐ = ฮ ๐ถ + ๐ ๐ท ๐ ๐ท ฮ ๐ถ ๐ท๐ถ = ๐ถ๐ท Similary , we can find ๐ฌ(๐ฟ๐) = ๐ถ(๐ถ + ๐)๐ท๐, so ๐ฝ(๐ฟ) = ๐ฌ(๐ฟ๐) โ ๐ฌ๐(๐ฟ) = ๐ถ๐ท๐. Suppose ๐ = ๐ฟ๐ with ๐ฟ๐, ๐ฟ๐, โฆ , ๐ฟ๐ being independent Gamma variables with parameters ฮฑ and ฮฒ, then ๐ฌ(๐) = ๐๐ถ๐ท, ๐ฝ(๐) = ๐๐ถ๐ท๐. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Probability Density Function In general, the normal density function is given by ๐ ๐ฅ = 1 exp ๐ 2๐ โ ๐ฅโ๐ 2๐2 2 , โโ < ๐ฅ < โ, where the parameters ฮผ and ฯ are constants (ฯ >0) that determines the shape of the curve. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Standard Normal Distribution Let Z=(X-ฮผ)/ฯ, then Z has a standard normal distribution ๐ง2 ๐ ๐ง = exp โ , โโ < ๐ง < โ 2 2๐ 1 It has mean zero and variance 1, that is, E(Z)=0, V(Z)=1. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Mean and Variance โ โ ๐๐ ๐ฌ ๐ = ๐๐ ๐ ๐ ๐ = ๐๐๐ โ ๐ ๐ ๐ ๐๐ โโ โโ โ ๐ ๐๐ = ๐ โ ๐๐๐ โ ๐ ๐ = ๐. โโ ๐๐ ๐ ๐ ๐ ๐๐ โ = โโ ๐ณ๐ ๐๐ ๐ ๐๐ฑ๐ฉ โ ๐๐ณ = ๐ ๐๐ ๐๐ โ ๐ / ๐๐ ๐๐๐ฑ๐ฉ ๐ ๐ ๐ โ ๐๐ฎ = ฮ ๐ ๐๐ ๐ ๐ ๐/๐ = ๐. Then we have V(Z)=E(Z2)-E2(Z)=1. As Z=(X-ฮผ)/ฯ๏ X=Zฯ+ฮผ๏ E(X)=ฮผ, V(X)=ฯ2. The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL For example, P(-0.53<Z<1.0)=P(0<Z<1.0) +P(0<Z<0.53)=0.3159+0.2019 =0.5178 P(0.53<Z<1.2)=P(0<Z<1.2)P(0<Z<0.53)=0.3849-0.2019 =0.1830 P(Z>1.2)=1-P(Z<1.22)=10.3888=0.6112 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
© Copyright 2026 Paperzz