The relationship between the transition matrix model and the diffusion model