pyhs3.distributions.ProductDist

class pyhs3.distributions.ProductDist(*, name, factors)[source]

Product distribution implementation.

Implements a product of PDFs as defined in ROOT’s RooProdPdf.

The probability density function is defined as:

\[f(x, \ldots) = \prod_{i=1}^{N} \text{PDF}_i(x, \ldots)\]

where each PDF_i is a component distribution that may share observables.

Parameters:

factors (list[str]) – List of component distribution names to multiply together

Note

In the context of pytensor variables/tensors, this is implemented as an elementwise product of all factor distributions.

Parameters:

name (str)

__init__(*, name, factors)[source]

Initialize a ProductDist.

Parameters:
  • name (str) – Name of the distribution

  • factors (list[str]) – List of component distribution names to multiply together

Methods

__init__(*, name, factors)

Initialize a ProductDist.

expression(distributionsandparameters)

Evaluate the product distribution.

from_dict(config)

Creates an instance of ProductDist from a dictionary configuration.