In the book an introduction to statistical learning, the following proportionality is given:
$$ p(\beta|X,Y) \propto f(Y|X,\beta)\,p(\beta|X) $$
however, I'm wondering what the proportionality constant is, and how it can be derived.
In the book an introduction to statistical learning, the following proportionality is given:
$$ p(\beta|X,Y) \propto f(Y|X,\beta)\,p(\beta|X) $$
however, I'm wondering what the proportionality constant is, and how it can be derived.
Just use the definition of conditional probability: $p(A|B)=\frac{p(A,B)}{p(B)}$.
Left-hand side is $p(\beta|X,Y)=\frac{p(X,Y,\beta)}{p(X,Y)}$
Right-hand side is $p(Y|X,\beta)p(\beta|X)=\frac{p(X,Y,\beta)}{p(X,\beta)}\frac{p(X,\beta)}{p(X)}=\frac{p(X,Y,\beta)}{p(X)}$
Comparing both sides, you can see that the constant of proportionality should be $\frac{p(X)}{p(X,Y)}=\frac{1}{p(Y|X)}$