📚 Understanding the Binomial Distribution | 理解二项分布
The binomial distribution is one of the most fundamental discrete probability distributions in statistics. It models the number of successes in a fixed number of independent trials, each with the same probability of success. From quality control in manufacturing to predicting genetic traits, the binomial distribution provides a powerful framework for analysing binary-outcome experiments. In this article, we will explore the conditions that define a binomial setting, the key formula, parameters, and how to compute probabilities efficiently using both analytical methods and a graphing calculator.
二项分布是统计学中最基本的离散概率分布之一。它描述了在固定次数的独立试验中,每次试验成功概率相同的前提下,成功次数的分布。从制造业的质量控制到遗传性状的预测,二项分布为分析只有两种结果的实验提供了强有力的工具。在本文中,我们将探讨定义二项试验的条件、关键公式、参数,以及如何通过解析方法和图形计算器高效计算概率。
1. What is a Binomial Experiment? | 什么是二项试验?
A binomial experiment consists of a sequence of n identical trials, where each trial results in exactly one of two possible outcomes, conventionally labelled "success" and "failure". The probability of success, denoted by p, remains constant from trial to trial, and trials are independent. The random variable X represents the total number of successes observed.
二项试验由一系列n次相同的试验组成,每次试验只有两种可能的互斥结果,通常标记为“成功”和“失败”。成功的概率用p表示,在每次试验中保持不变,且各次试验相互独立。随机变量X表示观察到的成功总次数。
p = 0.5. Another classic example is rolling a die 20 times and recording how many times a '6' appears, then n = 20, p = 1/6.
例如,抛一枚公平硬币10次并计算正面朝上的次数,就是一个二项试验,其中 n = 10,p = 0.5。另一个经典例子是掷骰子20次并记录出现“6”的次数,那么 n = 20,p = 1/6。
2. The Binomial Conditions | 二项分布的条件
For a random variable to follow a binomial distribution, four conditions must be satisfied. These are often remembered by the acronym BINS:
一个随机变量要服从二项分布,必须满足四个条件,通常用首字母缩写BINS来记忆:
- Binary outcomes: each trial results in either success or failure.
- Binary 结果:每次试验的结果是成功或失败。
- Independent trials: the result of one trial does not influence another.
- Iindependent 试验:一次试验的结果不影响其他试验。
- Number of trials fixed: the experiment consists of a predetermined number n of trials.
- Number 固定试验次数:实验由预先确定的n次试验组成。
- Same probability of success: the value of p is constant for every trial.
- Same 成功概率:每次试验的p值保持不变。
In practice, if sampling is done without replacement from a finite population, the independence condition may be violated. However, if the sample size is less than 10% of the population size, we can treat the trials as approximately independent.
在实践中,如果从有限总体中进行不放回抽样,独立性条件可能被破坏。不过,如果样本量小于总体大小的10%,我们可以将试验近似视为独立。
3. Notation and Parameters | 符号与参数
The binomial distribution is completely characterised by two parameters: n (number of trials) and p (probability of success). We write X ~ B(n, p) to indicate that the discrete random variable X has a binomial distribution with parameters n and p.
二项分布完全由两个参数决定:n(试验次数)和p(成功概率)。我们用 X ~ B(n, p) 来表示离散随机变量 X 服从参数为 n 和 p 的二项分布。
rs {0, 1, 2, ..., n}. The probability that X takes a specific value k is denoted P(X = k).
X 的样本空间是整数集合 {0, 1, 2, ..., n}。X 取特定值 k 的概率记作 P(X = k)。
The binomial distribution bridges the gap between basic probability and statistical inference, and in IB Mathematics, it appears in both Analysis and Approaches (AA) and Applications and Interpretation (AI) syllabi, albeit with slightly different emphases.
二项分布在基础概率与统计推断之间架起了桥梁,在IB数学中,它同时出现在分析与方法(AA)和应用与解释(AI)课程中,但侧重点略有不同。
4. The Binomial Probability Formula | 二项概率公式
If X ~ B(n, p), then the probability of obtaining exactly k successes in n trials is given by:
如果 X ~ B(n, p),那么在 n 次试验中获得恰好 k 次成功的概率由下式给出:
P(X = k) = C(n, k) × pᵏ × (1 - p)ⁿ⁻ᵏ, for k = 0, 1, 2, ..., n.
Here, C(n, k) (also written as n choose k) is the binomial coefficient, equal to n! / [k! (n - k)!]. It counts the number of ways to choose k successes out of n trials. The term pᵏ gives the probability of k successes all occurring, and (1 - p)ⁿ⁻ᵏ gives the probability of the remaining n - k trials being failures.
这里,C(n, k) (也写作 n 选 k)是二项式系数,等于 n! / [k! (n - k)!]。它计算从 n 次试验中选出 k 次成功的方式数。项 pᵏ 表示 k 次成功全部发生的概率,而 (1 - p)ⁿ⁻ᵏ 表示剩余 n - k 次试验均为失败的概率。
osses of a fair coin is P(X = 3) = C(5, 3) × (0.5)³ × (0.5)² = 10 × 0.125 × 0.25 = 0.3125.
例如,抛一枚公平硬币5次恰好得到3次正面的概率为 P(X = 3) = C(5, 3) × (0.5)³ × (0.5)² = 10 × 0.125 × 0.25 = 0.3125。
5. Mean and Variance of Binomial Distribution | 二项分布的均值与方差
One of the most convenient properties of the binomial distribution is that its expected value and variance have simple closed-form expressions. If X ~ B(n, p), then:
二项分布最方便的特性之一是其期望值和方差具有简单的闭合表达式。如果 X ~ B(n, p),那么:
E(X) = μ = n × p
Var(X) = σ² = n × p × (1 - p)
s to quickly gauge the centre and spread of the distribution. For instance, in 30 multiple‑ = 0.2 and n = 30. The expected score is 30 × 0.2 = 6, with variance 30 × 0.2 × 0.8 = 4.8.
标准差是方差的平方根,σ = √[n p (1 - p)]。这些公式使我们能够快速掌握分布的中心和离散程度。例如,在30道选择题中,每题有五个选项,一名学生随机猜测,则 p = 0.2, n = 30。期望得分为 30 × 0.2 = 6,方差为 30 × 0.2 × 0.8 = 4.8。
o underpins why the binomial distribution is a natural model when summing independent Bernoulli trials.
线性关系 E(X) = n p 也说明了为何二项分布是独立伯努利试验求和的自然模型。
6. Binomial Coefficient Explained | 二项式系数解释
The binomial coefficient C(n, k) appears in the expansion of (a + b)ⁿ and is pronounced "n choose k". It can be calculated recursively using Pascal's triangle or directly with factorials. In the context of the binomial distribution, C(n, k) counts the distinct sequences of successes and failures that yield exactly k successes.
二项式系数 C(n, k) 出现在 (a + b)ⁿ 的展开式中,读作“n 选 k”。它可以通过帕斯卡三角形递归计算,也可以直接用阶乘求得。在二项分布中,C(n, k) 统计了恰好产生 k 次成功的不同成功与失败序列数。
SSFF, SFSF, SFFS, FSSF, FSFS, FFSS, where S = success and F = failure. Indeed, C(4, 2) = 4!/(2!2!) = 6.
例如,假设 n = 4,k = 2。6种序列为:SSFF、SFSF、SFFS、FSSF、FSFS、FFSS,其中 S 表示成功,F 表示失败。确实,C(4, 2) = 4!/(2!2!) = 6。
on is symmetric because C(n, k) = C(n, n - k) and pᵏ (1-p)ⁿ⁻ᵏ is symmetric around k = n/2.
理解 C(n, k) 的组合意义对于推导概率公式以及理解二项分布为何具有特定形状至关重要。当 p = 0.5 时,分布是对称的,因为 C(n, k) = C(n, n - k),且 pᵏ (1-p)ⁿ⁻ᵏ 关于 k = n/2 对称。
7. Using GDC for Binomial Probabilities | 使用图形计算器计算二项概率
In the IB examination, you are expected to compute binomial probabilities efficiently using a Graphing Display Calculator (GDC). The relevant functions are usually found under the distribution menu, often labelled as binompdf (for exact probability) and binomcdf (for cumulative probability).
在IB考试中,你应能使用图形计算器(GDC)高效计算二项概率。相关函数通常位于分布菜单中,常标记为binompdf(用于精确概率)和binomcdf(用于累积概率)。
For example, to find P(X = 5) when X ~ cess, and the specific value in that order. Always check your manual for the exact syntax.
例如,当 X ~ B(12, 0.4) 时,要求 P(X = 5),则使用 binompdf(12, 0.4, 5)。要求 P(X ≤ 5),则使用 binomcdf(12, 0.4, 5)。有些计算器要求按照试验次数、成功概率和特定值的顺序输入。务必查阅你的计算器手册了解准确语法。
GDC proficiency saves time and reduces arithmetic errors, especially when n is large. However, it is still important to understand the underlying formula for theory questions and for recognising when a situation is binomial.
熟练使用GDC可以节省时间并减少算术错误,尤其当 n 较大时。不过,理解基础公式对于理论题和识别二项情况仍然非常重要。
8. Cumulative Probabilities | 累积概率
Many real-world questions ask for the probability of "x or fewer successes" or "more than k successes" es P(X ≤ k) and can be found using binomcdf on your GDC or by summing exact probabilities:
许多实际问题会问“x次或更少成功”或“超过k次成功”的概率。这需要累积概率。累积分布函数(CDF)给出 P(X ≤ k),可以通过GDC上的 binomcdf 函数或对精确概率求和得到:
P(X ≤ k) = Σ (from i=0 to k) C(n, i) pⁱ (1 - p)ⁿ⁻ⁱ
To find the probability of "greater than k" ust the boundary correctly; a common mistake is to use P(X ≤ k) when P(X < k) is required.
要求“超过k次成功”的概率,则使用补集法则:P(X > k) = 1 - P(X ≤ k)。类似地,P(X ≥ k) = 1 - P(X ≤ k - 1)。正确调整边界至关重要;一个常见错误是在需要 P(X < k) 时却使用了 P(X ≤ k)。
For example, if a manufacturer knows that 5% tested, the probability that more than 2 are defective is P(X > 2) = 1 - P(X ≤ 2), where X ~ B(20, 0.05).
例如,如果某制造商知道5%的灯泡有缺陷,并测试了20只灯泡,则超过2只有缺陷的概率为 P(X > 2) = 1 - P(X ≤ 2),其中 X ~ B(20, 0.05)。
9. Shape of the Binomial Distribution | 二项分布的形状
ution is exactly symmetric. If p < 0.5, the distribution is skewed to the right (positively skewed), meaning the tail extends towards higher values. If p > 0.5, the distribution is skewed to the left (negatively skewed).
二项分布的形状取决于 n 和 p 的取值。当 p = 0.5 时,分布完全对称。若 p < 0.5,分布右偏(正偏态),即尾部向右延伸至高值区。若 p > 0.5,分布左偏(负偏态)。
n leads to the normal approximation to the binomial, which is explored further in the IB HL curriculum.
随着 n 增大,分布变得更接近钟形,并且在 np 和 n(1 - p) 都足够大的条件下(常用经验法则是 np ≥ 5 且 n(1 - p) ≥ 5),二项分布可用正态分布近似。这一联系引出了二项分布的正态近似,在IB高级课程中会进一步探讨。
Visualising the probability histogram helps students understand the effect of changing p: the peak shifts towards n p, and the spread is wider when p is close to 0.5 for a given n.
可视化概率直方图有助于学生理解改变 p 带来的影响:峰值移向 n p,且对于给定的 n,当 p 接近 0.5 时分布更分散。
10. Real-world Applications | 实际应用
The binomial distribution is widely used across disciplines. In medicine, it models the number of patients who respond to a treatment in a clinical trial. In genetics, it can predict the number of offspring expressing a recessive trait. In business, it helps assess the risk of product defects in a batch sample.
二项分布广泛应用于各个学科。在医学中,它用于模拟临床试验中对治疗有反应的患者数量。在遗传学中,它可以预测表现出隐性性状的后代数量。在商业中,它有助于评估一批样品中产品缺陷的风险。
In IB exam questions, contextual scenarios often involve basketball free throws, multiple-choice tests, email spam detection, or coin flipping. The skill of identifying the binomial parameters n and p from a verbal description is regularly tested.
在IB考试题目中,情境常涉及篮球罚球、多选题测试、垃圾邮件检测或抛硬币。从文字描述中识别二项分布参数 n 和 p 的技能经常被考查。
Another classic example is the "birthday problem" one girl is born in a family of 4 children, with p = 0.48 (probability of a girl). Here, X ~ B(4, 0.48) and we seek P(X ≥ 1) = 1 - P(X = 0) = 1 - (0.52)⁴ ≈ 0.927.
另一个经典例子是“生日问题”的变体:在有4个孩子的家庭中,至少有一个女孩的概率,其中 p = 0.48(生女孩的概率)。这里 X ~ B(4, 0.48),求 P(X ≥ 1) = 1 - P(X = 0) = 1 - (0.52)⁴ ≈ 0.927。
11. Worked Example 1: Exact Probability | 例题1:精确概率
Problem: A fair die is rolled 12 times. Let X be the number of times a '5' appears. Find the probability that exactly four '5's are rolled.
问题:一个公平骰子掷12次。设 X 为出现“5”的次数。求掷出恰好四个“5”的概率。
First, identify parameters: n = 12, p = 1/6. Then X ~ B(12, 1/6). Using the formula or GDC binompdf(12, 1/6, 4):
首先,确定参数:n = 12,p = 1/6。则 X ~ B(12, 1/6)。使用公式或GDC binompdf(12, 1/6, 4):
P(X = 4) = C(12, 4) × (1/6)⁴ × (5/6)⁸
16 × 0.2326 ≈ 0.0888. Using GDC directly confirms this value, approximately 0.0888 or 8.88%.
C(12, 4) = 495。(1/6)⁴ ≈ 0.0007716,(5/6)⁸ ≈ 0.2326。因此,P(X = 4) ≈ 495 × 0.0007716 × 0.2326 ≈ 0.0888。直接使用GDC确认该值,约为 0.0888 即 8.88%。
Interpretation: the chance of obtaining exactly four '5's in 12 rolls is about 8.9%, which is relatively low but not extremely unusual.
解读:在12次投掷中获得恰好四个“5”的机会约为8.9%,相对较低但并非极不寻常。
12. Worked Example 2: Cumulative and Complement | 例题2:累积与补集
Problem: A basketball player has a free-throw success rate of 70%. In a game, she takes 15 free throws. What is the probability that she makes at least 10 of them?
问题:一名篮球运动员的罚球命中率为70%。在一场比赛中,她罚球15次。她罚中至少10球的概率是多少?
Define X ~ B(15, 0.7). "At least 10" eans P(X ≥ 10). To compute this efficiently, use the complement: P(X ≥ 10) = 1 - P(X ≤ 9).
定义 X ~ B(15, 0.7)。“至少10球”即 P(X ≥ 10)。为了高效计算,使用补集:P(X ≥ 10) = 1 - P(X ≤ 9)。
) ≈ 0.2784. Then P(X ≥ 10) = 1 - 0.2784 = 0.7216. So the probability is approximately 72.2%.
使用GDC binomcdf(15, 0.7, 9) 得到 P(X ≤ 9) ≈ 0.2784。则 P(X ≥ 10) = 1 - 0.2784 = 0.7216。因此概率约为 72.2%。
.2061, showing that the cumulative approach is necessary for an interval. This kind of reasoning is common in hypothesis testing later in the course.
如果问题是恰好10球,我们会用 binompdf(15,0.7,10) ≈ 0.2061,这表明对于区间问题必须采用累积方法。这类推理在后续课程的假设检验中非常常见。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

或截图后用「扫一扫 → 相册」选择本图