Likelihood

Representation of a Likelihood function for a Bambi model

Usage

Source

Likelihood(
    name,
    params=None,
    parent=None,
    dist=None,
)

Parameters

name: str

Name of the likelihood function. Must be a valid PyMC distribution name.

params: sequence of str or None = None

The name of the parameters the likelihood function accepts.

parent: str or None = None

Optional specification of the name of the mean parameter in the likelihood. This is the parameter whose transformation is modeled by the linear predictor.

dist: pymc.Distribution or callable or None = None
Optional custom PyMC distribution that will be used to compute the likelihood.

Notes

  • parent must be in params
  • parent is inferred from the name if it is a known name