In an earlier post on growth accounting total factor productivity was calculated as a residual: whatever part of output that cannot be explained by capital and labour is attributed to technology. The drawback of this approach is that the residual contains everything, which the model does not capture – including measurement error and bad luck. A stochastic frontier model takes a different route. It splits the residual into a symmetric noise term and a one-sided term, which measures how far a country produces below the maximum output that is attainable with its inputs. This post applies that idea to the countries in the Penn World Table.