Stan Math Library
5.0.0
Automatic Differentiation
|
Returns the natural logarithm of the beta function and its gradients.
\[ \mathrm{lbeta}(a,b) = \ln\left(B\left(a,b\right)\right) \]
\[ \frac{\partial }{\partial a} = \psi^{\left(0\right)}\left(a\right) - \psi^{\left(0\right)}\left(a + b\right) \]
\[ \frac{\partial }{\partial b} = \psi^{\left(0\right)}\left(b\right) - \psi^{\left(0\right)}\left(a + b\right) \]
a | var Argument |
b | var Argument |