check dependent variables
#matrix is the feature matrix containing dependent variables
corr = np.corrcoef(matrix, rowvar=0)
w, v = np.linalg.eig(corr)
w # list of eigen values #should not have any zero values in case of linearly independent rows
v[:,0] #first eigen vector
v[:,1] #second eigen vector
and so on