Exponential & Gamma Distributions

Similar documents
Poisson Distributions

Continuous r.v. s: cdf s, Expected Values

Continuous Random Variables: pdf s

MATH : EXAM 2 INFO/LOGISTICS/ADVICE

Small-Sample CI s for Normal Pop. Variance

Continuous Distributions

Expected Values, Exponential and Gamma Distributions

3 Continuous Random Variables

Continuous Random Variables

Stat410 Probability and Statistics II (F16)

Exponential Distribution and Poisson Process

STAT 430/510 Probability Lecture 12: Central Limit Theorem and Exponential Distribution

Continuous Random Variables and Continuous Distributions

Exponential, Gamma and Normal Distribuions

Let X be a continuous random variable, < X < f(x) is the so called probability density function (pdf) if

Positive Series: Integral Test & p-series

Probability Density Functions

Expected Values, Exponential and Gamma Distributions

Review 1: STAT Mark Carpenter, Ph.D. Professor of Statistics Department of Mathematics and Statistics. August 25, 2015

1 Probability and Random Variables

Gamma and Normal Distribuions

Lecture 17: The Exponential and Some Related Distributions

The exponential distribution and the Poisson process

Chapter 4 Continuous Random Variables and Probability Distributions

Notes on Continuous Random Variables

Continuous Probability Spaces

Random variables. DS GA 1002 Probability and Statistics for Data Science.

Random Variables and Their Distributions

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

Continuous random variables and probability distributions

Common ontinuous random variables

Chapter 4: Continuous Probability Distributions

HW7 Solutions. f(x) = 0 otherwise. 0 otherwise. The density function looks like this: = 20 if x [10, 90) if x [90, 100]

Moments. Raw moment: February 25, 2014 Normalized / Standardized moment:

STAT Chapter 5 Continuous Distributions

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

Stat 5101 Notes: Brand Name Distributions

Basics of Stochastic Modeling: Part II

STAT509: Continuous Random Variable

Topic 4: Continuous random variables

Topic 4: Continuous random variables

Qualifying Exam CS 661: System Simulation Summer 2013 Prof. Marvin K. Nakayama

Chapter 4. Continuous Random Variables

Continuous Random Variables 1

2 Continuous Random Variables and their Distributions

Tukey Complete Pairwise Post-Hoc Comparison

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

DS-GA 1002 Lecture notes 2 Fall Random variables

Probability Midterm Exam 2:15-3:30 pm Thursday, 21 October 1999

Common probability distributionsi Math 217 Probability and Statistics Prof. D. Joyce, Fall 2014

LIST OF FORMULAS FOR STK1100 AND STK1110

Brief Review of Probability

15 Discrete Distributions

Continuous random variables

Chapter 4. Continuous Random Variables 4.1 PDF

Chapter 2 Continuous Distributions

Continuous Probability Distributions. Uniform Distribution

Probability Distributions for Continuous Variables. Probability Distributions for Continuous Variables

Guidelines for Solving Probability Problems

Slides 8: Statistical Models in Simulation

Chapter 4: Continuous Random Variable

Things to remember when learning probability distributions:

Probability and Distributions

Lecture 5: Moment generating functions

CHAPTER 6 SOME CONTINUOUS PROBABILITY DISTRIBUTIONS. 6.2 Normal Distribution. 6.1 Continuous Uniform Distribution

Math Spring Practice for the Second Exam.

1 Review of Probability and Distributions

PROBABILITY DISTRIBUTIONS

Lecture 4. Continuous Random Variables and Transformations of Random Variables

Chapter 5. Chapter 5 sections

STA 256: Statistics and Probability I

STAT 3610: Review of Probability Distributions

Department of Mathematics

Paired t-tests & t-ci s

Josh Engwer (TTU) Improper Integrals 10 March / 21

Chapter 5 continued. Chapter 5 sections

Northwestern University Department of Electrical Engineering and Computer Science

SDS 321: Introduction to Probability and Statistics

BMIR Lecture Series on Probability and Statistics Fall, 2015 Uniform Distribution

Continuous Distributions

Chapter 5. Continuous Probability Distributions

Continuous random variables

Mathematical Statistics 1 Math A 6330

Continuous Distributions

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

p. 6-1 Continuous Random Variables p. 6-2

Lecture 4a: Continuous-Time Markov Chain Models

ECE 313 Probability with Engineering Applications Fall 2000

Introduction and Overview STAT 421, SP Course Instructor

Continuous-time Markov Chains

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Renewal Process Models for Crossover During Meiosis

Definition: A random variable X is a real valued function that maps a sample space S into the space of real numbers R. X : S R

Lectures prepared by: Elchanan Mossel Yelena Shvets

Continuous Random Variables and Probability Distributions

7 Continuous Variables

Reading Material for Students

Probability Models. 4. What is the definition of the expectation of a discrete random variable?

Statistics STAT:5100 (22S:193), Fall Sample Final Exam B

PROBABILITY DISTRIBUTION

Transcription:

Exponential & Gamma Distributions Engineering Statistics Section 4.4 Josh Engwer TTU 7 March 26 Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 / 2

PART I PART I: EXPONENTIAL DISTRIBUTION Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 2 / 2

Exponential Random Variables (Applications) Exponential random variables reasonably model lifetimes & inter-arrival waiting times: Waiting times between consecutive arrivals of a Poisson process: Time between radioactive decays of µg of Iodine-23 Time between phone calls a dispatcher received Time between emails an account received Time between car accidents at a dangerous intersection Time between insurance claims from a given demographic Time between industrial accidents at a factory Time between wars started in a continent Distances between consecutive arrivals of a Poisson process: Distance between mutations of a DNA strand Distance between roadkills on a road near a forest Lifetimes of electrical components Concentrations of air pollutants in a major city Blast radii of mining explosives Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 3 / 2

Exponential Random Variables (Summary) Proposition Notation X Exponential(λ), λ > Parameter(s) λ Arrival Rate ( α of Poisson Process) Support Supp(X) [, ) pdf f X (x; λ) λe { λx e λx, if x cdf F X (x; λ), if x < Mean E[X] /λ Variance V[X] /λ 2 Model(s) Waiting times/distances between Poisson arrivals Lifetimes of electrical components Air pollution concentrations Blast radii of mining explosives Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 4 / 2

Exponential Density Plots (pdf & cdf) Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 5 / 2

Verification that Exponential(λ) pdf truly is a valid pdf Let random variable X Exponential(λ) f X (x; λ) f X (x; λ) λe λx Non-negativity on its support: Observe that λ > λe λx > f X (x; λ) > Universal Integral of Unity: f X (x) dx FTC [ lim x ( ) λe λx dx [ e λx] x x ( e λx )] ( e λ()) Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 6 / 2

Mean of Exponential(λ) random variable (Proof) Let random variable X Exponential(λ), where λ > Then: E[X] IBP x f X (x; λ) dx [ ] x xe λx x λxe λx dx ( e λx ) dx FTC [ ] + [ λ e λx ] x x e λx dx ( FTC ) λ λ E[X] λ QED Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 7 / 2

Variance of Exponential(λ) random variable Let random variable X Exponential(λ), where λ > Then: (Proof) E[X 2 ] IBP IBP x 2 f X (x; λ) dx [ ] x x 2 e λx x [ 2λ ] x xe λx x λx 2 e λx dx ( e λx ) (2x dx) FTC [ ] + ( λ e λx ) (2 dx) 2xe λx dx FTC [ ] + 2 λ FTC 2 [ ( )] λ λ e λx dx 2 λ 2 λ 2 V[X] E[X 2 ] (E[X]) 2 2 λ 2 ( λ [ λ e λx ] x x ) 2 2 λ 2 λ 2 λ 2 QED Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 8 / 2

Memoryless Property of Exponential Distributions The Exponential dist. is the only continuous dist. that s memoryless: (s, t > ) P(X > s + t X > s) P(X > s + t and X > s) P(X > s) P(X > s + t) P(X > s) e λ(s+t) e λs e ( λs λt)+λs P(X > s + t X > s) P(X > t) e λt P(X > t) e.g. X Exponential(λ) P(X > 5 X > 2) P(X > 3) This property means any additional waiting time for an arrival does not depend on or remember any amount of waiting time beforehand. e.g. Waiting 5 min s total for an arrival given 2 min s already elapsed is the same as just waiting 3 min s total for an arrival. Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 9 / 2

PART II PART II: GAMMA DISTRIBUTION Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 / 2

Gamma Random Variables (Applications) Gamma random variables reasonably model: Waiting time until α arrivals of Poisson process occur (if α is an integer) Processes that would typically be modeled by Exponential rv s except......the pdf is unimodal & skewed...the memoryless property is not realized In fact, an Exponential(λ) rv is equivalently a Gamma(α, β /λ) rv. Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 / 2

The Gamma Function Γ(α) (Definition & Properties) The gamma function is a special function that routinely shows up in higher mathematics, combinatorics, physics and (of course) statistics: Definition (Gamma Function) The gamma function is defined to be: Γ(α) : x α e x dx, where α > Moreover, the gamma function possesses several useful properties: Corollary (Useful Properties of the Gamma Function) Γ(n) (n )! Γ(α + ) αγ(α), where α > where n is a positive integer So the gamma function Γ(α) is a generalization of the factorial (n!). Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 2 / 2

Gamma Random Variables (Summary) Proposition Notation X Gamma(α, β), α, β > Parameter(s) α Shape parameter β Scale parameter Support Supp(X) [, ) pdf f X (x; α, β) β α Γ(α) xα e x/β cdf γ(x/β; α) Mean E[X] αβ Variance V[X] αβ 2 Model(s) Assumption(s) Time until α Poisson arrivals (for integer α) Exponential processes w/o memoryless property (none) A Gamma(α, β /λ) rv is identical to a Exponential(λ) rv. Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 3 / 2

Mean of Gamma(α, β) random variable Let X Gamma(α, β) pdf f X (x) β α Γ(α) xα e x/β (Proof) Then: E[X] x f X (x) dx x β α Γ(α) xα e x/β dx CI β β α Γ(α) β α Γ(α) β α+ Γ(α + ) β α Γ(α) Γ(α + ) Γ(α) E[X] αβ QED x (α+) e x/β dx ( β α+ ) Γ(α + ) β α+ x (α+) e x/β dx Γ(α + ) Supp(X) β α+ Γ(α + ) x(α+) e x/β } {{ } pdf of Gamma(α+,β) β αγ(α) Γ(α) αβ Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 4 / 2 dx

Variance of Gamma(α, β) random variable Let X Gamma(α, β) pdf f X (x) E[X 2 ] CI β 2 β α Γ(α) β α Γ(α) x 2 f X (x) dx β α+2 Γ(α + 2) β α Γ(α) Γ(α + 2) Γ(α) x 2 x (α+2) e x/β dx β α Γ(α) xα e x/β β α Γ(α) xα e x/β dx ( β α+2 ) Γ(α + 2) β α+2 x (α+2) e x/β dx Γ(α + 2) Supp(X) β 2 β α+2 Γ(α + 2) x(α+2) e x/β } {{ } pdf of Gamma(α+2,β) α(α + )Γ(α) Γ(α) Then: (Proof) dx α(α + )β 2 (α 2 + α)β 2 V[X] E[X 2 ] (E[X]) 2 (α 2 + α)β 2 (αβ) 2 (α 2 + α)β 2 α 2 β 2 αβ 2 QED Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 5 / 2

Gamma Density Plots (pdf & cdf) Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 6 / 2

Computing Probabilities involving Gamma r.v. s Let X Gamma(α, β) pdf f X (x) β α Γ(α) xα e x/β Then, P(a X b) b a f X (x) dx b β α x α e x/β dx Γ(α) a }{{} Nonelementary integral!! and the cdf is F X (x) P(X x) γ(x/β; α) (t/β) α e t dt Γ(α) }{{} Nonelementary integral!! The problem with the Gamma distribution is the resulting integrals have no finite closed-form anti-derivative when α is not an integer!! If α is an integer, tedious use of integration by parts is necessary!! The fix to this is to numerically approximate the Gamma cdf via a table. Hence, use the table for the gamma cdf, which is called the incomplete Gamma function and is denoted γ(x; α). Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 7 / 2 x

Computing Incomplete Gamma Fcn γ(x; α) via Table x Shape Parameter (α).5 2 3 4 5.5.68269.39347.92.439.75.7.8427.6322.26424.83.899.366.5.9674.77687.4427.95.6564.858 2.9545.86466.59399.32332.4288.5265 2.5.97465.9792.727.4569.24242.882 3.98569.952.885.5768.35277.8474 3.5.9985.9698.864.6795.46337.27456 4.99532.9868.9842.769.56653.376 4.5.9973.98889.9389.82642.6577.4679 5.99843.99326.95957.87535.73497.5595 5.5.9999.9959.97344.962.7983.64248 6.99947.99752.98265.9383.8488.7494 6.5.99969.9985.98872.95696.8885.77633 7.99982.9999.9927.9736.9823.827 7.5.99989.99945.9953.97974.9485.86794 8.99994.99966.99698.98625.95762.937 Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 8 / 2

Computing P(X x) γ(x/β; α) via Table/Software P(X 5) γ(5/β; α) γ(5/2; 3) γ(2.5; 3) TI-8x TI-36X Pro (No built-in function) (No built-in function) MATLAB gamcdf(5,3,2) (Stats Toolbox) R pgamma(q5,shape3,scale2) Python scipy.stats.gamma.cdf(5/2,3) (Need SciPy) Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 9 / 2

Textbook Logistics for Section 4.4 Difference(s) in Notation: CONCEPT TEXTBOOK NOTATION SLIDES/OUTLINE NOTATION Probability of Event P(A) P(A) Support of a r.v. All possible values of X Supp(X) pdf of a r.v. f (x) f X (x) cdf of a r.v. F(x) F X (x) Expected Value of r.v. E(X) E[X] Variance of r.v. V(X) V[X] Incomplete Gamma Fcn F(x/β; α) γ(x/β; α) Skip the Chi-Squared Distribution section (pg 74-75) It turns out a Chi-Squared (χ 2 ) rv is a special kind of Gamma rv. χ 2 distributions will be formally encountered in Chapter 7. This is also used for Statistical Inference of Categorical Data (Chapter 4). Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 2 / 2

Fin Fin. Josh Engwer (TTU) Exponential & Gamma Distributions 7 March 26 2 / 2