The nonparametric Bayesian inference approach to using the finite mixture distributions for modelling data suspected of the containing distinct groups of observations; this approach does not need the number of mixture components to be known in before. The basic idea is that the Dirichlet procedure induces a prior distribution over the partitions of the data which can then be combined with the prior distribution over parameters and chance. The distribution over partitions can be generated incrementally using Chinese restaurant procedure.