We will embed this function in a posterior predictive check and use it to evaluate and visualize topic models in new ways.
we develop discrepancy functions for latent Dirichlet allocation (the simplest topic model) that measure how well its statistical assumptions about the topics are matched in the observed corpus and inferred topics.