Is there a general law, or rule of thumb, or rationale, when to use median and when average?
Although I know the difference and how they are computed, when I try to translate to simple English I would say in both cases that they both are a value that justly and fairly represents a big group of values of a certain category.
Examples:
- Grades across different subjects for a single student.
- Grades in one subject across students in one class.
- Time to close a ticket per worker of a support desk.
- Jail time given by a judge for a certain crime.
- Lap time in a 10 laps run for a certain runner.
- Monthly income per household in a given neighborhood.
So what should I use in each case above? And what is the general rule. And as a side question, are there other types of aggregate functions other than median and average that relate to this?
I would agree with you in that both are significant when it comes to analyzing data. One thing you could keep in mind is that the mean of a data set can be easily affected by outliers. For example, if you have a skewed distribution, the mean of your data might not accurately represent the "center" of your data while a median will generally do better (in this case).