Abstract The LDA model is a total probability generation model for analyzing a large number of documents. It extends PLSA, another text analysis model. In this model, each document is treated as a topic hybrid model, and the topic’s proportional prior distribution is a Dirichlet distribution. The LDA model does not reflect complex dependencies between underlying topics. Based on LDA, this paper introduces a new topic generation model, DMA (Dirichlet Mixture Allocation), which models document collections more accurately than LDA when documents are obtained in multiple classes. In this paper, we build a probabilistic topic model of DMA, use the method of variational inference to approximate each parameter of the model, study the model, and finally solve the estimation of each parameter.