Introduction to Research Design and Statistics

More on Histograms


To a large extent, how good of a job a histogram does in displaying the shape of a distribution depends on how the data are grouped together. Too few bars and the histogram fails to reflect the shape of the distribution. However, there can also be too many bars, such that, it is like looking at the individual observations.

Here are some examples using the same variable but changing the number of vertical bars.

2 Bins

Histogram

3 Bins

Histogram

5 Bins

Histogram

10 Bins

Histogram

15 Bins

Histogram

20 Bins

Histogram

30 Bins

Histogram

40 Bins

Histogram

50 Bins

Histogram

To some extend kdensity plots can get around the display issues surrounding histograms. Kdensity plots have an unlimited number of very thin bins which are smoothed by averaging over a several adjacent bins.

kdensity write, normal width(4)


Intro Home Page

Phil Ender, 13Oct99