The purchasing power parity (PPP) theory compares the average costs of goods and services between countries using exchange rates. PPPs are useful for inter-country comparisons of GDP in real terms and economic data expressed in national currencies. PPPs are calculated at the product group level by comparing consumption baskets, then aggregated to GDP levels using weights. PPP exchange rates are meant to converge with actual exchange rates over the long run, though various factors can cause short-term deviations. PPPs are useful for output and productivity comparisons, while market exchange rates are better for trade-related analyses.