pangolin.interface.wishart

Contents

pangolin.interface.wishart#

pangolin.interface.wishart(nu, scale)#

Create a matrix-valued Wishart RV (Wikipedia).

nu must be scalar and scale must be a square positive-definite matrix. The result has the same shape as scale. The IR validates the shapes; constraints on their values remain backend-level.

Parameters:
  • nu (RVLike) – Degrees of freedom.

  • scale (RVLike) – Scale matrix.

Return type:

RV

Examples

>>> import pangolin.interface as pi
>>> pi.wishart(5, [[1, 0], [0, 1]]).shape
(2, 2)