Skip to content

Commit 37b6c98

Browse files
committed
Consistently use Gamma & Exponential distribution
Textbooks use the beta parameter with different semantics. Some use it as rate parameter and some as inverse scale. This commit switches Gamma and Expoential distribution over to the rate parameterization, and adds a footnote to clarify this notational inconsistency. Closes #13.
1 parent 43a133d commit 37b6c98

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.3
1+
0.1.4

probstat.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
% Gamma
287287
\newcommandx\gam[1][1={\alpha,\beta}]{\textrm{Gamma}\left({#1}\right)}
288288
\newcommandx\dgamma[3][1=x,2=\alpha,3=\beta]%
289-
{\frac{1}{\Gamma\left( #2 \right) #3^{#2}} #1^{#2 -1}e^{- #1 / #3}}
289+
{\frac{#3^{#2}}{\Gamma\left( #2 \right)} #1^{#2-1}e^{-#3#1}}
290290

291291
% InverseGamma
292292
\newcommandx\invgamma[1][1={\alpha,\beta}]{\textrm{InvGamma}\left({#1}\right)}

stat-cookbook.tex

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
\usepackage{multicol}
2626
\usepackage{rotating}
2727
\usepackage{tikz}
28+
\usepackage{threeparttable}
2829
\usepackage{url}
2930
\usepackage{xspace}
3031

@@ -185,7 +186,7 @@ \subsection{Discrete Distributions}
185186

186187
\subsection{Continuous Distributions}
187188

188-
\begin{center}
189+
\begin{threeparttable}
189190
\small
190191
%\newcolumntype{L}{>{\varwidth[c]{\linewidth}}l<{\endvarwidth}}
191192
\newcolumntype{M}{>{\begin{math}\displaystyle}c<{\end{math}}}
@@ -244,14 +245,14 @@ \subsection{Continuous Distributions}
244245
& \frac{2d_2^2(d_1+d_2-2)}{d_1(d_2-2)^2(d_2-4)} %\; d_2 > 4
245246
& \\[3ex]
246247

247-
Exponential & \ex & \pex & \dex &
248+
Exponential\tnote{$\ast$} & \ex & \pex & \dex &
248249
\beta & \beta^2 &
249-
\frac{1}{1-\beta s} \left(s < 1/\beta \right) \\[3ex]
250+
\frac{1}{1-\frac{s}{\beta}} \left(s<\beta\right) \\[3ex]
250251

251-
Gamma & \gam &
252-
\frac{\gamma(\alpha,x/\beta)}{\Gamma(\alpha)} & \dgamma &
253-
\alpha\beta & \alpha\beta^2 &
254-
\left( \frac{1}{1-\beta s} \right)^\alpha \left( s < 1/\beta \right)\\[3ex]
252+
Gamma\tnote{$\ast$} & \gam &
253+
\frac{\gamma(\alpha,\beta x)}{\Gamma(\alpha)} & \dgamma &
254+
\frac{\alpha}{\beta} & \frac{\alpha}{\beta^2} &
255+
\left(\frac{1}{1-\frac{s}{\beta}} \right)^\alpha \left(s<\beta\right)\\[3ex]
255256

256257
Inverse Gamma & \invgamma & \pinvgamma & \dinvgamma &
257258
\frac{\beta}{\alpha-1} \; \alpha>1 &
@@ -284,7 +285,12 @@ \subsection{Continuous Distributions}
284285

285286
\bottomrule
286287
\end{tabular}
287-
\end{center}
288+
\begin{tablenotes}
289+
\item[$\ast$] We use the \emph{rate} parameterization where
290+
$\beta=\frac{1}{\lambda}$. Some textbooks use $\beta$ as \emph{scale}
291+
parameter instead~\cite{Wasserman03}.
292+
\end{tablenotes}
293+
\end{threeparttable}
288294

289295
\begin{figure}[H]
290296
\includegraphics[scale=0.35]{figs/uniform-pdf.pdf}

0 commit comments

Comments
 (0)