In the the last lesson we actually computed the histogram, meaning we looped through all 2000 data points and saw how many times each would fall into a given bin.
In this lesson, let's plot the histogram so we can get a good visual look at the distribution of the numbers in the data set.
Now you try. Choose some number of bins and see how the counts in each bin comes out.
Type your code here:
See your results here:
In part 6, we make up an x-axis for our plot, which is the average of a given bin's boundaries. The actual plot will appear below this text-box.
What do you see? Does each number in the data set appear equally often any other? (No.) Is one data point dominant over the rest (No.) You get a bell shaped in the distribution of numbers! (This is also called a "normal" of "Gaussian" distribution.)
Do you see how stopping your analysis at the max, min, and average is a bit premature?
Share your code
Show a friend, family member, or teacher what you've done!