How is the arithmetic mean calculated?
A. By finding the middle value in an ordered dataset
B. By summing all values and dividing by the number of values
C. By identifying the most frequently occurring value
D. By using the sum of squared differences from the mean