Top Banner
The Gamma and Normal Distributions 3.2, 3.3
24

The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Mar 09, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

The Gamma and NormalDistributions

3.2, 3.3

Page 2: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

The Gamma DistributionConsider a Poisson process with rate πœ†πœ†:Let a random variable, 𝑋𝑋, denote the waiting time until the 𝛼𝛼th occurrence.

𝑋𝑋 follows a Gamma Distribution.

2

Page 3: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

The Gamma Function, Ξ“

3When n is an integer,

This is the definition of the gamma function

Page 4: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Gamma Distribution X~Gamma(𝛼𝛼,πœƒπœƒ)

𝑓𝑓 π‘₯π‘₯ = 1Ξ“(𝛼𝛼)πœƒπœƒπ›Όπ›Ό

π‘₯π‘₯π›Όπ›Όβˆ’1π‘’π‘’βˆ’π‘₯π‘₯/πœƒπœƒ, 0 ≀ x < ∞

𝐸𝐸[𝑋𝑋] = π›Όπ›Όπœƒπœƒ

𝑉𝑉𝑉𝑉𝑉𝑉[𝑋𝑋] = π›Όπ›Όπœƒπœƒ2

4

Page 5: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Gamma ExampleCustomers arrive in a shop according to a Poisson process with a mean rate of 20 per hour. What is the probability that the shopkeeper will have to wait more than 10 minutes for the arrival of the 4th customer?

οΏ½10

∞1

Ξ“ 4 34π‘₯π‘₯4βˆ’1π‘’π‘’βˆ’π‘₯π‘₯/3 𝑑𝑑π‘₯π‘₯ = 0.57

5

Page 6: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Gamma ExampleCustomers arrive in a shop according to a Poisson process with a mean rate of 20 per hour. What is the probability that the shopkeeper will have to wait more than 10 minutes for the arrival of the 4th customer?

οΏ½10

∞1

Ξ“ 4 34π‘₯π‘₯4βˆ’1π‘’π‘’βˆ’π‘₯π‘₯/3 𝑑𝑑π‘₯π‘₯ = 0.57

6

Page 7: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Normal Distribution

Page 8: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Normal Distributionβ–« Most important distribution in statisticsβ–« Fits many natural phenomena such as IQ,

measurement error, height, etc.β–« A symmetric distribution with a central peak, and tails

that taper off.

8

Page 9: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Normal Distribution – Empirical Rule

9

In a normal distribution, approximately 68/95/99.7% of the data falls within 1/2/3 standard deviations of the mean.

Page 10: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Normal Distribution X~N(πœ‡πœ‡,𝜎𝜎2)

𝑓𝑓(π‘₯π‘₯) = 12πœ‹πœ‹πœŽπœŽ2

π‘’π‘’βˆ’(π‘₯π‘₯βˆ’πœ‡πœ‡)2

2𝜎𝜎2 , -∞ < π‘₯π‘₯ < ∞

𝐸𝐸[𝑋𝑋] = πœ‡πœ‡

𝑉𝑉𝑉𝑉𝑉𝑉[𝑋𝑋] = 𝜎𝜎2

10

Page 11: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Normal DistributionLet X ~ Normal(πœ‡πœ‡,𝜎𝜎2)β–« To find the P[a < X < b], one would need to evaluate

the integral:

οΏ½π‘Žπ‘Ž

𝑏𝑏1

2πœ‹πœ‹πœŽπœŽ2π‘’π‘’βˆ’

(π‘₯π‘₯βˆ’πœ‡πœ‡)22𝜎𝜎2 𝑑𝑑π‘₯π‘₯.

β–« A closed-form expression for this integral does not exist, so we need to use numerical integration techniques.

11

Page 12: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Notes about the Normal DistributionThe Normal Distribution is symmetric with a central peak:

β–« P[X > c] = P[X < -c]β–« Mean = Median = Modeβ–« Half of the area is to the left/right of 0.

Examples: if 𝑋𝑋 ~ 𝑁𝑁(0,1)β–« 𝑃𝑃[𝑋𝑋 ≀ 0.2] = 0.5 + 𝑃𝑃[0 ≀ 𝑋𝑋 ≀ 0.2]β–« 𝑃𝑃[𝑋𝑋 ≀ 0.3] = 𝑃𝑃[𝑋𝑋 β‰₯ 0.7]

12

Page 13: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

ExamplesLet 𝑍𝑍 ~ 𝑁𝑁(0,1)

a) Find P[Z >2] (0.0228)b) Find P[ -2 < Z < 2] (0.9544)c) Find P[0 < Z < 1.73] (0.4582)

13

Page 14: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

14

Page 15: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Linear Transformation TheoremLet X ∼ N(Β΅, Οƒ2). Then Y = Ξ±X + Ξ² follows also a normal distribution.

π‘Œπ‘Œ ∼ 𝑁𝑁(Ξ±Β΅+Ξ², Ξ±2Οƒ2) Can convert any normal distribution to standard normal by subtracting mean and dividing sd:

β–« Z = π‘‹π‘‹βˆ’πœ‡πœ‡πœŽπœŽ

Using this theorem, we can see that 𝑍𝑍 ~ 𝑁𝑁(0,1)

15(Recall) Let 𝑋𝑋 have mean, 𝐸𝐸[𝑋𝑋], and variance, 𝜎𝜎2.Let Y = 𝑉𝑉𝑋𝑋 + 𝑏𝑏. Then, π‘Œπ‘Œ has mean 𝑉𝑉𝐸𝐸[𝑋𝑋] + 𝑏𝑏, and variance 𝑉𝑉2𝜎𝜎2.

Page 16: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Example

Suppose the mass of Thor’s hammers in kg (he has an infinite number) are distributed X ∼ N(10, 32). Find the proportion of Thor’s hammers that have mass larger than 13.4 kg. (if we randomly select a hammer, find the probability that its mass > 13.4 kg).

ans. P[X > 13.4] = P[Z > 1.13] = 0.129216

Page 17: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

What is z?β–« The value of z gives the number of standard

deviations the particular value of X lies above or below the mean Β΅.

17

Page 18: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

Examples

Normal Distribution

Page 19: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

1 Cream and Fluttr knows that the daily demand for cupcakes is a random variable which follows the normal distribution with mean 43.3 cupcakes and standard deviation 4.6. They would like to make enough so that there is only a 5% chance of demand exceeding the number of cupcakes made. (How many should they make?)

z=1.645 x = 5119

Page 20: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

20

Page 21: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

21

Page 22: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

2 Suppose again that Thor’s hammers are normally distributed with: E[X] = 10, Var[X] = 9.

Find the 25th percentile of X. (How much mass should a hammer have, in order to have more than 25% of all hammers)

Ans. z = -0.675 πœ‹πœ‹0.25 = 7.975 22

Page 23: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

3 Stapleton’s Auto Park of Urbana believes that total sales for next month will follow the normal distribution, with mean, πœ‡πœ‡, and a standard deviation, 𝜎𝜎= $300,000. What is the probability that Stapleton’s sales will fall within $150000 of the mean next month?

Ans. 0.6915 βˆ’ 0.3085 = .38323

Page 24: The Gamma and Normal DistributionsThe Gamma and Normal Distributions. 3.2, 3.3. The Gamma Distribution. Consider a Poisson process with rate πœ†πœ†: Let a random variable, 𝑋𝑋,

24