Probability distribution of steady-state errors and adaptation over networks