determining linear independence among two vectors using least square method
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello! I want to determine the linear independence between two columns of a matrix... using the first column elements to fit second column elements using least squares method and also to calculate the error between second column and the estimated vector.. the columns of the matrix are circularly shifted (shifting by one) elements of the first vector.. Thanks in advance !
0 Kommentare
Antworten (2)
the cyclist
am 31 Mär. 2020
If your two vectors are v1 and v2, then you could use the corrcoef function to calculate the correlation coefficient and its p-value:
[r p] = corrcoef(v1,v2);
You could choose a value of p (perhaps p < 0.05) to say that the linear correlation between the two vectors is unlikely to be from random sampling.
the cyclist
am 31 Mär. 2020
3 Kommentare
the cyclist
am 9 Apr. 2020
I'm confused, too.
I don't understand the page of text that you pasted, possibly because there is not enough context, and I don't recognize the method.
I'm not confident I can help here, but it's possible.
Can you give a little more context about the method/procedure? Does it have a name?
What is "x" in the above text? It would be helpful to understand both conceptually what it is, and have an example. Can you post something in a MAT file?
Similarly, what is p_ini?
Siehe auch
Kategorien
Mehr zu Regression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
