Multicolinearity on the other hand is more troublesome to detect because it emerges when three or more variables, which are highly correlated, are included within a model. In R use the corr function and in python this can by accomplished by using numpy's corrcoef function. To detect colinearity among variables, simply create a correlation matrix and find variables with large absolute values. Colinearity is the state where two variables are highly correlated and contain similiar information about the variance within a given dataset.