中位数即一个数列或一列数的“中间的数”。当你找一列含奇数个数的数列的中位数的时候,是很容易的。找含偶数个数的数列中位数会更难一点。请读下文来了解具体方法。
步骤
方法 1 的 2:
找含奇数个数的数列的中位数
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/96\/Find-the-Median-of-a-Set-of-Numbers-Step-1-Version-2.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-1-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/96\/Find-the-Median-of-a-Set-of-Numbers-Step-1-Version-2.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-1-Version-2.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
将数列从小到大排序。如果它们是杂乱无章的,请将它们排序,从最小的数开始,以最大的数结束。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0b\/Find-the-Median-of-a-Set-of-Numbers-Step-2-Version-2.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-2-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0b\/Find-the-Median-of-a-Set-of-Numbers-Step-2-Version-2.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-2-Version-2.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
找到完全在最中间的那个数。这表明,中位数的前边和后边有同样多的数字。数清楚,确保是对的。
- 3前面有两个数,后面也有两个数。因此3就是完全在中间的那个数。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/a2\/Find-the-Median-of-a-Set-of-Numbers-Step-3-Version-2.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-3-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/a2\/Find-the-Median-of-a-Set-of-Numbers-Step-3-Version-2.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-3-Version-2.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
完成。奇数数列的中位数总是在这个数列本身里的一个数。从来不会是没有在这个数列中出现的数。
方法 2 的 2:
找偶数个数的数列的中位数
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/5\/5a\/Find-the-Median-of-a-Set-of-Numbers-Step-4-Version-2.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-4-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/5\/5a\/Find-the-Median-of-a-Set-of-Numbers-Step-4-Version-2.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-4-Version-2.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
将数列从小到大排序。同样的,使用跟方法一相同的步骤。一个含偶数个数的数列将会有两个数在中间。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/07\/Find-the-Median-of-a-Set-of-Numbers-Step-5.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/07\/Find-the-Median-of-a-Set-of-Numbers-Step-5.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-5.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
算出中间两个数的平均数。2和3都在中间,所以你需要将它们加起来再除以2.算平均数的公式是(两个数的和)÷ 2
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0f\/Find-the-Median-of-a-Set-of-Numbers-Step-6.jpg\/v4-460px-Find-the-Median-of-a-Set-of-Numbers-Step-6.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0f\/Find-the-Median-of-a-Set-of-Numbers-Step-6.jpg\/v4-703px-Find-the-Median-of-a-Set-of-Numbers-Step-6.jpg","smallWidth":460,"smallHeight":366,"bigWidth":704,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
完成。一列含偶数个数的数列中位数不需要是数列中的一个数。