필터 지우기
필터 지우기

AIC in a Gaussian Mixture Regression

조회 수: 1 (최근 30일)
Joaquim
Joaquim 2017년 4월 29일
답변: Adam Danz 2020년 1월 17일
Hello everybody, I am trying to fit a gaussian mixture model to a set of predictor variables. I'm not using the built-in functions of matlab. I have six predictor variables to one response value. Each predictor variable is described by 100 observations I want to determine the number of Guassians (clusters) to fit the model. My script uses first an initialization using K-means and then the EM algorithm to calculate the model parameters ( means, covariance and mixing proportions).
How can I calculate the AIC to determine the numbers of Gaussians that bettwer fit my model?
Joaquim
  댓글 수: 1
Sujit Dahal
Sujit Dahal 2020년 1월 17일
Hello Joaquim,
Did you calculate the AIC for your problem. I also have similar problem to yours. If you have the solution could you please provide it.
Thank you
Sujit

댓글을 달려면 로그인하십시오.

답변 (1개)

Adam Danz
Adam Danz 2020년 1월 17일
This computes the AIC and the AICc using the following defined inputs.
% RSS: Vector; residual sum of squares between your data and the fit for each model
% N: number of data points
% Np: number of model parameters (must be same size as RSS)
AIC=N*(log(RSS/N)+1)+2*(Np+1);
AICc=AIC+2*(Np+1).*(Np+2)./(N-Np-2);
Based on

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by