A new model shows that a range of visual illusions in humans can be explained as rational inferences about the odds that a motion stimulus on the retina results from a particular real-world source.