A histogram to show the quantity of items purchased by customers is shown in the picture below.
In this scenario and exercise, you are required to complete a frequency table and create a histogram to show the data distribution. First of all, we would determine the midpoint, absolute frequency, relative frequency, and cumulative frequency;
Class width Midpoint Absolute frequency Rel. frequency
0 - 5 2.5 3 0.214286
5 - 10 7.5 3 0.214286
10 - 15 12.5 7 0.5
15 - 20 17.5 1 0.071429
Mathematically, the relative frequency of a data set can be calculated by using this formula:
Relative frequency = absolute frequency/total frequency × 100
Relative frequency = 3/14 × 100 = 0.214286
Relative frequency = 3/14 × 100 = 0.214286
Relative frequency = 7/14 × 100 = 0.5
Relative frequency = 1/14 × 100 = 0.071429
For the cumulative frequency, we have:
0.214286
0.214286 + 0.214286 = 0.428572
0.428572 + 0.5 = 0.928572
0.928572 + 0.071429 = 1.
In conclusion, the y-axis of the histogram would be labeled number of customers while the x-axis would be labeled number of items purchased.