freeCodeCamp/guide/chinese/mathematics/mean-median-mode-and-range/index.md

60 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Mean Median Mode and Range
localeTitle: 平均中位模式和范围
---
## 平均值,中位数,模式和范围
统计学家和数学家使用均值,中位数,模式和范围来学习有关一组数字的信息。
```
Example set:
5, -4, 11, 5, 5, 20, 8.5, 11
```
要计算集合的**范围** 请取最高数字表示为x和最低数字表示为y然后计算xy。范围将指示数字的分布情况。
```
Smallest value: -4
Largest value: 20
20 - (-4) = 24
The range is 24
```
要计算**平均值** ,请将所有数字相加并除以组中元素的总数。这是讨论'平均'时通常所说的。
```
5 + (-4) + 11 + 5 + 5 + 20 + 8.5 + 11 = 61.5
Sum: 61.5
Count: 8
61.5 / 8 = 7.6875
The mean is 7.6875
```
要计算**模式** 请查找最常重复的数字。例如对于数字1,2,3,4,5,6,7,7,7模式将为7因为该组中有三个7这高于任何其他数字的数量。
```
Put the set in order so it's easier to see how
many of each value there are:
-4, 5, 5, 5, 8.5, 11, 11, 20
5 appears three times, 11 appears twice and
everything else appears once.
The mode is 5
```
要计算中**位数** 请按递增顺序排列所有数字并将最高和最低数字交叉直到只剩下一个或两个数字。如果剩下一个数字则该数字是中位数。如果有两个数字则添加两个数字并除以2得到中位数。例如在1,2,3,4,5,6,7,7,7中中位数为5。
```
First, put the set in order:
-4, 5, 5, 5, 8.5, 11, 11, 20
The third 5 and 8.5 are the middle values...
(5 + 8.5) / 2 = 6.75
The median is 6.75
```