An explanation of the Dunning–Kruger effect is provided which does not require any psychological explanation, because it is derived as a statistical artifact. This is achieved by specifying a simple statistical model which explicitly takes the boundary constraints into account. The model fits the data almost perfectly.JEL ClassificationA22; C24; C91; D84; D91; I21.