Machine learning can improve prediction when ordinary least squares overfits or the number of potential predictors is large. Learn how Stata tools such as lasso support model selection—and how specialized methods help apply machine learning to causal questions.