Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ beta_proportion_lpdf() [2/3]

template<bool propto, typename T_y , typename T_loc , typename T_prec , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y, T_loc, T_prec > * = nullptr>
return_type_t< T_y, T_loc, T_prec > stan::math::beta_proportion_lpdf ( const T_y &  y,
const T_loc &  mu,
const T_prec &  kappa 
)

The log of the beta density for specified y, location, and precision: beta_proportion_lpdf(y | mu, kappa) = beta_lpdf(y | mu * kappa, (1 - mu) * kappa).

Any arguments other than scalars must be containers of the same size. With non-scalar arguments, the return is the sum of the log pdfs with scalars broadcast as necessary.

The result log probability is defined to be the sum of the log probabilities for each observation/mu/kappa triple.

Prior location, mu, must be contained in (0, 1). Prior precision must be positive.

Template Parameters
T_ytype of scalar outcome
T_loctype of prior location
T_prectype of prior precision
Parameters
y(Sequence of) scalar(s) between zero and one
mu(Sequence of) location parameter(s)
kappa(Sequence of) precision parameter(s)
Returns
The log of the product of densities.

Definition at line 51 of file beta_proportion_lpdf.hpp.