I have a binomial distribution $$P(Y=1)=q$$ and a a conditional distribution $P(x|y=0)=Normal(0,1)$, $P(x|y=1)=Normal(0,\sigma^2)$
I'm trying to determine the posterior mode $$arg\ max_{y}P(y|x)$$ as a thresholding rule so I think I need to set the two piecewise parts of $P(x|y)P(y)$ equal to each other and solve for $x$.
I'm getting something like $$2x^2\sigma^2+ln(\sigma^2)-2ln(q) <> x^2-2ln(1-q)$$
So am I thinking about this correctly that I should just solve for $x$ here or am I misunderstanding?