【離散隨機變量、期望值和方差(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 variable X 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)]².

用 AI 逐步解離散隨機變量:期望值和方差題目 Solve it with AI

DSE 數學 AI 導師 · DSE Math AI Tutor

例題 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)
↑ 返回頁頂 Back to top

離散隨機變量:期望值和方差例題詳解 Worked Examples

例題 1 Example 1:由概率分佈表求期望值及方差 Expectation and variance from a table

X 取值 0、1、2、3,概率分別為 0.1、0.3、0.4、0.2。求 E(X)、Var(X)、E(3X + 2) 及 Var(3X + 2)。X takes the values 0, 1, 2, 3 with probabilities 0.1, 0.3, 0.4, 0.2. Find E(X), Var(X), E(3X + 2) and Var(3X + 2).

  1. E(X) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2) = 1.7
  2. E(X²) = 0(0.1) + 1(0.3) + 4(0.4) + 9(0.2) = 3.7
  3. Var(X) = 3.7 − 1.7² = 0.81
  4. E(3X + 2) = 3(1.7) + 2 = 7.1
  5. Var(3X + 2) = 3² × 0.81 = 7.29

答案: Answer: E(X) = 1.7, Var(X) = 0.81, E(3X + 2) = 7.1, Var(3X + 2) = 7.29

例題 2 Example 2:求概率分佈中的未知常數 Finding an unknown constant in a distribution

X 的概率函數為 P(X = x) = kx,其中 x = 1、2、3、4。求 k 及 E(X)。The probability function of X is P(X = x) = kx for x = 1, 2, 3, 4. Find k and E(X).

  1. 概率之和為 1:k(1 + 2 + 3 + 4) = 1The probabilities add up to 1: k(1 + 2 + 3 + 4) = 1
  2. k = 0.1
  3. E(X) = 0.1(1² + 2² + 3² + 4²) = 0.1 × 30 = 3

答案: Answer: k = 0.1, E(X) = 3

↑ 返回頁頂 Back to top

💡 應試陷阱與秘訣 Exam Traps & Secrets

⚠️ 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.
↑ 返回頁頂 Back to top

✏️ 自我測試:互動練習 Self-Test: Interactive Practice

溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。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.
(線性變換 Linear change)若 E(X) = 4 及 Var(X) = 2.5,求 E(2X − 3) 及 Var(2X − 3)。If E(X) = 4 and Var(X) = 2.5, find E(2X − 3) and Var(2X − 3).
(均勻分佈 Uniform distribution)擲一枚公平骰子,設 X 為擲得的點數。求 E(X) 及 Var(X)。A fair die is thrown. Let X be the score. Find E(X) and Var(X).
↑ 返回頁頂 Back to top

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

二項分佈 The Binomial Distribution泊松分佈 The Poisson Distribution條件概率和貝葉斯定理 Conditional Probability and Bayes’ TheoremDSE M1 全部課題 DSE M1: all topicsDSE M1 公式表 DSE M1 formula sheetM1 與 M2 的分別 M1 vs M2DSE M2 筆記 DSE M2 notesHKDSE 數學全部課題 HKDSE Math: all topics
離散隨機變量:期望值和方差 DSE 練習題 Try a DSE Practice Question