Privacy preserving statistics in the smart grid