Notes - Matwa - F2P Formulas
Chapter 1: Statistika
Rata-Rata (Mean)
For ungrouped data, the mean is simply the sum of all elements divided by the number of elements.
For grouped data, the mean is the sum of all groups' frequencies multiplied by their midpoints divided by the sum of the frequencies (how many data points there are)
Median, Kuartil, Desil, etc.
The median is the middle element. Arrange data in ascending order first. For ungrouped data, use the first option if is odd, and the second if it's even.
For the percentile, decile, and quartile, use the above formulae. If the index of is a fraction, just interpolate between the values. For example, if I get , then the answer would be
For grouped datasets, the formula is more complicated. First, you need to find the class/group that the value belongs to. You can find the index of said value via the part. Then, simply plug in the lower bound of the class, the cumulative frequency of the class before the class containing the target value, the frequency of the found class, and the width of the class.
If you're confused, let's have an example. Let's say the median is at value , and the cumulative frequency sum before the class is . This means the values is at number in the class. Divide that by to find the "7 out of how many values", then multiply by and add by to get the value.
One caveat to the formulae is that the base formula only works for continuous classes, for example . For non-continuous classes like , simply add/subtract to either end of the class, for the class that means would be and would be