필터 지우기
필터 지우기

Factor Analysis: a covariance matrix is not positive definite

조회 수: 10 (최근 30일)
Vasek
Vasek 2015년 4월 7일
답변: Sonu Kumar 2015년 7월 9일
Hello,
I have a data set called Z2 that consists of 717 observations (rows) which are described by 33 variables (columns). The data is standardized by using ZSCORES. Additionally, there is no case for which would be recognized perfect linear dependancy (r=1). I've also cleared the data out of the variables with very low variance (var<0.1). The following figure plots the corresponding correlation matrix (in absolute values).
When I'm trying to run factor analysis using FACTORAN like following:
[Loadings1,specVar1,T,stats] = factoran(Z2,1);
I recive the following error:
" The data X must have a covariance matrix that is positive definite. "
Could you please tell me where is the problem? Is it due to low mutual dependancy among the used variables? In addition, what I can do about it?
Thank you.
Regards,
Vaclav

답변 (1개)

Sonu Kumar
Sonu Kumar 2015년 7월 9일
No, This is happening because some of your variables are highly correlated.
As you can see, variable 9,10 and 15 have correlation almost 0.9 with their respective partners.
Try factoran after removing these variables. Regards

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by