📚 pdfjoiner (4-040): Piecewise PDF Conditions in Edexcel S2 | pdfjoiner (4-040):Edexcel S2分段概率密度函数条件
In Edexcel A‑Level Statistics 2 (S2), continuous random variables are often defined through probability density functions (PDFs) that change their formula over different intervals – the so‑called piecewise PDFs. A recurring challenge is to determine the unknown constants that make such a function a valid PDF, frequently involving a “joiner” condition where two pieces meet. This article unpacks the theory, the required joining conditions, normalization, and the techniques to master every type of piecewise PDF question in your exam.
在 Edexcel A‑Level 统计学第二单元(S2)中,连续型随机变量常通过在不同区间上切换公式的概率密度函数(PDF)来定义——即所谓分段 PDF。一个反复出现的难点是求出使该函数成为有效 PDF 的未知常数,这通常涉及两段函数相遇处的“连接”条件。本文将剖析其背后的理论、必要的连接条件、归一化要求,以及攻克考试中每一类分段 PDF 题目的技巧。
1. What is a Probability Density Function? | 什么是概率密度函数?
Unlike discrete probability mass functions, the height of the curve does not directly give probability; instead, probability is represented by the area under the curve. The probability that X lies in the interval [a, b] is P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx. Because probability at a single point is zero for a continuous distribution, we can freely use ≤ or < in inequalities.
概率密度函数(PDF),记作 f(x),描述连续型随机变量 X 取某个给定值的相对可能性。与离散概率质量函数不同,曲线的高度并不直接给出概率;概率由曲线下的面积表示。X 落在区间 [a, b] 的概率为 P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx。由于单点的概率为零,不等式中使用 ≤ 还是 < 均可。
l 1. That is, ∫₋∞⁺∞ f(x) dx = 1. In practice, the PDF is often zero outside a finite domain, which makes integration straightforward.
函数 f(x) 必须满足两个基本要求:对所有实数 x 有 f(x) ≥ 0,且整条实线上 f(x) 下方总面积必须等于 1,即 ∫₋∞⁺∞ f(x) dx = 1。实际中 PDF 常在有限域外取零,这使得积分较为简便。
2. Properties of a Valid PDF | 有效PDF的性质
to be mathematically acceptable for a continuous random variable, three properties are non‑negotiable. First, non‑negativity: f(x) ≥ 0 for all x ∈ ℝ ) = ∫ₐᵇ f(x) dx. Notice that continuity of f(x) itself is not required; a PDF may have jump discontinuities, as long as the integral conditions hold.
对于任何作为连续型随机变量的备选 PDF,三个性质不可妥协。第一,非负性:对所有 x ∈ ℝ 有 f(x) ≥ 0。第二,总概率为一:在整个支撑集上 ∫ f(x) dx = 1。第三,区间概率由积分给出:P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx。注意并不要求 f(x) 本身连续;PDF 可以有跳跃间断点,只要积分条件成立即可。
However, many Edexcel S2 problems introduce an additional “smooth joining” condition by insisting that the two pieces of a piecewise PDF join continuously at the boundary point. This is often used to find one of the unknown constants. Whether the question explicitly asks for it or not, such a condition reduces the degrees of freedom and must be checked for consistency.
然而,许多 Edexcel S2 题目通过要求分段 PDF 的两段在边界点处连续连接来引入额外的“光滑连接”条件。这通常用于求解某个未知常数。无论题目是否明确要求,该条件都能减少自由度,且必须检验其一致性。
3. Piecewise PDFs: The Need for Multiple Segments | 分段PDF:为何需要多个段
A piecewise (or “broken”) PDF splits the domain into two or more subintervals, with a different algebraic expression f₁(x), f₂(x), … on each. Reasons for a piecewise definition include modelling a random process that behaves differently in different ranges, or simply constructing a function that satisfies the area condition while maintaining a desired shape. In exam questions, a common structure is:
分段(或称“折线”)PDF 将定义域划分为两个或更多子区间,每个区间上使用不同的代数表达式 f₁(x)、f₂(x) 等。采用分段定义的原因包括:对在不同范围表现不同的随机过程建模,或单纯构造一个既能满足面积条件又保持所需形状的函数。考试中常见的结构如下:
f(x) = kx, 0 ≤ x ≤ 2
f(x) = k(4 − x), 2 ≤ x ≤ 4
f(x) = 0, otherwise.
Here, the function is split at x = 2, which acts as the “join” using both the normalization condition and the continuity of the two expressions at x = 2.
这里,函数在 x = 2 处分开,该点即为“连接”点。常数 k 必须根据给定条件确定,通常需同时利用归一化条件和两个表达式在 x = 2 处的连续性。
4. The Joiner Condition: Continuity at the Knot | 连接条件:结点处的连续性
When a problem states that the pieces join smoothly, it means the left‑hand piece and the right‑ is f₁(c) = f₂(c). This provides a linear or simple algebraic equation linking the unknown parameters.
当题目说明两段光滑连接时,意味着左侧段与右侧段在边界点处必须给出相同的函数值。若各段为 f₁(x)(a ≤ x ≤ c)和 f₂(x)(c ≤ x ≤ b),则连续性条件为 f₁(c) = f₂(c)。这提供了一个将未知参数关联起来的线性或简单代数方程。
Why is this useful? ty of the pieces at the join gives a second equation, enabling a unique solution. Even when the question does not explicitly mention continuity, you should check whether the context implies it (e.g. “the function is continuous” or “the pieces meet”).
这为何有用?在很多 S2 题目中,PDF 含有两个未知常数,例如 m 和 k。归一化条件 ∫ f(x) dx = 1 给出一个方程。各段在连接点连续给出第二个方程,从而得到唯一解。即便题目未明确提及连续性,你也应检查上下文是否暗示了它(例如“该函数连续”或“两段相接”)。
Be careful: a PDF does not have to be continuous. If a question does not provide a continuity condition, you cannot assume it. In that case, you must rely solely on normalization to determine the constants, possibly leaving one parameter free or requiring another condition like a given probability or quartile.
注意:PDF 并非必须连续。如果题目未给出连续性条件,你就不能盲目假设。此时只能依赖归一化确定常数,可能会有一个参数无法确定,或者需要额外条件(如给定的概率或四分位数)。
5. Normalisation: Integrating to Unity | 归一化:积分和为1
(x) > 0. For a piecewise function, this means splitting the integral into the sum of integrals over each subinterval:
无论是否连续,PDF 的基本要求是在 f(x) > 0 的整个定义域上 ∫ f(x) dx = 1。对于分段函数,这意味着将积分拆分为各子区间上积分之和:
Total area = ∫ₐᵇ f₁(x) dx + ∫ᵇᶜ f₂(x) dx + ⋯ = 1
as a coefficient. For example, if f₁(x) = kx on [0,2] and f₂(x) = k(4−x) on [2,4], compute
计算这些积分时,将每个常数视为系数。例如,若在 [0,2] 上 f₁(x) = kx,在 [2,4] 上 f₂(x) = k(4−x),则计算
∫₀² kx dx + ∫₂⁴ k(4−x) dx = 1
inuity equation f₁(c) = f₂(c) will link m and k, and then normalization solves the system.
解此即得 k 的值。如果其中一段出现额外常数 m,连续性方程 f₁(c) = f₂(c) 会将 m 与 k 相关联,然后通过归一化求解方程组。
6. Example: Determining Constants in a Piecewise PDF | 示例:确定分段PDF中的常数
Consider the PDF given by
考虑如下 PDF
f(x) = mx, 0 ≤ x ≤ 3
f(x) = k(6 − x), 3 < x ≤ 6
f(x) = 0, otherwise.
It is stated that the two pieces join continuously at x = 3. Find m and k.
已知两段在 x = 3 处连续连接。求 m 和 k。
Step 1 – Continuity: f(3⁻) = 3m, f(3⁺) = k(6 − 3) = 3k. Setting them equal gives 3m = 3k ⇒ m = k.
步骤1 – 连续性: f(3⁻) = 3m,f(3⁺) = k(6 − 3) = 3k。令其相等得 3m = 3k ⇒ m = k。
Step 2 – Normalisation: ∫₀³ mx dx + ∫₃⁶ k(6 − x) dx = 1. Since m = k, substitute:
步骤2 – 归一化: ∫₀³ mx dx + ∫₃⁶ k(6 − x) dx = 1。因 m = k,代入:
. ∫₃⁶ k(6 − x) dx = k [6x − x²/2]₃⁶ = k[(36 − 18) − (18 − 9/2)] = k[18 − (27/2)] = k(9/2).
Total area = k(9/2 + 9/2) = 9k = 1 ⇒ k = 1/9, so m = 1/9.
总面积 = k(9/2 + 9/2) = 9k = 1 ⇒ k = 1/9,故 m = 1/9。
is f(x) = x/9 for 0 ≤ x ≤ 3 and f(x) = (6 − x)/9 for 3 < x ≤ 6. This clearly satisfies non‑negativity and joins at x = 3 with value 3/9 = 1/3.
因此 PDF 为:0 ≤ x ≤ 3 时 f(x) = x/9,3 < x ≤ 6 时 f(x) = (6 − x)/9。显然满足非负性,且在 x = 3 处连接,值为 3/9 = 1/3。
7. The Cumulative Distribution Function (CDF) | 累积分布函数
he lower bound up to x of the density. For piecewise PDFs, the CDF must be defined piecewise as well. At each join point, the CDF must match from the left and right to ensure it is continuous and non‑decreasing.
累积分布函数 F(x) = P(X ≤ x) 是对密度函数从下界到 x 的积分。对于分段 PDF,CDF 也必须分段定义。在每个连接点处,左右两段的 CDF 值必须相等,以确保其连续且非递减。
For our example with k = 1/9, the CDF for 0 ≤ x ≤ 3 is F(x) = ∫₀ˣ dt = x²/18. For 3 < x ≤ 6, we integrate from 0 to 3 and then from 3 to x: F(x) = F(3) + ∫₃ˣ (6 − t)/9 dt. Since F(3) = 9/18 = 1/2, we get F(x) = 1/2 + [6t − t²/2]₃ˣ /9. After computation, F(x) = 1 − (6 − x)²/18, which yields F(6) = 1.
对于本例 k = 1/9,0 ≤ x ≤ 3 时 CDF 为 F(x) = ∫₀ˣ (t/9) dt = x²/18。对于 3 < x ≤ 6,我们积分从 0 到 3 然后再从 3 到 x:F(x) = F(3) + ∫₃ˣ (6 − t)/9 dt。因为 F(3) = 9/18 = 1/2,得 F(x) = 1/2 + [6t − t²/2]₃ˣ /9。计算后 F(x) = 1 − (6 − x)²/18,且 F(6) = 1。
e CDF starts at 0 at the leftmost boundary (x = 0) and ends at 1 at the rightmost (x = 6).
求出封闭形式的 CDF 后,可以轻松计算概率和百分位数。务必检查 CDF 在最左边界 (x=0) 处为 0,在最右边界 (x=6) 处为 1。
8. Finding the Median from a Piecewise PDF | 从分段PDF求中位数
xactly, so the median is m = 3. If F at the join point were less than 0.5, the median would lie in the next segment, and you would solve the appropriate CDF equation for x.
中位数 m 满足 F(m) = 0.5。对于分段 CDF,你必须先确定中位数位于哪一段。在上述示例中,F(3) 恰好为 0.5,因此中位数即为 m = 3。如果连接点处的 F 值小于 0.5,则中位数会落在下一段,你就需要对该段的 CDF 表达式求解 x。
.5, you set F(2.5) = 0.5 in the appropriate segment and solve for constants in conjunction with normalization.
对于带有未知参数的 PDF,给出的中位数可以代替连续性提供缺失的方程。例如,若已知中位数为 2.5,你可在相应段内令 F(2.5) = 0.5,并结合归一化求解常数。
9. Mode of a Piecewise PDF | 分段PDF的众数
and boundary values within each segment, then compare the heights. In symmetric triangular‑ s linearly to x = 3 then decreases linearly, making x = 3 the mode with maximum value 1/3.
连续分布的众数是使 f(x) 最大化的 x 值。对于分段 PDF,你需要求出每段内的驻点和边界值,然后比较其高度。在如同本例的对称三角形状 PDF 中,若斜率变号,众数出现在连接点。在本例中,f(x) 线性增加到 x = 3 后线性减小,因此 x = 3 为众数,最大值为 1/3。
Caution: If the pieces had different slopes or one piece was zero, the mode might be at a boundary of the support rather than at the join. Always sketch the PDF to confirm the location of the global maximum.
注意:如果各段斜率不同或某一段为零,众数可能位于支撑集边界而非连接点。始终画出 PDF 草图以确认全局最大值的位置。
10. Expectation and Variance | 期望与方差
. Using the same example, E(X) = ∫₀³ x·(x/9) dx + ∫₃⁶ x·((6 − x)/9) dx. Compute each part:
分段 PDF 的均值或期望 E(X) 是各段上 x·f(x) 积分的总和。仍用本例,E(X) = ∫₀³ x·(x/9) dx + ∫₃⁶ x·((6 − x)/9) dx。分别计算:
(6x − x²)/9 dx = (1/9)[3x² − x³/3]₃⁶ = (1/9)[(108 − 72) − (27 − 9)] = (1/9)[36 − 18] = 2.
3. Symmetry confirms the mean equals the median and mode for this triangular distribution.
于是 E(X) = 1 + 2 = 3。对称性确认该三角分布的均值等于中位数与众数。
The second gives (1/9)[2x³ − x⁴/4]₃⁶ = (1/9)[(432 − 324) − (54 − 20.25)] = (1/9)[108 − 33.75] = 74.25/9 = 8.25. Sum = 10.5, so Var(X) = 10.5 − 9 = 1.5.
方差 Var(X) = E(X²) − [E(X)]²。计算 E(X²) = ∫₀³ x²·(x/9) dx + ∫₃⁶ x²·((6 − x)/9) dx。第一部分 (1/9)[x⁴/4]₀³ = 81/36 = 9/4 = 2.25。第二部分 9)[2x³ − x⁴/4]₃⁶ = (1/9)[(432 − 324) − (54 − 20.25)] = (1/9)[108 − 33.75] = 74.25/9 = 8.25。总和为 10.5,故 Var(X) = 10.5 − 9 = 1.5。
11. Exam-Style Question Walkthrough | 考试风格题目解析
An Edexcel S2 question might present a PDF with two unknowns that join at a point, then ask for the constants, the CDF, the median, and a probability like P(1 < X < 4). The strategy is to write the continuity equation, then the normalization integral, solve the system, and afterwards build the CDF piecewise. Always carry constants through the integration and simplify at the end. Show all working clearly, as marks are awarded for the correct integrals and substitutions.
一道 Edexcel S2 题目可能会给出一个在连接点有两个未知常数的 PDF,然后要求求常数、CDF、中位数以及某个概率如 P(1 < X < 4)。应对策略为:写出连续性方程,再写出归一化积分,解方程组,随后分段构建 CDF。始终将常数带进积分,最后再化简。清晰展示所有步骤,因为正确积分和代入过程均有分数。
normalization. In such cases, set up equations based on the point value, join continuity, and then integrate to confirm total area = 1 or use it to find another constant.
另一种常见变体给出某点处的 PDF 值(如 f(2) = 0.2)及连接条件,这取代或补充归一化。此时应基于点值列出方程,结合连接连续性,然后积分验证总面积是否为 1 或用它求另一常数。
12. Key Takeaways and Further Practice | 要点总结与进阶练习
1 gives the normalisation integral; (3) derive the CDF piecewise, ensuring it connects at the boundaries. Always verify that your final PDF is non‑ 0 to 1. Practise with past paper questions involving linear, quadratic, and even constant‑linear pieces. Recognize that sometimes the join condition is subtle – it may be embedded in a phrase like “the function is continuous”. With solid algebraic integration and clear bookkeeping, you can confidently solve any “pdf joiner” problem.
掌握 S2 分段 PDF 的三个支柱为:(1) 当指明光滑连接时使用 f₁(连接点) = f₂(连接点);(2) 总面积 = 1 给出归一化积分;(3) 分段推导 CDF,确保其在边界处衔接。始终验证最终 PDF 在整个定义域非负,且 CDF 值域为 0 至 1。多练习涉及线性、二次甚至常数‑线性段的真题。要意识到有时连接条件很隐蔽——可能隐含在“函数连续”这样的表述中。凭借扎实的代数积分和清晰的步骤记录,你定能自信解决任何“pdf 连接器”问题。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

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