Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Histogram – basics
4. Create a histogram of daily users
More on histograms

Instruction

It's your turn to construct a histogram on your own.

You will prepare a histogram of daily users for websites in the information category. If you look at the Datasets tab, you will see that our ten information websites have the following numbers in the user column:

1000,2000,3000,4000,5000,6000,7000,8000,9000,10000 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000

To create a table the histogram is based on you have to compute the ends of each bin. The bottom bin has to start below or at the minimum of the dataset. The top bin has to end above the maximum of the dataset. For this dataset:

2,3,5,7,11,13,17,19,22 2, 3, 5, 7, 11, 13, 17, 19, 22
the bottom bin can start at 2, and the top bin can end at 23.

There are nine elements in our dataset, so we can create 3 equal-width bins. The width of each bin is the difference between the end of the top bin and the beginning of the bottom bin, divided by the number of bins. Using our example above, this would be: (232)/3=21/3=7 (23-2)/3=21/3=7 . The intervals for the histogram, expressed in interval notation, are: [2,2+7)=[2,9)[2, 2+7) = [2,9), [9,9+7)=[9,16)[9, 9+7) = [9,16), [16,16+7)=[16,23)[16, 16+7) = [16,23). Finally, the table for the histogram looks like this:

Bin Count Values
[2,9) 4 2, 3, 5, 7
[9; 16) 2 11, 13
[16; 23) 3 17, 19, 22
Exercises

Fill in the table for the equal-bin-width histogram for the number of daily visitors in the information category of the Internet Websites dataset shown below:

1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000

Beginning of the interval (closed) End of the interval (open) Count
Hint

Note that the end of the last interval (bin) should be 11000.