Statistics 简明教程
Statistics - Histograms
直方图是数值数据分布的图形表示。它是连续变量(定量变量)的概率分布的估计值。
A histogram is a graphical representation of the distribution of numerical data. It is an estimate of the probability distribution of a continuous variable (quantitative variable).
Problem Statement:
Problem Statement:
每个月记录一只狗的体重增加多少,并得到以下结果:
Every month one measure the amount of weight one’s dog has picked up and get these outcomes:
0.5 |
0.5 |
0.3 |
-0.2 |
1.6 |
0 |
0.1 |
0.1 |
0.6 |
0.4 |
绘制直方图,显示这只狗的发育情况。
Draw the histogram demonstrating how much is that dog developing.
Solution:
Solution:
每月的发育从 -0.2 (表示这个月瘦了)到 1.6。将它们从最低增重到最高增重排序。
monthly development vary from -0.2 (the fox lost weight that month) to 1.6. Putting them in order from lowest to highest weight gain.
-0.2 |
0 |
0.1 |
0.1 |
0.3 |
0.4 |
0.5 |
0.5 |
0.6 |
1.6 |
我们决定将结果按 0.5 分组:
We decide to put the results into groups of 0.5:
-
The -0.5 to just below 0 range.
-
The 0 to just below 0.5 range, etc.
以下是结果:
And here is the result:

1 到略低于 1.5 没有值,但我们仍然显示该空间。
There are no values from 1 to just below 1.5, but we still show the space.