Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Part VI: Named Continuous Random Variables http://www-users.york.ac.uk/~pml1/bayes/cartoons/cartoon08.jpg 1 Comparison of Named Distributions discrete Bernoulli, Binomial, Geometric, Negative Binomial, Poisson, Hypergeometric, Discrete Uniform continuous Continuous Uniform, Exponential, Gamma, Beta, Normal 2 Chapter 30: Continuous Uniform R.V. http://www.six-sigma-material.com/Uniform-Distribution.html 3 Uniform distribution: Summary Things to look for: constant density on a line or area Variable: X = an exact position or arrival time Parameter: (a,b): the endpoints where the density is nonzero. Density: CDF: 0 π₯<π 1 π₯βπ π β€ π₯ β€ π πβ€π₯β€π ππ₯ π₯ = π β π πΉπ π₯ = πβπ 0 πππ π 1 π<π₯ π+π πΌ π = , 2 (π β π)2 πππ π = 12 4 Example: Uniform Distribution (Class) A bus arrives punctually at a bus stop every thirty minutes. Each morning, a bus rider leaves her house and casually strolls to the bus stop. a) Why is this a Continuous Uniform distribution situation? What are the parameters? What is X? b) What is the density for the wait time in minutes? c) What is the CDF for the wait time in minutes? d) Graph the density. e) Graph the CDF. f) What is the expected wait time? 5 Example: Uniform Distribution (Class) A bus arrives punctually at a bus stop every thirty minutes. Each morning, a bus rider leaves her house and casually strolls to the bus stop. g) What is the standard deviation for the wait time? h) What is the probability that the person will wait between 20 and 40 minutes? (Do this via 3 different methods.) i) Given that the person waits at least 15 minutes, what is the probability that the person will wait at least 20 minutes? 6 Example: Uniform Distribution 0.04 0.03 0.02 0.01 0.00 -10 10 30 1 0.8 0.6 0.4 0.2 0 -10 10 30 7 Example: Uniform Distribution (Class) A bus arrives punctually at a bus stop every thirty minutes. Each morning, a bus rider leaves her house and casually strolls to the bus stop. Let the cost of this waiting be $20 per minute plus an additional $5. a) What are the parameters? b) What is the density for the cost in minutes? c) What is the CDF for the cost in minutes? d) What is the expected cost to the rider? e) What is the standard deviation of the cost to the rider? 8 Chapter 31: Exponential R.V. http://en.wikipedia.org/wiki/Exponential_distribution 9 Exponential Distribution: Summary Things to look for: waiting time until first event occurs or time between events. Variable: X = time until the next event occurs, X β₯ 0 Parameter: ο¬: the average rate Density: CDF: βππ₯ ππ ππ₯ π₯ = 0 1 πΌ π = , π π₯>0 πππ π βππ₯ 1 β π πΉπ π₯ = 0 1 πππ π = 2 π π₯>0 πππ π 10 Example: Exponential R.V. (class) Suppose that the arrival time (on average) of a large earthquake in Tokyo occurs with an exponential distribution with an average of 8.25 years. a) What does X represent in this story? What values can X take? b) Why is this an example of the Exponential distribution? c) What is the parameter for this distribution? d) What is the density? e) What is the CDF? f) What is the standard deviation for the next earthquake? 11 Example: Exponential R.V. (class, cont.) Suppose that the arrival time (on average) of a large earthquake in Tokyo occurs with an exponential distribution with an average of 8.25 years. g) What is the probability that the next earthquake occurs after three but before eight years? h) What is the probability that the next earthquake occurs before 15 years? i) What is the probability that the next earthquake occurs after 10 years? j) How long would you have to wait until there is a 95% chance that the next earthquake will happen? 12 Example: Exponential R.V. (Class, cont.) Suppose that the arrival time (on average) of a large earthquake in Tokyo occurs with an exponential distribution with an average of 8.25 years. k) Given that there has been no large Earthquakes in Tokyo for more than 5 years, what is the chance that there will be a large Earthquake in Tokyo in more than 15 years? (Do this problem using the memoryless property and the definition of conditional probabilities.) 13 Minimum of Two (or More) Exponential Random Variables Theorem 31.5 If X1, β¦, Xn are independent exponential random variables with parameters ο¬1, β¦, ο¬n then Z = min(X1, β¦, Xn) is an exponential random variable with parameter ο¬1 + β¦ + ο¬n. 14 Chapter 37: Normal R.V. http://delfe.tumblr.com/ 15 Normal Distribution: Summary Things to look for: bell curve, Variable: X = the event Parameters: οX = the mean ππ2 = π‘βπ π£πππππππ Density: β(π₯βππ₯ )2 (2π 2 ) π ππ₯ π₯ = ,π₯ π β 2ππ 2 πΌ π = οX , πππ π = ππ2 16 PDF of Normal Distribution (cont) http://commons.wikimedia.org/wiki/File:Normal_distribution_pdf.svg 17 PDF of Normal Distribution http://www.oswego.edu/~srp/stats/z.htm 18 19 PDF of Normal Distribution (cont) Xο0 0.2 X ο (ο2) 0.5 Xο0 1 Xο0 5 http://commons.wikimedia.org/wiki/File:Normal_distribution_pdf.svg 20 Procedure for doing Normal Calculations 1) Sketch the problem. 2) Write down the probability of interest in terms of the original problem. 3) Convert to standard normal. 4) Convert to CDFs. 5) Use the z-table to write down the values of the CDFs. 6) Calculate the answer. 21 Example: Normal r.v. (Class) The gestation periods of women are normally distributed with ο = 266 days and ο³ = 16 days. Determine the probability that a gestation period is a) less than 225 days. b) between 265 and 295 days. c) more than 276 days. d) less than 300 days. e) Among women with a longer than average gestation, what is the probability that they give birth longer than 300 days? 22 Example: βBackwardsβ Normal r.v. (Class) The gestation periods of women are normally distributed with ο = 266 days and ο³ = 16 days. Find the gestation length for the following situations: a) longest 6%. b) shortest 13%. c) middle 50%. 23 Chapter 36: Central Limit Theorem (Normal Approximations to Discrete Distributions β 36.4, 36.5) http://nestor.coventry.ac.uk/~nhunt/binomial http://nestor.coventry.ac.uk/~nhunt/poisson /normal.html /normal.html 26 Continuity Correction - 1 http://www.marin.edu/~npsomas/Normal_Binomial.htm 27 Continuity Correction - 2 W~N(10, 5) X ~ Binomial(20, 0.5) 28 Continuity Correction - 3 Discrete a<X aβ€X X<b Xβ€b Continuous a + 0.5 < X a β 0.5 < X X < b β 0.5 X < b + 0.5 29 Normal Approximation to Binomial 30 Example: Normal Approximation to Binomial (Class) The ideal size of a first-year class at a particular college is 150 students. The college, knowing from past experience that on the average only 30 percent of these accepted for admission will actually attend, uses a policy of approving the applications of 450 students. a) Compute the probability that more than 150 students attend this college. b) Compute the probability that fewer than 130 students attend this college. 31 Chapter 32: Gamma R.V. http://resources.esri.com/help/9.3/arcgisdesktop/com/gp_toolref /process_simulations_sensitivity_analysis_and_error_analysis_modeling /distributions_for_assigning_random_values.htm 32 Gamma Distribution β’ Generalization of the exponential function β’ Uses β probability theory β theoretical statistics β actuarial science β operations research β engineering 33 Gamma Function ο₯ ο(t) ο½ ο² x e dx,t οΎ 0 tο1 ο x 0 ο(t + 1) = t ο(t), t > 0, t real ο(n + 1) = n!, n > 0, n integer 1 οΆ (2n)! ο¦ οο§ n ο« ο· ο½ ο° 2n 2 οΈ n!2 ο¨ 34 Gamma Distribution: Summary Things to look for: waiting time until rth event occurs Variable: X = time until the rth event occurs, X β₯ 0 Parameters: r: total number of arrivals/events that you are waiting for ο¬: the average rate Density: ππ πβ1 βππ₯ π₯ π ππ₯ π₯ = Ξ(π) 0 π₯>0 πππ π πβ1 πΆπ·πΉ: πΉπ π₯ = 1 β π βππ₯ π=0 0 π π πΌ π = , πππ π = 2 π π (ππ₯)π π! π₯>0 πππ π 35 Gamma Random Variable k=r π= 1 π http://en.wikipedia.org/wiki/File:Gamma_distribution_pdf.svg 36 Chapter 33: Beta R.V. http://mathworld.wolfram.com/BetaDistribution.html 37 Beta Distribution β’ This distribution is only defined on an interval β standard beta is on the interval [0,1] β The formula in the book is for the standard beta β’ uses β modeling proportions β percentages β probabilities 38 Beta Distribution: Summary Things to look for: percentage, proportion, probability Variable: X = percentage, proportion, probability of interest (standard Beta) Parameters: ο‘, ο’ Density: ππ₯ π₯ πΌβ1 1 Ξ(πΌ + π½) π₯ β π΄ = π΅ β π΄ Ξ(πΌ)Ξ(π½) π΅ β π΄ 0 Density: no simple form When A = 0, B = 1 (Standard Beta) πΌ πΌ π = , πππ π = πΌ+π½ πΌ+π½ π₯βπ΄ π΅βπ΄ π½β1 π΄β€π₯β€π΅ πππ π πΌπ½ 2 (πΌ + π½ + 1) 39 Shapes of Beta Distribution http://upload.wikimedia.org/wikipedia/commons/9/9a/Beta_distribution_pdf.png 40 X Other Continuous Random Variables β’ Weibull β exponential is a member of family β uses: lifetimes β’ lognormal β log of the normal distribution β uses: products of distributions β’ Cauchy β symmetrical, flatter than normal 41 Chapter 37: Summary and Review of Named Continuous R.V. http://www.wolfram.com/mathematica/new-in-8/parametric-probability-distributions /univariate-continuous-distributions.html 42 Summary of Continuous Distributions Name Density, fX(x) Domain CDF, FX(x) πΌ(X) Var(X) Parameters What X is When used 43 Expected values and Variances for selected families of continuous random variables. Family Uniform Exponential Normal Parameter(s) Expectation Variance a,b aο«b 2 ο¬ 1 ο¬ (b ο a)2 12 1 ο¬2 ο,ο³2 ο ο³2 44