一維資料的樣本統計量
Author: 藍邦偉  老師

95暫綱第4冊第3章

排序後資料為:

樣本統計量

A1 = 4
A2 = 3
A3 = 6
A4 = 5
A5 = 7
A6 = 8
A7 = 9
A8 = 2
A9 = 5
A10 = 7
A11 = NaN
A12 = NaN
A13 = NaN
A14 = NaN
A15 = NaN
A16 = NaN
A17 = NaN
A18 = NaN
A19 = NaN
A20 = NaN
List0: {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20}
List1 = RemoveUndefined(List0)
n = Length(List1)
μ_x = Mean(List1)
MD = Median(List1)
Q_1 = Q1(List1)
Q_3 = Q3(List1)
QD: Q_3 - Q_1
List2 = Sort(List1)
Var: 1.0 / (n - 1.0) * (SigmaXX[List1] - n * μ_x^(2.0))
文字3 = TableText({List2})
文字5: "第一四分位數Q_1=" + Q_1
文字6: "第三四分位數Q_3=" + Q_3
文字7: "四分位差QD=Q_3-Q_1=" + QD
range: Max[List1] - Min[List1]
文字11: "全距R=" + range
文字2: "中位數Me=" + MD
k = SXX(List1)
文字1: "算術平均數:\frac{1}{" + n + " } \sum_{i=1 }^{n } x_i=" + μ_x
文字8: "變異數S²= \frac{ 1 }{" + (n - 1.0) + "} (\sum_{i=1 }^{ n}{x_i}²-" + (μ_x^(2.0)) + ")= " + Var
文字9: "標準差S= \sqrt{ S² } =" + (sqrt(Var))