📚 PDF Joiner: Piecewise Probability Density Functions | PDF连接器:分段概率密度函数
In Edexcel A-Level Mathematics, continuous random variables often require you to handle probability density functions (PDFs) that are defined in pieces across different intervals. These 'piecewise' PDFs act like joined segments, and your task is to connect them correctly using conditions such as total area equals 1, continuity at boundaries, or given probabilities. This article serves as your complete revision guide to mastering the 'PDF joiner' — the art of combining, analysing, and utilising piecewise probability density functions.
在爱德思A-Level数学中,连续随机变量常常涉及分段定义的概率密度函数(PDF),这些函数在不同区间上有不同的表达式。它们就像被连接起来的片段,而你的任务就是利用总面积等于1、边界连续性或给定概率等条件将它们正确拼接。本文将作为你掌握“PDF连接器”——即组合、分析并运用分段概率密度函数技巧的完整复习指南。
1. What is a Probability Density Function? | 什么是概率密度函数?
ty is that the total area under the curve of f(x) over all possible x-values must equal exactly 1. Moreover, f(x) ≥ 0 for all x, since probabilities cannot be negative. The probability that X lies between a and b is given by the definite integral ∫ₐᵇ f(x) dx.
概率密度函数 f(x) 描述了连续随机变量 X 在某个取值范围内的可能性。其核心性质是:曲线 f(x) 在所有可能取值上的总面积必须恰好等于1。此外,对于所有 x 都有 f(x) ≥ 0,因为概率不能为负。X 落在 a 与 b 之间的概率由定积分 ∫ₐᵇ f(x) dx 给出。
Total area condition: ∫₋∞∞ f(x) dx = 1
For any valid PDF, this normalisation condition must hold. When a PDF is defined piecewise, you will often use this property to find unknown constants in the segments.
对于任何有效的PDF,都必须满足这一归一化条件。当PDF分段定义时,你通常会利用该性质求出各段中的未知常数。
2. Introducing Piecewise PDFs — the Need for a 'PDF Joiner' | 分段PDF简介——为何需要“PDF连接器”
rent linear formula for 2 ≤ x ≤ 5, with zero elsewhere. The challenge is to ensure that these pieces join correctly to form a valid overall density. This 'joining' can involve matching total probability to 1, making the CDF continuous, or fulfilling a given probability statement.
分段PDF在不同相邻区间上由不同的公式给出。例如,一个随机变量可能在 0 ≤ x < 2 上有一个表达式,在 2 ≤ x ≤ 5 上有另一个线性公式,其余地方为零。难点在于确保这些片段正确连接,构成一个有效的整体密度。“连接”的过程可能包括使总概率等于1、使累积分布函数连续,或者满足某个给定的概率条件。
A typical piecewise PDF might look like:
f(x) =
kx, 0 ≤ x < 2
m(5 − x), 2 ≤ x ≤ 5
0, otherwise
此处典型的分段PDF可能形如:
f(x) =
kx, 0 ≤ x < 2
m(5 − x), 2 ≤ x ≤ 5
0, 其他
You can think of the constants k and m as the 'joining parameters' that must be chosen so that the whole function becomes a legitimate PDF.
你可以把常数 k 和 m 看作“连接参数”,必须合理选取它们,使得整个函数成为一个合法的PDF。
3. The Normalisation Condition — Finding Unknown Constants | 归一化条件——求未知常数
otal area condition ∫ f(x) dx = 1. Split the integral over the intervals where f(x) is non‑ e sum equal to 1. If there are two unknown constants, you will need additional information — often a given probability or a continuity condition at a boundary.
连接各段最基本的工具是总面积条件 ∫ f(x) dx = 1。将积分拆分为 f(x) 非零的各区间,逐段积分后令总和等于1。若有多个未知常数,你还需要额外信息——通常是给定的概率值或边界处的连续性条件。
f the question also states that P(X < 2) = 0.25, then ∫₀² kx dx = 0.25, yielding 2k = 0.25 ⇒ k = 0.125. Substituting into the total area equation gives m = (1 − 0.25)/4.5 = 1/6.
例如:对于上述PDF,总面积为 ∫₀² kx dx + ∫₂⁵ m(5 − x) dx = 1。计算积分可得 2k + 4.5m = 1。若题目同时给出 P(X < 2) = 0.25,则 ∫₀² kx dx = 0.25,求得 2k = 0.25 ⇒ k = 0.125。代入总面积方程,得到 m = (1 − 0.25)/4.5 = 1/6。
This seamless joining of information from different sections is your 'PDF joiner' in action.
像这样无缝衔接不同区段的信息,就是“PDF连接器”的实际应用。
4. Calculating Probabilities with Piecewise PDFs | 利用分段PDF计算概率
To find the probability P(a < X < b) when f(x) is piecewise, you must split the integral at the interval boundaries. Always respect where each formula is valid. For example, if you need P(1 < X < 3), integrate kx from 1 to 2, then m(5 − x) from 2 to 3, and add them.
当 f(x) 分段定义时,求概率 P(a < X < b) 必须在区间边界处拆分积分。务必注意每个公式的有效范围。例如,若要求 P(1 < X < 3),需将 kx 从 1 积分到 2,再将 m(5 − x) 从 2 积分到 3,然后相加。
rts contribute zero and can be ignored. This piecewise integration is straightforward but requires careful bookkeeping of the intervals.
务必检查积分限是否进入了 f(x) = 0 的区域;这些部分的贡献为零,可直接忽略。这种分段积分虽不复杂,但需要仔细厘清各个区间。
5. The Cumulative Distribution Function (CDF) | 累积分布函数 (CDF)
robability from the lower bound up to x. For a piecewise PDF, F(x) itself becomes a piecewise function. You build it interval by interval, starting from the leftmost region. For x in the first interval, integrate from the lower limit to x. When you move to the next interval, you add the entire probability from previous intervals and then integrate the current piece from its left boundary to x.
累积分布函数 F(x) = P(X ≤ x) 是从下界累积到 x 的总概率。对分段PDF而言,F(x) 本身也是一个分段函数。你需要从最左侧区域开始逐段构建:当 x 位于第一个区间时,从下限积分到 x;进入下一个区间时,需加上之前所有区间的完整概率,再在当前段从其左边界积分到 x。
For the earlier example, for 0 ≤ x < 2: F(x) = ∫₀ˣ kt dt = ½ k x². For 2 ≤ x ≤ 5: F(x) = ∫₀² kt dt + ∫₂ˣ The constant accumulation acts like cement joining the pieces, ensuring F(x) is continuous – a crucial check for any CDF derived from a valid PDF.
以前例而言,当 0 ≤ x < 2 时:F(x) = ∫₀ˣ kt dt = ½ k x²。当 2 ≤ x ≤ 5 时:F(x) = ∫₀² kt dt + ∫₂ˣ m(5 − t) dt。这种常数累积就像胶合剂将各段连接起来,保证 F(x) 连续——这是从有效PDF导出的任何一个CDF都必须满足的关键检验。
6. Deriving the PDF from the CDF | 从CDF求PDF
= d/dx F(x) holds wherever F(x) is smooth. At boundary points where the derivative may not exist, simply define f(x) as 0 or leave it unspecified – just ensure the total probability remains consistent.
若给定一个分段CDF,你可以在其每个可导区间上通过求导恢复PDF。关系式 f(x) = d/dx F(x) 在 F(x) 光滑处成立。在导数可能不存在的边界点,只需将 f(x) 定义为零或保留未指定——但要确保总概率保持一致。
This inverse operation also highlights the 'joint' nature: the piecewise‑defined PDF directly reflects the slopes of the joined segments of the CDF graph.
这一逆运算同样彰显了“连接”的特性:分段定义的PDF直接反映了CDF图各连接段的斜率。
7. Medians, Quartiles, and Percentiles | 中位数、四分位数与百分位数
ilities at the interval endpoints to decide. Similarly, lower quartile Q₁ corresponds to F(Q₁) = 0.25, and upper quartile Q₃ to F(Q₃) = 0.75. Percentiles are located likewise. These computations literally involve joining the global condition F(x)=p with the local expression for F(x) on the appropriate piece.
求中位数 m 即解方程 F(m) = 0.5。由于 F(x) 是分段的,需先根据各区间端点的累积概率确定中位数位于哪一段。下四分位数 Q₁ 满足 F(Q₁) = 0.25,上四分位数 Q₃ 满足 F(Q₃) = 0.75。百分位数的求法类似。这些计算本质上就是把全局条件 F(x)=p 与相应区段上的局部 F(x) 表达式连接起来的过程。
Always verify that your solution indeed lies within the assumed interval. If not, move to the next piece.
务必验证所求的解确实落在你所假定的区间内;若不满足,则转移到下一段继续求解。
8. Expected Value (Mean) and Variance | 期望值(均值)与方差
er each interval i. The variance Var(X) can be computed using E(X²) − [E(X)]², where E(X²) = ∑ ∫ x²·fᵢ(x) dx. These quantities are additive across pieces, acting as a natural 'joiner' of information.
期望值 E(X) 由 x·f(x) 在所有 x 上积分得到。对于分段PDF,在分段点拆分积分:E(X) = ∑ 在每个区间 i 上 ∫ x·fᵢ(x) dx。方差 Var(X) 可通过 E(X²) − [E(X)]² 求得,其中 E(X²) = ∑ ∫ x²·fᵢ(x) dx。这些量可以跨段相加,自然地成为信息“连接器”。
Remember that integration must respect the piecewise formula. Always double‑check that the resulting mean lies within the support of the distribution, as a sanity check.
切记积分时必须使用对应分段公式。最终求出的均值应落在分布的支撑集内,这可以作为合理性检验。
9. Transforming Variables and Mixed Distributions | 变量变换与混合分布
Sometimes a piecewise structure arises because X itself is a transformation of another variable, or because the distribution is a mixture of two known types (e.g., uniform on [0,2] plus a triangular part on [2,5]). In such cases, the weights assigned to each piece must sum to 1. The 'joining' condition becomes a set of linear equations for the mixing proportions or parameters.
有时分段结构源于 X 本身是另一变量的变换,或是因为该分布是两个已知类型的混合(例如在 [0,2] 上为均匀分布,在 [2,5] 上为三角形部分)。此时每一段的权重之和必须等于1。“连接”条件转化为关于混合比例或参数的线性方程组。
Mixed distributions are especially common in modelling real‑world phenomena, reinforcing why mastering the 'PDF joiner' concept is so valuable beyond exam questions.
混合分布在现实建模中尤其常见,这也进一步说明掌握“PDF连接器”这一概念不仅对考试至关重要,也具有广泛的实际价值。
10. Exam-Style Problems and Tips | 考试题型与技巧
Edexcel exam questions frequently ask you to: (a) show that a constant takes a specific value; (b) sketch the f(x) graph; (c) find the cumulative distribution function; (d) calculate the median or quartiles; and (e) determine the mean and variance. You may be given one probability to fix a constant and then use the area condition to find the other. Always label axes clearly in sketches and indicate the height at the join point to emphasise that the pieces fit together.
爱德思考试题目经常要求你:(a) 证明某个常数为特定值;(b) 绘制 f(x) 的图像;(c) 求出累积分布函数;(d) 计算中位数或四分位数;(e) 确定均值和方差。你可能会被给到一个概率来确定一个常数,再利用面积条件求出另一个。草图绘制时务必清晰标注坐标轴,并在连接点标出高度,以突出各段拼接在一起。
) dx] helps prevent careless errors. When finding F(x), always check that F tends to 1 as x approaches the upper limit of the support.
关键技巧:明确写出分段积分的上下限。画一个小表格列出 [区间, f(x), ∫ f(x) dx] 有助于避免粗心错误。在求 F(x) 时,务必校验当 x 趋于支撑集的上限时 F(x) 是否趋于 1。
Another common pitfall is forgetting to add the accumulated probability from earlier pieces when constructing the CDF for later intervals. Treat the joining process as formal addition of areas, and your answers will be robust.
另一个常见错误是在为后段构建CDF时忘记加上前段已累积的概率。将连接过程视为面积的形式化加法,你的答案就会更加稳健。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

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