Nonparametric measure of multivariate dependence between several random variables proposed in Gaißer, Ruppert & Schmid (2010). Unlike Pearson's or rank correlation (Kendall's tau, Spearman's rho), it picks up dependence of any form.
Usage:
> multphi2(data)
Where:
data - n x d matrix containing n realizations of d random variables, association between which is to be measures.
Output: phi - 1x1 measure of association (phi = 0 corresponds to mutual independence of variables in columns of data, phi = 1 - increasing deterministic (not necessarily linear) relationship.
References:
Gaißer, S., Ruppert, M., & Schmid, F. (2010). A multivariate version of Hoeffding’s Phi-Square. Journal of Multivariate Analysis, 101(10), 2571-2586.
Ivan Medovikov (2021). Multivariate Hoeffding's Phi-Squared (https://www.mathworks.com/matlabcentral/fileexchange/46773-multivariate-hoeffding-s-phi-squared), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
This is great! Thanks for sharing the code.
Hi, Thanks for the code! Could you please also provide a set of data to play with?