【離散隨機變量、期望值和方差(DSE M1)】Discrete Random Variables, Expectation and Variance (DSE M1)
SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20
離散隨機變量X 取一系列分開的數值,每個數值各有概率,而全部概率之和為 1。它的期望值是 E(X) = Σ x P(X = x),方差是 Var(X) = E(X²) − [E(X)]²。A discrete random variableX takes separate values, each with a probability, and the probabilities add up to 1. Its expectation is E(X) = Σ x P(X = x) and its variance is Var(X) = E(X²) − [E(X)]².
例題 1 的概率分佈棒形圖,虛線標示期望值 E(X) = 1.7。 The distribution of Example 1 as a bar chart, with the expectation E(X) = 1.7 marked by the dashed line. 自己試試 → Try it yourself →
期望值及方差公式 Expectation and Variance Formulas
概率Probabilities0 ≤ P(X = x) ≤ 1, Σ P(X = x) = 1
期望值ExpectationE(X) = Σ x P(X = x)
X 的函數Function of XE[g(X)] = Σ g(x) P(X = x)
方差VarianceVar(X) = E[(X − μ)²] = E(X²) − [E(X)]²
線性變換Linear changeE(aX + b) = aE(X) + b, Var(aX + b) = a²Var(X)
⚠️ Var(aX + b) 用 a²,而 b 會消失 Var(aX + b) uses a², and b disappears加上常數會令每個數值移動相同的距離,所以離散程度不變。乘以 a 會令方差乘以 a²,而不是 a。Adding a constant shifts every value by the same amount, so the spread is unchanged. Multiplying by a multiplies the variance by a², never by a.
⚠️ E(X²) 不等於 [E(X)]² E(X²) is not [E(X)]²應先把數值平方,再乘以概率。在例題 1 中,E(X²) = 3.7,而 [E(X)]² = 2.89;兩者之差就是方差。Square the values first, then weight by the probabilities. In Example 1, E(X²) = 3.7 while [E(X)]² = 2.89; the difference is the variance.
溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.
(E(X) 及 Var(X) E(X) and Var(X))X 取值 1、2、3,概率分別為 0.2、0.5、0.3。求 E(X) 及 Var(X),並以棒形圖顯示該分佈。X takes values 1, 2, 3 with probabilities 0.2, 0.5, 0.3. Find E(X) and Var(X) and show the distribution as a bar chart.
先求 E(X),再把每個數值平方後乘以概率求 E(X²),然後相減:Var(X) = E(X²) − [E(X)]²。
Find E(X), then E(X²) by squaring each value before weighting, and subtract: Var(X) = E(X²) − [E(X)]².
不包括。課程說明訂明隨機變量的和與差,以及聯合概率分佈,均不在要求之內。
No. The curriculum notes state that sums and differences of random variables and joint probability distributions are not required.
它是大量重複試驗後 X 的長期平均值,未必是 X 實際可取的數值:例如這裡 E(X) = 1.7。
It is the long-run average value of X over many repetitions of the experiment. It need not be a value X can actually take: here E(X) = 1.7.