## Exponential Distribution

Though often you will see the density defined as

where . In the above is the scale parameter and is the rate parameter. The rate parameter indicates the rate at which the event occurs. The two densities are the same, but since the SAS PDF function takes as argument, I like to go with that one. If a stochastic variable is exponentially distributed, we write . The density is defined to be zero for .

The Exponential is a special case of the Gamma distribution with shape parameter and scale parameter . Also the Exponential distribution can be interpretted as the

To the right, I have plotted Probability Density Functions and the corresponding Cumulative Density Functions for Exponential Distributions with different values of . You can download the code creating these plots here.

##### SAS Code Example

Below, I have written a small SAS program, that lets you set and draw the probability density function for the corresponding exponential function. I encourage you to play around with this code to familiarize yourself with the impact of on the shape of the density.

/* Exponential PDF Curves */ %let sigma = 1; data Exponential_PDF; do x=0 to 4 by 0.01; Exponential_PDF = pdf('Exponential', x, &sigma); output; end; run; /* Draw PDF Curve */ title "Exponential Density For (*ESC*){unicode sigma} = &sigma"; proc sgplot data=Exponential_PDF noautolegend; series x=x y=Exponential_PDF / lineattrs = (thickness=2 color=black) legendlabel="Exponential PDF"; keylegend / position=NE location=inside across=1 noborder valueattrs=(Size=12 Weight=Bold) titleattrs = (Size=12 Weight=Bold); xaxis label='x' labelattrs = (size=12 weight=Bold); yaxis display=(nolabel) label='PDF' labelattrs = (size=12 weight=Bold); run; title; |