moment generating function and statistical distributions

91
MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS 1

Upload: calvin

Post on 12-Jan-2016

46 views

Category:

Documents


0 download

DESCRIPTION

MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS. MOMENT GENERATING FUNCTION. The m.g.f. of random variable X is defined as. for t Є (-h,h) for some h>0. Properties of m.g.f. M(0)=E[1]=1 If a r.v. X has m.g.f. M(t), then Y=aX+b has a m.g.f. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

MOMENT GENERATING FUNCTION AND

STATISTICAL DISTRIBUTIONS

1

Page 2: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

MOMENT GENERATING FUNCTION

2

xall

tx

xall

tx

tXX

discreteisXif)x(fe

.contisXifdx)x(fe

)e(E)t(M

The m.g.f. of random variable X is defined as

for t Є (-h,h) for some h>0.

Page 3: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Properties of m.g.f.

• M(0)=E[1]=1

• If a r.v. X has m.g.f. M(t), then Y=aX+b has a m.g.f.

• M.g.f does not always exists (e.g. Cauchy distribution)

3

)at(Mebt

.derivativektheisMwhere)0(M)X(E th)k()k(k

Page 4: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Example

• Suppose that X has the following p.d.f.

Find the m.g.f; expectation and variance.

4

0xforxe)x(f x

Page 5: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

CHARACTERISTIC FUNCTION

5

xall

itx

xall

itx

itXX

discreteisXifxfe

contisXifdxxfe

eEt)(

.)(

)()(

The c.h.f. of random variable X is defined as

for all real numbers t.

C.h.f. always exists.

1,12 ii

Page 6: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Uniqueness

Theorem:

1.If two r.v.s have mg.f.s that exist and are equal, then they have the same distribution.

2.If two r,v,s have the same distribution, then they have the same m.g.f. (if they exist)

Similar statements are true for c.h.f.

6

Page 7: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

7

STATISTICAL DISTRIBUTIONS

Page 8: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

SOME DISCRETE PROBABILITY

DISTRIBUTIONSDegenerate, Uniform, Bernoulli,

Binomial, Poisson, Negative Binomial, Geometric,

Hypergeometric

8

Page 9: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

9

DEGENERATE DISTRIBUTION

• An rv X is degenerate at point k if

1,

0, . .

X kP X x

o w

The cdf:

0,

1,

X kF x P X x

X k

Page 10: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

UNIFORM DISTRIBUTION

• A finite number of equally spaced values are equally likely to be observed.

• Example: throw a fair die. P(X=1)=…=P(X=6)=1/6

10

,...2,1N;N,...,2,1x;N

1)xX(P

12

)1N)(1N()X(Var;

2

1N)X(E

Page 11: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

11

BERNOULLI DISTRIBUTION

• A Bernoulli trial is an experiment with only two outcomes. An r.v. X has Bernoulli(p) distribution if

1 with probability ;0 1

0 with probability 1

pX p

p

1p0and;1,0xfor)p1(p)xX(P x1x

Page 12: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

12

BINOMIAL DISTRIBUTION• Define an rv Y by

Y = total number of successes in n Bernoulli trials.

1.There are n trials (n is finite and fixed).2. Each trial can result in a success or a failure.3. The probability p of success is the same for all

the trials.4. All the trials of the experiment are independent.

1

~ , where ~ .n

i ii

Y X Bin n p X Ber p

Let ~ , . ,independent

i iX Bin n p Then

1 21

~ , .k

i ki

X Bin n n n p

Page 13: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

BINOMIAL DISTRIBUTION

• Example: • There are black and white balls in a box. Select

and record the color of the ball. Put it back and re-pick (sampling with replacement).

• n: number of independent and identical trials • p: probability of success (e.g. probability of

picking a black ball)• X: number of successes in n trials

13

Page 14: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

14

BINOMIAL THEOREM

• For any real numbers x and y and integer n>0

inin

i

n yxi

nyx

0

)(

Page 15: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

BINOMIAL DISTRIBUTION

• If Y~Bin(n,p), then

15

p)-np(1Var(Y)

npE(Y)

ntY )]p1(pe[)t(M

Page 16: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

16

POISSON DISTRIBUTION

• The number of occurrences in a given time interval can be modeled by the Poisson distribution.

• e.g. waiting for bus, waiting for customers to arrive in a bank.

• Another application is in spatial distributions. • e.g. modeling the distribution of bomb hits in an

area or the distribution of fish in a lake.

Page 17: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

POISSON DISTRIBUTION

• If X~ Poi(λ), then E(X)= Var(X)=λ

17

]}1)[exp(exp{)( ttM X

Page 18: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

18

Relationship between Binomial and Poisson

~ , with mgf 1nt

XX Bin n p M t pe p

Let =np.

1

lim lim 1

1lim 1

nt

Xn n

ntte

Yn

M t pe p

ee M t

n

The mgf of Poisson()

The limiting distribution of Binomial rv is the Poisson distribution.

Page 19: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

NEGATIVE BINOMIAL DISTRIBUTION (PASCAL OR WAITING TIME DISTRIBUTION)

• X: number of Bernoulli trials required to get a fixed number of failures before the r th success; or, alternatively,

• Y: number of Bernoulli trials required to get a fixed number of successes, such as r successes.

19

Page 20: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

20

NEGATIVE BINOMIAL DISTRIBUTION (PASCAL OR WAITING TIME DISTRIBUTION)

X~NB(r,p)

1p0,...;1,0x;)p1(px

1xr)xX(P xr

2p

)p1(r)X(Var

p

)p1(r)X(E

rtrX ]e)p1(1[p)t(M

Page 21: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

NEGATIVE BINOMIAL DISTRIBUTION

• An alternative form of the pdf:

Note: Y=X+r

21

1p0,...;1r,ry;)p1(p1r

1y)yY(P ryr

2p

)p1(r)X(Var)Y(Var

p

rr)X(E)Y(E

Page 22: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

22

GEOMETRIC DISTRIBUTION• Distribution of the number of Bernoulli trials

required to get the first success.• It is the special case of the Negative Binomial

Distribution r=1.

1

1 , 1,2,x

P X x p p x

X~Geometric(p)

2p

)p1()X(Var

p

1)X(E

Page 23: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

• Example: If probability is 0.001 that a light bulb will fail on any given day, then what is the probability that it will last at least 30 days?

• Solution:

23

GEOMETRIC DISTRIBUTION

97.0)999.0()001.01(001.0)30X(P 30

31x

1x

Page 24: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

24

HYPERGEOMETRIC DISTRIBUTION

• A box contains N marbles. Of these, M are red. Suppose that n marbles are drawn randomly from the box without replacement. The distribution of the number of red marbles, x is

, 0,1,...,

M N M

x n xP X x x n

N

n

It is dealing with finite population.

X~Hypergeometric(N,M,n)

Page 25: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

25

SOME CONTINUOUS PROBABILITY

DISTRIBUTIONSUniform, Normal, Exponential,

Gamma, Chi-Square, Beta Distributions

Page 26: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

26

– A random variable X is said to be uniformly distributed if its density function is

– The expected value and the variance are

12)ab(

)X(V2

baE(X)

.bxaab

1)x(f

2

Uniform Distribution

Page 27: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

27

• Example 1– The daily sale of gasoline is uniformly distributed

between 2,000 and 5,000 gallons. Find the probability that sales are:

– Between 2,500 and 3,000 gallons

– More than 4,000 gallons

– Exactly 2,500 gallons

2000 5000

1/3000

f(x) = 1/(5000-2000) = 1/3000 for x: [2000,5000]

x2500 3000

P(2500X3000) = (3000-2500)(1/3000) = .1667

Uniform Distribution

Page 28: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

28

• Example 1– The daily sale of gasoline is uniformly distributed

between 2,000 and 5,000 gallons. Find the probability that sales are:

– Between 2,500 and 3,500 gallons

– More than 4,000 gallons

– Exactly 2,500 gallons

2000 5000

1/3000

f(x) = 1/(5000-2000) = 1/3000 for x: [2000,5000]

x4000

P(X4000) = (5000-4000)(1/3000) = .333

Uniform Distribution

Page 29: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

29

• Example 1– The daily sale of gasoline is uniformly distributed

between 2,000 and 5,000 gallons. Find the probability that sales are:

– Between 2,500 and 3,500 gallons

– More than 4,000 gallons

– Exactly 2,500 gallons

2000 5000

1/3000

f(x) = 1/(5000-2000) = 1/3000 for x: [2000,5000]

x2500

P(X=2500) = (2500-2500)(1/3000) = 0

Uniform Distribution

Page 30: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

30

Normal Distribution

• This is the most popular continuous distribution.

– Many distributions can be approximated by a normal distribution.

– The normal distribution is the cornerstone distribution of statistical inference.

Page 31: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

31

• A random variable X with mean and variance is normally distributed if its probability density function is given by

...71828.2eand...14159.3where

0;xe2

1)x(f

2x)2/1(

...71828.2eand...14159.3where

0;xe2

1)x(f

2x)2/1(

Normal Distribution

Page 32: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

The Shape of the Normal Distribution

The normal distribution is bell shaped, and symmetrical around

Why symmetrical? Let = 100. Suppose x = 110.

2210

)2/1(100110

)2/1(e

21

e2

1)110(f

Now suppose x = 90210

)2/1(210090

)2/1(e

2

1e

2

1)90(f

11090

Page 33: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

33

The Effects of and

How does the standard deviation affect the shape of f(x)?

= 2

=3 =4

= 10 = 11 = 12How does the expected value affect the location of f(x)?

Page 34: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

34

• Two facts help calculate normal probabilities:– The normal distribution is symmetrical.– Any normal distribution can be transformed into

a specific normal distribution called…

“STANDARD NORMAL DISTRIBUTION”

Example

The amount of time it takes to assemble a computer is normally distributed, with a mean of 50 minutes and a standard deviation of 10 minutes. What is the probability that a computer is assembled in a time between 45 and 60 minutes?

Finding Normal Probabilities

Page 35: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

35

STANDARD NORMAL DISTRIBUTION

• NORMAL DISTRIBUTION WITH MEAN 0 AND VARIANCE 1.

• IF X~N( , 2), THEN

NOTE: Z IS KNOWN AS Z SCORES.

• “ ~ “ MEANS “DISTRIBUTED AS”

~ (0,1)X

Z N

Page 36: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

36

• Solution– If X denotes the assembly time of a computer, we

seek the probability P(45<X<60).– This probability can be calculated by creating a new

normal variable the standard normal variable.

x

xXZ

x

xXZ

E(Z) = = 0 V(Z) = 2 = 1

Every normal variablewith some and, canbe transformed into this Z.

Therefore, once probabilities for Zare calculated, probabilities of any normal variable can be found.

Finding Normal Probabilities

Page 37: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Standard normal probabilities

37

Copied from Walck, C (2007) Handbook on Statistical Distributions for experimentalists

Page 38: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Standard normal table 1

38

Page 39: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Standard normal table 2

39

Page 40: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

40

Standard normal table 3

Page 41: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

41

• Example - continued

P(45<X<60) = P( < < )45 X 60- 50 - 5010 10

= P(-0.5 < Z < 1)

To complete the calculation we need to compute the probability under the standard normal distribution

Finding Normal Probabilities

Page 42: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

42

z 0 0.01 ……. 0.05 0.060.0 0.0000 0.0040 0.0199 0.02390.1 0.0398 0.0438 0.0596 0.0636

. . . . .

. . . . .1.0 0.3413 0.3438 0.3531 0.3554

. . . . .

. . . . .1.2 0.3849 0.3869 ……. 0.3944 0.3962

. . . . . .

. . . . . .

Standard normal probabilities have been calculated and are provided in a table .

The tabulated probabilities correspondto the area between Z=0 and some Z = z0 >0 Z = 0 Z = z0

P(0<Z<z0)

Using the Standard Normal Table

Page 43: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

43

• Example - continued

P(45<X<60) = P( < < )45 X 60- 50 - 5010 10

= P(-.5 < Z < 1)

z0 = 1z0 = -.5

We need to find the shaded area

Finding Normal Probabilities

Page 44: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

44

P(-.5<Z<0)+ P(0<Z<1)

P(45<X<60) = P( < < )45 X 60- 50 - 5010 10

z 0 0.1 ……. 0.05 0.060.0 0.0000 0.0040 0.0199 0.02390.1 0.0398 0.0438 0.0596 0.636

. . . . .

. . . . .1.0 0.3413 0.3438 0.3531 0.3554

. . . . .

P(0<Z<1

• Example - continued

= P(-.5<Z<1) =

z=0 z0 = 1z0 =-.5

.3413

Finding Normal Probabilities

Page 45: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

45

• The symmetry of the normal distribution makes it possible to calculate probabilities for negative values of Z using the table as follows:

-z0 +z00

P(-z0<Z<0) = P(0<Z<z0)

Finding Normal Probabilities

Page 46: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

46

z 0 0.1 ……. 0.05 0.060.0 0.0000 0.0040 0.0199 0.02390.1 0.0398 0.0438 0.0596 0.636

. . . . .

. . . . .0.5 0.1915 …. …. ….

. . . . .

• Example - continued

Finding Normal Probabilities

.3413

.5-.5

.1915

Page 47: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

47

z 0 0.1 ……. 0.05 0.060.0 0.0000 0.0040 0.0199 0.02390.1 0.0398 0.0438 0.0596 0.636

. . . . .

. . . . .0.5 0.1915 …. …. ….

. . . . .

• Example - continued

Finding Normal Probabilities

.1915.1915.1915.1915

.3413

.5-.5

P(-.5<Z<1) = P(-.5<Z<0)+ P(0<Z<1) = .1915 + .3413 = .5328

1.0

Page 48: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

48

z 0 0.1 ……. 0.05 0.060.0 0.5000 0.5040 0.5199 0.52390.1 0.5398 0.5438 0.5596 0.5636

. . . . .

. . . . .0.5 0.6915 …. …. ….

. . . . .

• Example - continued

Finding Normal Probabilities

.3413

P(Z<-0.5)=1-P(Z>-0.5)=1-0.6915=0.3085By Symmetry

P(Z<0.5)

Page 49: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

49

10%0%

20-2

(i) P(X< 0 ) = P(Z< ) = P(Z< - 2)0 - 10

5

=P(Z>2) =Z

X

• Example– The rate of return (X) on an investment is normally distributed

with a mean of 10% and standard deviation of (i) 5%, (ii) 10%.

– What is the probability of losing money?

.4772

0.5 - P(0<Z<2) = 0.5 - .4772 = .0228

Finding Normal Probabilities

Page 50: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

50

10%0%

-1

(ii) P(X< 0 ) = P(Z< ) 0 - 10

10

= P(Z< - 1) = P(Z>1) =Z

X

• Example– The rate of return (X) on an investment is normally

distributed with mean of 10% and standard deviation of (i) 5%, (ii) 10%.

– What is the probability of losing money?

.3413

0.5 - P(0<Z<1) = 0.5 - .3413 = .1587

Finding Normal Probabilities

1

Page 51: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

51

AREAS UNDER THE STANDARD NORMAL DENSITY

P(0<Z<1)=.3413

Z0 1

Page 52: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

52

AREAS UNDER THE STANDARD NORMAL DENSITY

.3413 .4772

P(1<Z<2)=.4772-.3413=.1359

Page 53: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

53

EXAMPLES

• P( Z < 0.94 ) = 0.5 + P( 0 < Z < 0.94 )

= 0.5 + 0.3264 = 0.8264

0.940

0.8264

Page 54: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

54

EXAMPLES

• P( Z > 1.76 ) = 0.5 – P( 0 < Z < 1.76 )

= 0.5 – 0.4608 = 0.0392

1.760

0.0392

Page 55: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

55

EXAMPLES

• P( -1.56 < Z < 2.13 ) =

= P( -1.56 < Z < 0 ) + P( 0 < Z < 2.13 )

= 0.4406 + 0.4834 = 0.9240

P(0 < Z < 1.56)

-1.56 2.13

0.9240

Because of symmetry

Page 56: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

56

STANDARDIZATION FORMULA

• If X~N( , 2), then the standardized value Z of any ‘X-score’ associated with calculating probabilities for the X distribution is:

• The standardized value Z of any ‘X-score’ associated with calculating probabilities for the X distribution is:

(Converse Formula)

XZ

.x z

Page 57: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

57

• Sometimes we need to find the value of Z for a given probability

• We use the notation zA to express a Z value for which P(Z > zA) = A

Finding Values of Z

zA

A

Page 58: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

58

PERCENTILE• The pth percentile of a set of measurements

is the value for which at most p% of the measurements are less than that value.

• 80th percentile means P( Z < a ) = 0.80

• If Z ~ N(0,1) and A is any probability, then

P( Z > zA) = A

A

zA

Page 59: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

59

• Example – Determine z exceeded by 5% of the population– Determine z such that 5% of the population is below

• Solutionz.05 is defined as the z value for which the area on its right

under the standard normal curve is .05.

0.05

Z0.050

0.45

1.645

Finding Values of Z

0.05

-Z0.05

Page 60: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

60

EXAMPLES

• Let X be rate of return on a proposed investment. Mean is 0.30 and standard deviation is 0.1.

a) P(X>.55)=?b) P(X<.22)=?c) P(.25<X<.35)=?d) 80th Percentile of X is?e) 30th Percentile of X is?

Standardization formula

Converse Formula

Page 61: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

61

ANSWERSa)

b)

c)

d)

e)

X - 0.3 0.55 - 0.3P(X 0.55) P = Z > = 2.5 = 0.5 - 0.4938 = 0.0062

0.1 0.1

X - 0.3 0.22 - 0.3P(X 0.22) P = Z = 0.8 = 0.5 - 0.2881 = 0.2119

0.1 0.1

0.25 0.3 X - 0.3 0.35 - 0.3P(0.25 X 0.35) P 0.5 = Z = 0.5

0.1 0.1 0.1

= 2.*(0.1915) 0.3830

80th Percentile of X is 0.20. .3+(.85)*(.1)=.385x z

30th Percentile of X is 0.70. .3+(-.53)*(.1)=.247x z

Page 62: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

62

The Normal Approximation to the Binomial Distribution

• The normal distribution provides a close approximation to the Binomial distribution when n (number of trials) is large and p (success probability) is close to 0.5.

• The approximation is used only when

np 5 and

n(1-p) 5

Page 63: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

63

The Normal Approximation to the Binomial Distribution

• If the assumptions are satisfied, the Binomial random variable X can be approximated by normal distribution with mean = np and 2 = np(1-p).

• In probability calculations, the continuity correction improves the results. For example, if X is Binomial random variable, then

P(X a) ≈ P(X<a+0.5)

P(X a) ≈ P(X>a-0.5)

Page 64: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

64

EXAMPLE• Let X ~ Binomial(25,0.6), and want to find P(X ≤ 13).

• Exact binomial calculation:

• Normal approximation (w/o correction): Y~N(15,2.45²)

13

0x

x25x 267.0)4.0()6.0(x

25)13X(P

206.0)82.0Z(P)45.2

1513Z(P)13Y(P)13X(P

Normal approximation is good, but not great!

Page 65: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

EXAMPLE, cont.

65Copied from Casella & Berger (1990)

Bars – Bin(25,0.6); line – N(15, 2.45²)

Page 66: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

EXAMPLE, cont.

• Normal approximation (w correction):

Y~N(15,2.45²)

66

271.0)61.0Z(P)5.13Y(P)5.13X(P)13X(P

Much better approximation to the exact value: 0.267

Page 67: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

67

Exponential Distribution• The exponential distribution can be used to model

– the length of time between telephone calls– the length of time between arrivals at a service station– the lifetime of electronic components.

• When the number of occurrences of an event follows the Poisson distribution, the time between occurrences follows the exponential distribution.

Page 68: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

68

A random variable is exponentially distributed if its probability density function is given by

f(x) = e-x, x>=0.is the distribution parameter >0).

E(X) = V(X) = 2

Exponential Distribution

The cumulative distribution function isF(x) =1e-x/, x0

/1, 0, 0x

Xf x e x

is a distribution parameter.

Page 69: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

69

0

0.5

1

1.5

2

2.5f(x) = 2e-2x

f(x) = 1e-1x

f(x) = .5e-.5x

0 1 2 3 4 5

Exponential distribution for = .5, 1, 2

0

0.5

1

1.5

2

2.5

a bP(a<X<b) = e-a/ e-b/

Page 70: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

70

• Finding exponential probabilities is relatively easy:– P(X < a) = P(X ≤ a)=F(a)=1 – e –a/

– P(X > a) = e–a/

– P(a< X < b) = e – a/ – e – b/

Exponential Distribution

Page 71: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

71

• Example The service rate at a supermarket checkout

is 6 customers per hour. – If the service time is exponential, find the

following probabilities:• A service is completed in 5 minutes,• A customer leaves the counter more than 10

minutes after arriving• A service is completed between 5 and 8 minutes.

Exponential Distribution

Page 72: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

72

• Solution– A service rate of 6 per hour =

A service rate of .1 per minute ( = .1/minute).– P(X < 5) = 1-e-.lx = 1 – e-.1(5) = .3935– P(X >10) = e-.lx = e-.1(10) = .3679– P(5 < X < 8) = e-.1(5) – e-.1(8) = .1572

Exponential Distribution

Page 73: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

73

Exponential Distribution

• If pdf of lifetime of fluorescent lamp is exponential with mean 0.10, find the life for 95% reliability?

The reliability function = R(t) = 1F(t) = e-t/

R(t) = 0.95 t = ?

What is the mean time to failure?

Page 74: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

74

• X~ Gamma(,)

GAMMA DISTRIBUTION

1 /1, 0, 0, 0xf x x e x

2 and E X Var X

11 , M t t t

Page 75: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

75

GAMMA DISTRIBUTION

• Gamma Function:

1

0

xx e dx

where is a positive integer.

Properties:

1 , 0

1 ! for any integer 1n n n 12

Page 76: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

76

• Let X1,X2,…,Xn be independent rvs with Xi~Gamma(i, ). Then,

GAMMA DISTRIBUTION

1 1

~ ,n n

i ii i

X Gamma

•Let X be an rv with X~Gamma(, ). Then,

~ , where is positive constant.cX Gamma c c • Let X1,X2,…,Xn be a random sample with Xi~Gamma(, ). Then,

1 ~ ,

n

ii

XX Gamma n

n n

Page 77: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

GAMMA DISTRIBUTION

• Special cases: Suppose X~Gamma(α,β)– If α=1, then X~ Exponential(β)– If α=p/2, β=2, then X~ 2 (p) (will come back in a min.)

– If Y=1/X, then Y ~ inverted gamma.

77

Page 78: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

Integral tricks

• Recall: h(t) is an odd function if h(-t)=-h(t);

It is an even function if h(-t)=h(t).

• Ex: h(x)=x exp{-x²/2} odd;

h(x)= exp{-x²/2-x} neither odd nor even

• odd function =0

• even function = 2* even function78

0

Page 79: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

79

CHI-SQUARE DISTRIBUTION

• X~ 2()= Gamma(/2,2)

and 2E X Var X

Chi-square with degrees of freedom

2/1t)t21()t(M 2/p

,...2,1,0,)2/(2

1)( 2/12/

2/

xexxf x

Page 80: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

80

DEGREES OF FREEDOM• In statistics, the phrase degrees of freedom is

used to describe the number of values in the final calculation of a statistic that are free to vary.

• The number of independent pieces of information that go into the estimate of a parameter is called the degrees of freedom (df) .

• How many components need to be known before the vector is fully determined?

Page 81: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

81

CHI-SQUARE DISTRIBUTION

• If rv X has Gamma(,) distribution, then Y=2X/ has Gamma(,2) distribution. If 2 is positive integer, then Y has

distribution.

2

2

•Let X1,X2,…,Xn be a r.s. with Xi~N(0,1). Then,2 2

1

~n

i ni

X

•Let X be an rv with X~N(0, 1). Then,2 2

1~X

Page 82: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

82

BETA DISTRIBUTION

• The Beta family of distributions is a continuous family on (0,1) and often used to model proportions.

1111 , 0 1, 0, 0.

,f x x x x

B

where

11

0

, 1B x x dx

2 and

1E X Var X

Page 83: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

83

CAUCHY DISTRIBUTION• It is a symmetric and bell-shaped

distribution on (,) with pdf

E X Since , the mean does not exist.

• The mgf does not exist.• measures the center of the distribution and it is the median.

• If X and Y have N(0,1) distribution, then Z=X/Y has a Cauchy distribution with =0 and σ=1.

0,)

x(1

11)x(f

2

Page 84: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

84

LOG-NORMAL DISTRIBUTION

• An rv X is said to have the lognormal distribution, with parameters µ and 2, if Y=ln(X) has the N(µ, 2) distribution.

•The lognormal distribution is used to model continuous random quantities when the distribution is believed to be skewed, such as certain income and lifetime variables.

Page 85: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

85

STUDENT’S T DISTRIBUTION

• This distribution will arise in the study of population mean when the underlying distribution is normal.

• Let Z be a standard normal rv and let U be a chi-square distributed rv independent of Z, with degrees of freedom. Then,

~/

ZX t

U

When n, XN(0,1).

Page 86: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

86

F DISTRIBUTION

• Let U and V be independent rvs with chi-square distributions with 1 and 2 degrees of freedom. Then,

1 2

1

,

2

/~

/U

X FV

Page 87: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

MULTIVARIATE

DISTRIBUTIONS

87

Page 88: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

EXTENDED HYPERGEOMETRIC DISTRIBUTION

• Suppose that a collection consists of a finite number of items, N and that there are k+1 different types; M1 of type 1, M2 of type 2, and so on. Select n items at random without replacement, and let Xi be the number of items of type i that are selected. The vector X=(X1, X2,…,Xk) has an extended hypergeometric distribution and the joint pdf is

. xand M where

},...,1,0{ ,

...

,...,,

11k

11k

1

1

2

2

1

1

21

k

ii

k

ii

iik

k

k

k

k

xnMN

Mx

n

N

x

M

x

M

x

M

x

M

xxxf

88

Page 89: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

MULTINOMIAL DISTRIBUTION

• Let E1,E2,...,Ek,Ek+1 be k+1 mutually exclusive and exhaustive events which can occur on any trial of an experiment with P(Ei)=pi,i=1,2,…,k+1. On n independent trials of the experiment, let Xi be the number of occurrences of the event Ei. Then, the vector X=(X1, X2,…,Xk) has a multinomial distribution with joint pdf

89

.1p and xwhere

},...,1,0{ ,...!!...!

!,...,,

11k

11k

121121

21121

k

ii

k

ii

ixk

xx

kk

pxn

nxpppxxx

nxxxf k

Page 90: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

BIVARIATE NORMAL DISTRIBUTION

• A pair of continuous rvs X and Y is said to have a bivariate normal distribution if it has a joint pdf of the form

90

2

2

y

2

y

1

x2

1

x22

21

yyx2

x

12

1exp

12

1y,xf

.11,0,0,y,x 21

Page 91: MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS

BIVARIATE NORMAL DISTRIBUTION

91

If ,,,,BVN~Y,X yx

2

2

2

1

2

2

2

1 ,N~Y and ,N~X yx

, then

and is the correlation coefficient btw X and Y.1. Conditional on X=x,

22

2X1

2y 1),x(N~xY

2. Conditional on Y=y,

22

1Y2

1x 1),y(N~yX