Mean, Median, and Mode Formulas
The mean (average) is the sum of all values divided by the count: x-bar = (sum of x) / n. The median is the exact middle value once the dataset is sorted in ascending order, or the average of the two middle values when the count is even. The mode is the value or values that occur most frequently in the dataset.