官术网_书友最值得收藏!

Median

Median is a little bit different. The way you compute the median of the dataset is by sorting all the values (in either ascending or descending order), and taking the one that ends up in the middle.

So, for example, let's use the same dataset of children in my neighborhood

0, 2, 3, 2, 1, 0, 0, 2, 0

I would sort it numerically, and I can take the number that's slap dab in the middle of the data, which turns out to be 1.

0, 0, 0, 0, 1, 2, 2, 2, 3

Again, all I do is take the data, sort it numerically, and take the center point.

If you have an even number of data points, then the median might actually fall in between two data points. It wouldn't be clear which one is actually the middle. In that case, all you do is, take the average of the two that do fall in the middle and consider that number as the median.
主站蜘蛛池模板: 怀宁县| 宿州市| 加查县| 达日县| 五原县| 新田县| 滨州市| 郑州市| 福鼎市| 尉犁县| 邵武市| 镇宁| 榆树市| 玛曲县| 忻城县| 包头市| 阳春市| 呼玛县| 丘北县| 浮梁县| 贵港市| 石林| 休宁县| 赤壁市| 错那县| 葵青区| 桃江县| 安乡县| 祁东县| 林周县| 从江县| 多伦县| 尚义县| 平阴县| 都江堰市| 和田县| 通道| 嘉祥县| 遂宁市| 从江县| 天峨县|