Statistics for Chemical and biological phosphorus removal in the activated sludge process