Arithmetic mean for grouped data