How is the cumulative frequency of a class calculated?
A. By subtracting the lower class limit from the upper class limit.
B. By summing the class frequency and the frequencies of all preceding classes.
C. By dividing the class frequency by the total number of data values.
D. By multiplying the class frequency by the class width.