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

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.
主站蜘蛛池模板: 调兵山市| 淳安县| 民乐县| 绩溪县| 湛江市| 军事| 天峻县| 攀枝花市| 赤峰市| 册亨县| 双辽市| 石首市| 奉节县| 宾川县| 谷城县| 镇原县| 广宗县| 洛扎县| 郴州市| 志丹县| 镇安县| 聂荣县| 荆门市| 四子王旗| 和静县| 江北区| 镇沅| 年辖:市辖区| 沈阳市| 雅安市| 宝丰县| 肇源县| 浪卡子县| 平泉县| 明水县| 玉门市| 扎鲁特旗| 天镇县| 江油市| 思茅市| 桓仁|