convert_multi_NG_Normal function

convert_multi_NG_Normal

convert_multi_NG_Normal

Calculate the parameters of the Normal-Gamma that best approximates the given Multivariate Normal distribution. The distribution obtained for each outcome is marginal. The approximation is the best in the sense that it minimizes the KL divergence from the Normal to the Normal-Gamma. In this approach, we suppose that the first entry of the multivariate normal represents the mean of the observed data and the second represent the log variance.

convert_multi_NG_Normal(ft, Qt, parms)

Arguments

  • ft: numeric: A vector representing the means from the normal distribution.
  • Qt: matrix: A matrix representing the covariance matrix of the normal distribution.
  • parms: list: A list of extra known parameters of the distribution. Not used in this kernel.

Returns

The parameters of the conjugated distribution of the linear predictor.

See Also

Other auxiliary functions for a Normal outcome: multi_normal_gamma_pred(), normal_pred(), update_Normal()

  • Maintainer: Silvaneo dos Santos Jr.
  • License: GPL (>= 3)
  • Last published: 2025-03-20