Frequency Distribution

Author

Eric W. Weisstein
January 14, 2011

This notebook downloaded from http://mathworld.wolfram.com/notebooks/Statistics/FrequencyDistribution.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/FrequencyDistribution.html.

©2010 Wolfram Research, Inc. except for portions noted otherwise

Data

SeedRandom[1];

data=RandomReal[NormalDistribution[50,15],100];
bins=BinCounts[data,{0,100,10}];

Through[{Max,Min}[data]]

Frequency Polygon

Transpose[{Range[5,95,10],bins}]

cum=Table[Tr[Take[bins,i]],{i,10}];

ListPlot[Transpose[{Range[5,95,10],bins}],PlotJoined->True,Axes->False,
Frame->True,FrameLabel->{"class marks","frequency"},
FrameTicks->{Automatic,Automatic,None,None},
FrameStyle->{{},{{}},{GrayLevel[1]},{GrayLevel[1]}}]

Histogram

V5

BarChart[bins,PlotRange->All,BarLabels->Range[5,95,10]]

V6

bins={0,1,8,18,22,24,19,5,2,1};

BarChart[bins,ChartStyle->Red,ChartLabels->Range[5,95,10],PerformanceGoal->"Speed"]