EM with a latent shift variable for a product of bernoullis model