Notes - Matwa - F2P Formulas

Chapter 1: Statistika

Rata-Rata (Mean)

x¯=∑(xi)n x bar equals the fraction with numerator the sum of open paren x sub i close paren and denominator n

For ungrouped data, the mean is simply the sum of all elements divided by the number of elements.

x¯=∑(ƒi⋅xi)∑(ƒi) x bar equals the fraction with numerator the sum of open paren f with hook sub i times x sub i close paren and denominator the sum of open paren f with hook sub i close paren

For grouped data, the mean is the sum of all groups' frequencies multiplied by their midpoints xi x sub i divided by the sum of the frequencies (how many data points there are)

Median, Kuartil, Desil, etc.

Median=x(n+1)/2∨xn/2+xn/2+12 Median equals x sub open paren n plus 1 close paren divided by 2 or the fraction with numerator x sub n divided by 2 plus x sub n divided by 2 plus 1 and denominator 2

Pk=x(k/100)⁢(n+1) P sub k equals x sub open paren k divided by 100 close paren times open paren n plus 1 close paren

Dk=x(k/10)⁢(n+1) D sub k equals x sub open paren k divided by 10 close paren times open paren n plus 1 close paren

Qk=x(k/4)⁢(n+1) Q sub k equals x sub open paren k divided by 4 close paren times open paren n plus 1 close paren

The median is the middle element. Arrange data in ascending order first. For ungrouped data, use the first option if n n is odd, and the second if it's even.

For the percentile, decile, and quartile, use the above formulae. If the index of xi x sub i is a fraction, just interpolate between the 2 2 values. For example, if I get x3.3 x sub 3.3, then the answer would be x3+(x4-x3)⋅0.3 x sub 3 plus open paren x sub 4 minus x sub 3 close paren times 0.3

Median=L+N2-Fƒ⋅c Median equals L plus the fraction with numerator N over 2 minus F and denominator f with hook times c

Pk=L+k⁢N100-Fƒ⋅c P sub k equals L plus the fraction with numerator k N over 100 minus F and denominator f with hook times c

Dk=L+k⁢N10-Fƒ⋅c D sub k equals L plus the fraction with numerator k N over 10 minus F and denominator f with hook times c

Qk=L+k⁢N4-Fƒ⋅c Q sub k equals L plus the fraction with numerator k N over 4 minus F and denominator f with hook times c

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 k⁢Nx k N over x part. Then, simply plug in L L the lower bound of the class, F F the cumulative frequency of the class before the class containing the target value, ƒ f with hook the frequency of the found class, and c c the width of the class.

If you're confused, let's have an example. Let's say the median is at value 67 67, and the cumulative frequency sum before the class is 60 60. This means the values is at number 67-60=7 67 minus 60 equals 7 in the class. Divide that by ƒ f with hook to find the "7 out of how many values", then multiply by c c and add by L L to get the value.

One caveat to the formulae is that the base formula only works for continuous classes, for example 1-10,10-20,20-30 1 minus 10 comma 10 minus 20 comma 20 minus 30. For non-continuous classes like 1-9,10-19,20-29 1 minus 9 comma 10 minus 19 comma 20 minus 29, simply add/subtract 0.5 0.5 to either end of the class, for the class 20-29 20 minus 29 that means L L would be 19.5 19.5 and c c would be 10 10