Var.observed

Contents

Var.observed#

property Var.observed: bool#

Whether the variable is observed.

If a variable is observed and has an associated probability distribution, its log-probability is automatically added to the model log-likelihood (see Model.log_lik).

See also

obs

Helper function to declare a variable as a parameter.

Model.log_prior

The log-prior of a Liesel model.

Var.parameter

Whether the variable is a parameter. If a variable is a parameter, it is not observed.

Notes

We recommend to use the obs() helper function to declare an observed variable.