Get probability of parameter given new data

Thanks for your answer.
Indeed, my question was not crystal clear:

  • I am trying to figure out option 2 : given a new data point y, how to compute the probability that it belongs to component 1 or 2.