Automatic variational inference (ADVI) can be implemented in Stan to automate variational inference for any probabilistic model specified in Stan. ADVI determines an appropriate variational family and optimizes the variational objective without any input from the user beyond providing the model and data. ADVI handles nonconjugate models by automatically deriving an inference algorithm. It scales t