Statistics in planning