Correlation, linear and logistic regression