Text this: Application of regularized covariance matrices in logistic regression and portfolio optimization