Suppose I have two distributions, N(0,1) and N(1,1), and I pick one with half probability.

Then, I take a draw, and observe it is equal to 0.7.

Is there a way to calculate the probability that it was generated by one distribution or the other?

Thanks!