Is there a way to find a correlation coefficient, or some equivalent measure, of more than 2 variables/columns of data? I have a large number of columns of data in Python, and I've found the correlation coefficient for all possible pairs of columns using np.corrcoef(), but I would like to somehow produce coefficients when relating 3 or more columns at once.
How I imagine this is I want to plot all the data points from 3 columns into a 3D space and find the vector that best fits the data, and how strongly linear the relationship is.