Machine Learning Diffusion Models Math