Skip to content

Commit 7dd022b

Browse files
Merge pull request #640 from mikegilchrist/master
Minor fixes to beta function parameters and clarifying text for gamma distribution
2 parents 53cf5ad + 806b0c1 commit 7dd022b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/functions-reference/positive_continuous_distributions.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,13 @@ For a description of argument and return types, see section
360360

361361
### Probability density function
362362

363-
If $\alpha \in \mathbb{R}^+$ and $\beta \in \mathbb{R}^+$, then for $y
363+
If the shape parameter $\alpha \in \mathbb{R}^+$ and the rate (or inverse scale) parameter $\beta \in \mathbb{R}^+$, then for $y
364364
\in \mathbb{R}^+$, \begin{equation*} \text{Gamma}(y|\alpha,\beta) =
365365
\frac{\beta^{\alpha}} {\Gamma(\alpha)} \, y^{\alpha - 1}
366366
\exp(-\beta \, y) . \end{equation*}
367367

368+
Under the shape and rate formulation of the Gamma distribution, $\mathbb{E}[y] = \alpha / \beta$ and $\textrm{var}[y] = \alpha / \beta^2$.
369+
368370
### Distribution statement
369371

370372
`y ~ ` **`gamma`**`(alpha, beta)`

src/functions-reference/real-valued_basic_functions.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ beta. The beta function, $\text{B}(\alpha,\beta)$, computes the
11931193
normalizing constant for the beta distribution, and is defined for
11941194
$\alpha > 0$ and $\beta > 0$.
11951195
\begin{equation*}
1196-
\text{lbeta}(\alpha,\beta) = \log \Gamma(a) + \log \Gamma(b) - \log \Gamma(a+b)
1196+
\text{lbeta}(\alpha,\beta) = \log \Gamma(\alpha) + \log \Gamma(\beta) - \log \Gamma(\alpha+\beta)
11971197
\end{equation*}
11981198
See section [appendix](mathematical_functions.qmd#beta-appendix) for definition of $\text{B}(\alpha, \beta)$.
11991199
{{< since 2.0 >}}

0 commit comments

Comments
 (0)