I'm taking a course on probability and confused about single variable mass and joint mass. Here is a quote of the video, I'm learning from:
Using the joint mass to calculate the mass of a single random variable. For instance, consider two random variables $X$ and $Y$. If we sum the values of the joint mass $p_{X,Y}(x,y)$ over all possible $y$ values,
$$ \sum_y p_{X,Y}(x,y) = \sum_y P(X=x, Y=y) \\= P(X=x, Y=\text{anything}) = P(X=x) = p_X(x) $$
It's stated that the mass of a single variable, $X$, is simply the sum of the joint mass over all possible values of $Y$.
I'm not really following the logic of this. Specifically, where does the $Y=\text{anything}$ come from? And why does the $Y$ term disappear to leave just the mass of $X$?
I'm a beginner to the topic, so any simple explanation would be appreciated.