I have a large dataset with a feature y which is dependent in part on features x1 and x2. All features are noisy, and y is also dependent on other parameters not captured in the dataset. I would like to detect when y is taking an abnormal value given x1 and x2. I am implementing my analysis in Python, mostly using sklearn. Is there an easy way to use unsupervised anomaly detection (isolation forest, for example) to do this, or is there another relatively simple obvious approach?
There is a similar previous question here: How to determine the abnormality of a specific variable by taking into account all the other variables in the data? but without a clear answer, and I'm not certain from the wording that the author was asking about exactly the same situation.
Thanks in advance!