Files
oam/knowledge base/mean, median and mode.md

3.0 KiB

Mean, median and mode

Term Definition How to find Example
Mean The average value of a set
  1. Add up all values in the set to get the total sum of all values
  2. Count the number of values in the set
  3. Divide the total sum by the count
Given the {1, 5, 4, 7} set, its mean is (1+5+4+7)/4 = 17/4 = 4.25
Median The value in a set which divides the set's upper half from the set's lower half
  1. Arrange all values in the set from the lowest to the highest
  2. If the number of values is odd, the median is the value in the middle of the ordered set
  3. If the number of values is even, the median is the mean of the 2 values in the middle of the ordered set

Given the {1, 5, 4, 7} set, its median is {1,4,5,7} = (4+5)/2 = 4.5

Given the {1, 5, 4, 7, 11} set, its median is {1,4,5,7,11} = 5

Mode The value(s) in a set that occurs the highest number of times
  1. Count the amount of repetitions (frequency of appearance) of each value in the set
  2. The value (or values if more than one) that appear most is (are) the mode of the set

Given the {1, 1, 4, 5, 7, 7, 2, 2, 2} set, its mode is 2

Given the {2, 3, 4, 6, 3, 7, 2, 1} set, its mode is 2 or 3

Sources