A Derivations of Variational Inference and ELBO A.1 Derivation of optimal q ()