update_normal_inverse_gamma

function update_normal_inverse_gamma(x:Real, μ:Real, a2:Real, α:Real, β:Real) -> (Real, Real)

Update the parameters of an inverse-gamma distribution that is part of a normal inverse-gamma joint distribution.

  • x: The variate.
  • μ: Mean.
  • a2: Variance.
  • α: Shape of the inverse-gamma.
  • β: Scale of the inverse-gamma.

Returns: the updated parameters α and β.