14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

82 Performing Univariate <strong>Analysis</strong> Chapter 2<br />

Statistical Details for the Distribution Platform<br />

Poisson<br />

The Poisson distribution has a single scale parameter λ >0.<br />

pmf:<br />

e λ λ<br />

------------- x<br />

x!<br />

for 0 ≤ λ < ∞; x = 0,1,2,...<br />

E(x) = λ<br />

Var(x) = λ<br />

Since the Poisson distribution is a discrete distribution, the overlaid curve is a step function, with jumps<br />

occurring at every integer.<br />

Gamma Poisson<br />

This distribution is useful when the data is a combination of several Poisson(μ) distributions, each with a<br />

different μ. One example is the overall number of accidents combined from multiple intersections, when<br />

the mean number of accidents (μ) varies between the intersections.<br />

The Gamma Poisson distribution results from assuming that x|μ follows a Poisson distribution <strong>and</strong> μ<br />

follows a Gamma(α,τ). The Gamma Poisson has parameters λ =ατ <strong>and</strong> σ =τ+1. The σ is a dispersion<br />

parameter. If σ > 1, there is over dispersion, meaning there is more variation in x than explained by the<br />

Poisson alone. If σ = 1, x reduces to Poisson(λ).<br />

Γx<br />

+ λ<br />

σ ----------- <br />

– 1<br />

pmf: ------------------------------------------ σ -----------<br />

– 1 x λ<br />

–-----------<br />

σ – 1<br />

σ for 0 < λ ; 1 ≤ σ ; x = 0,1,2,...<br />

λ <br />

Γ( x + 1)Γ-----------<br />

σ <br />

σ – 1<br />

E(x) = λ<br />

Var(x) = λσ<br />

where<br />

Γ ( . )<br />

is the Gamma function.<br />

Remember that x|μ ~ Poisson(μ), while μ~ Gamma(α,τ). The platform estimates λ =ατ <strong>and</strong> σ =τ+1. To<br />

obtain estimates for α <strong>and</strong> τ, use the following formulas:<br />

τ = σ – 1<br />

αˆ<br />

λˆ<br />

= --<br />

τˆ<br />

If the estimate of σ is 1, the formulas do not work. In that case, the Gamma Poisson has reduced to the<br />

Poisson(λ), <strong>and</strong> λˆ is the estimate of λ.<br />

If the estimate for α is an integer, the Gamma Poisson is equivalent to a Negative Binomial with the<br />

following pmf:<br />

y + r – 1<br />

py ( ) = p for<br />

y <br />

r ( 1 – p) y 0 ≤ y<br />

with r = α <strong>and</strong> (1-p)/p = τ.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!