Convex Optimization in Machine Learning and Computational Finance