Say $p_X$ and $p_Y$ are two probability distributions on a $m$ element set.
Then I see an equality written as,
$$\sqrt{m} \vert \vert p_X - p_Y \vert \vert _2 = \sqrt{ \sum_{k=0}^{m-1} \vert \hat{p_X} (k) - \hat{p_Y} (k)\vert ^2 } $$
Can someone help derive and understand this? I don't know what is the defintion and meaning of these $\hat{p}$ quantities on the right.
What is the meaning of this identity?