factor analysis

8 views (last 30 days)
chris
chris on 8 Nov 2011
Good Morning,
i have a question about Factor Analysis. I followed the Online Demo Example with grades. But i cannot find a solution for my Problem.Guten Morgen,
I have a Dataset with contents wavelength and their absorbency. The measure exist 44 Measurements
Matrix:45x6451
in this case:
Wavelength 1000 Wavelength 1001 Value of measurement 1 values of measurement 2
certain wavelength represent specific compounds and i try to find out the correlation between each compound
unfortunately Matlab returns a Error Message after the following command
[Loadings1,specVar1,stats]=factoran(Dateiname,1);
??? Error using ==> factoran at 173 The covariance matrix of X must be positive definite.
i try to standardize the values with zscore, but it returned unusable values
i found out that a positive definite matrix must have positive eigenvalues. But i don´t know how to build a Matrix in which postive eigenvalues are the case. I have some value which are negativ and the matrix is not quadratic.
My values are as well small values e.g. 7.87 x10^-3 or 0.005
I hope you understand my problem and i apologize for my bad English.
maybe some of you can speak german and understand the text under better
german text Ich habe die Matrix so aufgesetzt, dass ich erste Zeile die Wellenlänge ist, und darunter folgen 44 Spalten mit den jeweiligen Extinktionen der 44 Messungen.
Matrix:45x6451
Sprich:
Wellenlänge 1000 Wellenlänge 1001 Wert von Messung 1 Wert Messung 2 Wert von Messung 2 Wert Messung 3
bestimmte Wellenlängen stehen nun für bestimmte Stoffe und ich möchte mittels faktor Analyse herausfinden in welchem zusammenhang die Sachen stehen.
leider spuckt Matlab beim Befehl:
[Loadings1,specVar1,stats]=factoran(Dateiname,1);
folgenden fehler aus: ??? Error using ==> factoran at 173 The covariance matrix of X must be positive definite.
Ich habe dann auch versucht mittels zscore eine Standatisierung durchzuführen doch leider waren die Werte dann unbrauchbar.
Wie ich nun herausgefunden habe müssen bei einer positiv Definite matrix, alle Eigenwerte Posotov sein. Doch wie setzte ich die Matrix auf, dass dies der Fall ist, ich habe zum Teil auch Werte die negativ sind. Und eine quadratische Matrix ist diese ja auch nicht, im Fall des Grades beispiel bei Matlab ist dies aber auch nicht der Fall.
Ich hoffe es wird klar was mein Problem ist,
Vielen Dank für eure Hilfe.

Answers (0)

Categories

Find more on Food Sciences in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!