This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Histogram

Histogram[{x1, x2, ...}]
generates a histogram of the univariate data {x1, x2, ...}.
Histogram[{f1, f2, ...}, FrequencyData->True]
generates a histogram of the univariate frequency data {f1, f2, ...}, where fi is the frequency with which the original data occurs in category i.
  • The width of each bar in the histogram is proportional to the width of the interval defining the respective category.
  • The area of each bar in the histogram is proportional to the frequency with which the data falls in that category.
  • The following options can be given:
HistogramRangelower and upper limits of points
HistogramCategoriesspecifies categories
Needs["Histograms`"]
Histogram of 1000 normally distributed random numbers:
In[2]:=
Click for copyable input
Out[2]=
 
Histogram of 1000 uniformly distributed random numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Histogram from a list of frequencies:
In[1]:=
Click for copyable input
Out[1]=