The image shows the formula to compute the LOF score.