What Are Lightness Illusions and Why Do We See Them?
Figure 5
Conditional Probability Distribution of Reflectance Given Past Experience and a Particular Stimulus as Context
A maximum-likelihood estimation allows the observer to predict the target reflectance and will be correct (approximately) most of the time. If the true reflectance actually lies in a low-likelihood tail of the distribution, then the resulting percept is an illusion.