Iranian Statistical SocietyJournal of the Iranian Statistical Society1726-405721220221201The Construction of Generalized Dirichlet Process Distributions via Polya urn and Gibbs Sampling11113270763810.22034/jirss.2022.707638ENHassan AkellDepartment of Statistics, Faculty of Mathematics & Statistics, University of IsfahanFarkhondeh Alsadat SajadiDepartment of Statistics, Faculty of Mathematics & Statistics, University of IsfahanIraj KazemiDepartment of Statistics, Faculty of Mathematics & Statistics, University of Isfahan0000-0002-8876-9003Journal Article20230215Bayesian nonparametric inference is increasingly demanding in statistical modeling due to incorporating flexible prior processes in complex data analysis. This paper represents the Polya urn scheme for the generalized Dirichlet process (GDP). It utilizes the partition analysis to construct the joint distribution of a random sample from the GDP as a mixture prior distribution of countable components. Using permutation theory, we present the components' weights in a computationally accessible manner to make the resulting joint prior equation applicable. The advantages of our findings include tractable algebraic operations that lead to closed-form equations. The paper recommends the Polya urn Gibbs sampler algorithm, derive full conditional posterior distributions, and as an illustration, implement the algorithm for fitting some popular statistical models in nonparametric Bayesian settings.https://jirss.irstat.ir/article_707638_7022024c11e622948dcfe492e3991e75.pdf