A theoretical framework is developed to link the density profiles in the Scrape Off Layer (SOL) with the fluctuations (filaments) that generate them. The framework is based on the dynamics of independent filaments and their statistical behaviour and can be used to rigorously understand the mechanisms that lead to attending and broadening of the SOL profies as well as the radial increase of the relative fluctuation amplitude.