Suppose I have two data samples of the same size N generated from two separate distributions, and a new number is given. How could I find out which distribution this new number is coming from? What should I do if the sample size were different?
My first thought is to compare the empirical probabilities based on these two samples, but I am not quite sure if it is the optimal solution. I am very grateful for any help.