This thesis is a quantitative study of the notion of 'market impact' and develops a new quantitative framework to understand the main determinants of execution costs. In the first part, we develop a market-microstructure model in which the market impact of an order is a latent variable that depends on the aggregate activity of the order book, as summarised by the order flow imbalance. The model stems from the observation that at each point in time, the liquidity in the limit order book available for immediate execution is very small, and most of the liquidity remains hidden. We empirically test this model using the Kalman filter and show that it delivers good out-of-sample forecasts. The second part is devoted to the identification o...