Statistics for Anomaly Detection With Machine Learning In Astronomical Images