Suppose I have some 'control' samplessample $X$ drawn from some unknown multivariate distribution $F(A,B)$, and I want to test the null hypothesis that a particular 'test' point $x$ was drawn from the same distribution$F$.
Would it be legitimate to fit the PDF for the 'control' sample$F$ using kernel density estimation, then evaluate it at my 'test' point$x$ and take this as my p-value?
Likewise, if I'm interested in the conditional probability $p(x~|~A=a)$, could I basically use the same approach, but just evaluate the PDF conditioned on $A = a$?