フィルターのクリア

Getting the value of a matrix argument post maximizing a function.

3 ビュー (過去 30 日間)
Deepankar Vishwakarma
Deepankar Vishwakarma 2021 年 4 月 25 日
回答済み: Nipun 2024 年 5 月 16 日
Hello there,
I was stuck on a problem of maximinzing a posterior probability and wanted the value of 'w' at which it is maximized.
The posterior function is -
posterior = ((2*pi)^(-M/2)) * (det(SIGMA)^(-1/2)) * exp((-1/2) * (w-mu)' * isigma * (w-mu));
where mu, M, SIGMA, isigma are constant. Also, w, SIGMA, isigma, mu are matrices of suitable dimentions.
I could not find a particular solution to the problem. Any help is appreciated.
Thanks
  1 件のコメント
Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2021 年 4 月 25 日
This posteriori is a multivariate Gaussian, the maximum is when w=mu, so if you have mu you already have the maximum.

サインインしてコメントする。

回答 (1 件)

Nipun
Nipun 2024 年 5 月 16 日
Hi Deepankar,
I understand that you are trying to find the value of (w) that maximizes the posterior probability described by a multivariate Gaussian distribution. The maximum of this distribution occurs at its mean (\mu), which means the value of (w) you are looking for is equal to (\mu).
Here is a concise MATLAB code snippet that assigns the value of (\mu) to (w), assuming you have already defined (\mu) and other necessary variables:
% Assuming mu is defined and represents the mean vector of your distribution
w = mu; % This assigns the maximizing value to w
Given the nature of the problem, there is no need for further optimization routines or calculations. The result is derived from the mathematical properties of the multivariate Gaussian distribution, where the density function is maximized at the mean (\mu).
Hope this helps.
Regards,
Nipun

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by