| 1 |
|
| 2 |
\begin{tabular}{lcll}\hline |
| 3 |
Variate & $x$ & \ccode{double} & $\mu \leq x < \infty$ \\ |
| 4 |
Location & $\mu$ & \ccode{double} & $-\infty < \mu < \infty$\\ |
| 5 |
Scale & $\lambda$ & \ccode{double} & $\lambda > 0$ \\ \hline |
| 6 |
\end{tabular} |
| 7 |
|
| 8 |
The probability density function (PDF) is: |
| 9 |
|
| 10 |
\begin{equation} |
| 11 |
P(X=x) = \lambda e^{-\lambda (x - \mu)} |
| 12 |
\end{equation} |
| 13 |
|
| 14 |
The cumulative distribution function (CDF) is: |
| 15 |
|
| 16 |
\begin{equation} |
| 17 |
P(X \leq x) = 1 - e^{-\lambda (x - \mu)} |
| 18 |
\end{equation} |
| 19 |
|
| 20 |
|
| 21 |
\subsection{Sampling} |
| 22 |
|
| 23 |
An exponentially distributed sample $x$ is generated by the |
| 24 |
transformation method, using the fact that if $R$ is uniformly |
| 25 |
distributed on $(0,1]$, $1-R$ is uniformly distributed on $[0,1)$: |
| 26 |
|
| 27 |
\[ |
| 28 |
R = \mbox{uniform positive sample in (0,1]}\\ |
| 29 |
x = \mu - \frac{1}{lambda} \log(R) |
| 30 |
\] |
| 31 |
|
| 32 |
\subsection{Maximum likelihood fitting} |
| 33 |
|
| 34 |
The maximum likelihood estimate $\hat{\lambda}$ is $\frac{1}{\sum_i |
| 35 |
x_i}$. The distribution of $\frac{\lambda}{\hat{\lambda}}$ is |
| 36 |
approximately normal with mean 1 and standard error $\frac{1}{\sqrt{N}}$ |
| 37 |
\citep{Lawless82}. |
| 38 |
|
| 39 |
% xref J1/p49 for derivation of standard error. |
| 40 |
|
| 41 |
|