Optimal Transport in Statistical Inference and Computation