ISE/SYS 5517 — Week 1 Lecture 3

Combinatorics (Counting) — 课程总结、专业词汇中英对照、公式讲解
本讲核心:
Combinatorics 用于“数一共有多少种可能结果”,从而为概率计算提供分子和分母。

1. 为什么需要 Combinatorics

课件继续使用 Craps 两骰子问题。求首轮获胜概率时,需要:

  1. 定义 Random Variable;
  2. 找出满足获胜条件的 Events;
  3. 建立所有 mutually exclusive Events 构成的 Sample Space;
  4. 计算每个集合的 cardinality。

如果各结果等可能,则:

\[ P(A)=\frac{|A|}{|S|} \]

2. Product Rule for k-tuples

如果一个 \(k\)-tuple 的第 \(i\) 个位置有 \(n_i\) 种可能,则全部组合数为:

\[ \boxed{ N=\prod_{i=1}^{k}n_i } \]

例如掷两个骰子,每个骰子各有 6 个面:

\[ |S|=6\times 6=36 \]

这里的 Outcome 是有序二元组:

\[ (d_1,d_2) \]

3. With Replacement vs Without Replacement

With Replacement — 有放回

每次试验后,下一次可选集合不变。例如掷骰子:

\[ 6\times6\times\cdots \]

Without Replacement — 无放回

每次选择后,可选集合减少。例如发牌:

\[ 52\times51\times50\times\cdots \]
判断 replacement 的关键:
下一次选择时,样本空间是否因上一次选择而改变?

4. Factorial — 阶乘

\[ n!=n(n-1)(n-2)\cdots2\cdot1 \]

并定义:

\[ 0!=1 \]

5. Permutations — 排列

当:

排列数:

\[ \boxed{ P(n,k)=\frac{n!}{(n-k)!} } \]

也常记为:

\[ {}_nP_k=\frac{n!}{(n-k)!} \]

直观理解:

\[ n(n-1)(n-2)\cdots(n-k+1) \]

6. 52 张牌中选 5 张:为什么不能直接用排列

按 Product Rule:

\[ 52\times51\times50\times49\times48 = \frac{52!}{47!} \]

但这个结果把同一组 5 张牌的不同顺序当成不同结果,因此发生了 overcounting。

同一组 5 张牌共有:

\[ 5! \]

种排列,因此需要再除以 \(5!\)。

7. Combinations — 组合

当:

\[ \boxed{ \binom{n}{k} = \frac{n!}{k!(n-k)!} } \]

52 张牌中任取 5 张:

\[ \binom{52}{5} = \frac{52!}{5!\,47!} = 2,598,960 \]

8. Permutation vs Combination

问题PermutationCombination
Order matters?YesNo
中文排列组合
无放回公式\(\frac{n!}{(n-k)!}\)\(\frac{n!}{k!(n-k)!}\)
最关键判断:
ABC 和 CBA 算不算两个不同结果?
算两个 → Permutation;算一个 → Combination。

9. With Replacement + Order Matters

如果每次选完都放回,而且顺序重要:

\[ \boxed{ n^k } \]

因为每个位置始终有 \(n\) 种选择。

10. With Replacement + Order Does Not Matter

课件给出关系:

\[ \boxed{ \binom{n+k-1}{k} } \]

这等价于从 \(n+k-1\) 个位置中选择 \(k\) 个。

11. 四种情况总结

Without ReplacementWith Replacement
Permutation
Order matters
\(\frac{n!}{(n-k)!}\)\(n^k\)
Combination
Order does not matter
\(\binom{n}{k}\)\(\binom{n+k-1}{k}\)

12. 两骰子 Craps 的 counting 思路

两个骰子的完整 Sample Space:

\[ |S|=6\times6=36 \]

首轮赢的条件是总和为 7 或 11。总和 7 有 6 种:

\[ (1,6),(2,5),(3,4),(4,3),(5,2),(6,1) \]

总和 11 有 2 种:

\[ (5,6),(6,5) \]

因此:

\[ |W|=6+2=8 \]

若 36 个结果等可能:

\[ P(W)=\frac{8}{36}=\frac{2}{9} \]

13. 专业词汇中英对照

English中文
Combinatorics组合数学 / 计数
Counting计数
Tuple元组
k-tuplek 元组
Product Rule乘法计数原理
With Replacement有放回
Without Replacement无放回
Permutation排列
Combination组合
Factorial阶乘
Order Matters顺序重要
Order Does Not Matter顺序不重要
Overcounting重复计数 / 过度计数
Cardinality基数 / 元素数量

14. 公式总表

场景公式
Product Rule\(\prod_{i=1}^{k}n_i\)
Permutation, no replacement\(\frac{n!}{(n-k)!}\)
Combination, no replacement\(\binom nk=\frac{n!}{k!(n-k)!}\)
Permutation, with replacement\(n^k\)
Combination, with replacement\(\binom{n+k-1}{k}\)

15. 考试重点

  1. 先判断:order 是否重要。
  2. 再判断:with replacement 还是 without replacement。
  3. 会从 Product Rule 推到 permutation。
  4. 理解 combination 为什么比 permutation 多除一个 \(k!\)。
  5. 熟记四种 counting 情况的公式。
  6. 能用 cardinality 求等概率事件的概率。

Source: ISE/SYS 5517 Statistical Methods in Engineering, Christopher Slon, PhD. 本笔记依据上传课件整理。