The posterior
$$ P(M|D) = \frac{P(D|M) P(M)}{P(D)} $$
I think in my first class it said that $P(D)$ is a fixed thing, so it is permissible to ignore it for optimization purpose and use
$$ P(M|D) \propto P(D|M) P(M) $$
and I accepted that, it made sense then.
But finally thinking about it, this is effectively saying that $$ P(M|D) \propto P(M,D) $$ which seems just weird. The $P(M|D)$ is a single-variable probability, whereas the $P(M,D)$ is a joint, so not even the dimensionality matches. Is it because we think of this applying only to a single datapoint, so think of $P(M|D)$ and the other factors as numbers rather than as distribution-like functions?
Edit:
To expain the question further, ignore probability and imagine two generic functions $f(x)$ and $g(x,y)$. If we see an equation $$ f(x) \propto g(x,y) $$ I think it would seem like nonsense, similar to adding my height and weight together to get a single number "86".
However in the probability case, a good comment below reminded that in $$ p(m|d) = \frac{p(m,d)}{p(d)} $$ the fraction on the right is meaningful, although it involves a 2-variable function on the top, and a 1-variable function on the bottom.
It would make sense to me if we could say that in this case, $d$ is a constant, so $p(m,d)$ is really a function of just one variable, and similarly on the left, $p(m|d)$ is a probability distribution with $m$ varying and $d$ fixed. That way there is just one variable, $m$, on both sides. But is that the right way to think? If not, then what?
\propto
[not\sim
since $\sim$ is used for connection from rv to distribution] and its meaning. $\endgroup$