Codes for simulation studies to examine the performance of the EM algorithm and its modifications Classification EM and Stochastic EM for Gaussian mixture and a mixture of Markov chains.