Skip to content

Commit f079fc4

Browse files
committed
fix merge conflict/syntax
2 parents 53cf5ad + 126dcb7 commit f079fc4

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/functions-reference/positive_continuous_distributions.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,16 @@ 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
364-
\in \mathbb{R}^+$, \begin{equation*} \text{Gamma}(y|\alpha,\beta) =
363+
<
364+
If the shape parameter $\alpha \in \mathbb{R}^+$ and the rate (or inverse scale) parameter $\beta \in \mathbb{R}^+$, then for $y
365+
\in \mathbb{R}^+$, \[ \text{Gamma}(y|\alpha,\beta) =
365366
\frac{\beta^{\alpha}} {\Gamma(\alpha)} \, y^{\alpha - 1}
366367
\exp(-\beta \, y) . \end{equation*}
367368

368369
### Distribution statement
369370

371+
Under the shape and rate formulation of the Gamma distribution, $E[y] = \alpha / \beta$ and $\textrm{var}[y] = \alpha / \beta^2$.
372+
370373
`y ~ ` **`gamma`**`(alpha, beta)`
371374

372375
Increment target log probability density with `gamma_lupdf(y | alpha, beta)`.

src/functions-reference/real-valued_basic_functions.qmd

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,17 @@ Return the natural logarithm of the beta function applied to alpha and
11921192
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$.
1195-
\begin{equation*}
1196-
\text{lbeta}(\alpha,\beta) = \log \Gamma(a) + \log \Gamma(b) - \log \Gamma(a+b)
1197-
\end{equation*}
1198-
See section [appendix](mathematical_functions.qmd#beta-appendix) for definition of $\text{B}(\alpha, \beta)$.
1195+
1196+
\[
1197+
\text{lbeta}(\alpha,\beta) = \log
1198+
\Gamma(\alpha) + \log \Gamma(\beta) - \log \Gamma(\alpha+\beta)
1199+
\]
1200+
1201+
See section [appendix](mathematical_functions.qmd#beta-appendix) for
1202+
the definition of $\text{B}(\alpha, \beta)$.
11991203
{{< since 2.0 >}}
12001204

1205+
12011206
<!-- R; lbeta; (T1 x, T2 y); -->
12021207
\index{{\tt \bfseries lbeta }!{\tt (T1 x, T2 y): R}|hyperpage}
12031208

0 commit comments

Comments
 (0)