function to calculate median
Average is not a good substitute as outliers (too high or too low) distort the information desired. Very useful for measuring median income, median rent, ... for a large population.
2
votes
![](https://secure.gravatar.com/avatar/a4e4b8504a270b6a44f53df991ef4d7f?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)