Variational methods for geometric statistical inference