Correlation Coefficient between multiple table columns

16 ビュー (過去 30 日間)
Ryley Dalton
Ryley Dalton 2019 年 3 月 23 日
コメント済み: Peter Perkins 2019 年 3 月 25 日
I have 3 tables all which are 365x6. I want to find the correlation coefficient of table 1 column 1 against the remaining 5 columns of table 1 and all columns of table 2 and 3.
Thanks in advance

回答 (1 件)

dpb
dpb 2019 年 3 月 23 日
Try
doc corrcoef % see examples re: NaN
When you're still learning way around Matlab, a very useful (albeit old and pretty-much ignored by TMW any more) tool is lookfor --
>> lookfor correlation
corrcoef - Correlation coefficients.
ac2poly - Convert autocorrelation sequence to prediction polynomial.
ac2rc - Convert autocorrelation sequence to reflection coefficients.
corrmtx - Autocorrelation matrix.
poly2ac - Convert prediction polynomial to autocorrelation sequence.
rc2ac - reflection coefficients to autocorrelation sequence.
xcorr - Cross-correlation function estimates.
xcorr2 - Two-dimensional cross-correlation.
canoncorr - Canonical correlation analysis.
cophenet - Cophenetic correlation coefficient.
copulaparam - Copula parameters as a function of rank correlation.
copulastat - Rank correlation for a copula.
corr - Linear or rank correlation.
corrcov - Compute correlation matrix from covariance matrix.
dwtest - Durbin-Watson test for autocorrelation in linear regression.
partialcorr - Linear or rank partial correlation coefficients.
partialcorri - Partial correlation coefficients with internal adjustments.
>>
A keyword or guess at one will provide a list from which you can see what may be of interest...in your case, it turns out #1 on the list...or, of course, use the graphic tools and search in the documentation browser but it isn't nearly so succinct.
  1 件のコメント
Peter Perkins
Peter Perkins 2019 年 3 月 25 日
Or lucky #13: corr. That requires the Statists and Machine Learning Toolbox.

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

カテゴリ

Help Center および File ExchangeAnalysis of Variance and Covariance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by