A spread decomposition splits the effective spread into an adverse-selection component and the rest, the order-processing and inventory-holding costs of chapter 4, which the provider keeps once the price has settled. Methods differ in what they observe (trades only, trades and quotes, daily bars) and in the model that lets them tell the parts apart.
mx_decomp.by_horizon.