Deriving the equations for DDPM

The equations for DDPM, the original and most popular class of Diffusion models, has some pretty gnarly math behind it. But, it turns out it's not too bad. Let's derive it!



It turns out, you can build an understanding of how to make diffusion models work by working in 2 steps:

If that doesn't make much sense yet, that's fine. We'll go through more of it as we go.