Statistics Examples
77 , 33 , 77 , 22 , 33 , 77 , 99 , 00 , 11
Step 1
The number of classes can be estimated using the rounded output of Sturges' rule, N=1+3.322log(n)N=1+3.322log(n), where NN is the number of classes and nn is the number of items in the data set.
1+3.322log(6)=3.585018451+3.322log(6)=3.58501845
Step 2
Select 44 classes for this example.
44
Step 3
Find the data range by subtracting the minimum data value from the maximum data value. In this case, the data range is 9-0=99−0=9.
99
Step 4
Find the class width by dividing the data range by the desired number of groups. In this case, 94=2.2594=2.25.
2.252.25
Step 5
Round 2.252.25 up to the nearest whole number. This will be the size of each group.
33
Step 6
Start with 00 and create 44 groups of size 33.
ClassClassBoundariesFrequency0-23-56-89-11ClassClassBoundariesFrequency0−23−56−89−11
Step 7
Determine the class boundaries by subtracting 0.50.5 from the lower class limit and by adding 0.50.5 to the upper class limit.
ClassClassBoundariesFrequency0-2-0.5-2.53-52.5-5.56-85.5-8.59-118.5-11.5ClassClassBoundariesFrequency0−2−0.5−2.53−52.5−5.56−85.5−8.59−118.5−11.5
Step 8
Draw a tally mark next to each class for each value that is contained within that class.
ClassClassBoundariesFrequency0-2-0.5-2.5|||3-52.5-5.5||6-85.5-8.5|||9-118.5-11.5|ClassClassBoundariesFrequency0−2−0.5−2.5|||3−52.5−5.5||6−85.5−8.5|||9−118.5−11.5|
Step 9
Count the tally marks to determine the frequency of each class.
ClassClassBoundariesFrequency0-2-0.5-2.533-52.5-5.526-85.5-8.539-118.5-11.51ClassClassBoundariesFrequency0−2−0.5−2.533−52.5−5.526−85.5−8.539−118.5−11.51
Step 10
The relative frequency of a data class is the percentage of data elements in that class. The relative frequency can be calculated using the formula fi=fnfi=fn, where ff is the absolute frequency and nn is the sum of all frequencies.
fi=fnfi=fn
Step 11
nn is the sum of all frequencies. In this case, n=3+2+3+1=9n=3+2+3+1=9.
n=9n=9
Step 12
The relative frequency can be calculated using the formula fi=fnfi=fn.
ClassClassBoundariesFrequency(f)fi0-2-0.5-2.53393-52.5-5.52296-85.5-8.53399-118.5-11.5119ClassClassBoundariesFrequency(f)fi0−2−0.5−2.53393−52.5−5.52296−85.5−8.53399−118.5−11.5119
Step 13
Simplify the relative frequency column.
ClassClassBoundariesFrequency(f)fi0-2-0.5-2.530.‾33-52.5-5.520.‾26-85.5-8.530.‾39-118.5-11.510.‾1
Step 14
Multiply every relative frequency by 100 to get the percentage frequency.
ClassClassBoundariesFrequency(f)fiPercent0-2-0.5-2.530.‾30.‾3⋅100%3-52.5-5.520.‾20.‾2⋅100%6-85.5-8.530.‾30.‾3⋅100%9-118.5-11.510.‾10.‾1⋅100%
Step 15
Simplify the Percentage column.
ClassClassBoundariesFrequency(f)fiPercent0-2-0.5-2.530.‾333.‾3%3-52.5-5.520.‾222.‾2%6-85.5-8.530.‾333.‾3%9-118.5-11.510.‾111.‾1%