← 教材与题目索引§2.1 本节复习 →

练习 2.1 第 12 题

由连续型密度函数求参数 aa、分布函数与区间概率

教材印刷页 50 / PDF 页 60 · 对照教材原页 ↗

查阅教材依据

题面、推导或所引例题 印刷 50 页

书后简答 印刷 273 页

题目与条件

来源:龙永红《概率论与数理统计》(第四版)§2.1 练习 2.1 第 12 题(印刷页第 50 页,PDF 第 60 页;书末答案见印刷页第 273 页,PDF 第 283 页)。

已知连续型随机变量 XX 的密度函数分别为:

  1. f(x)=ae−∣x∣f(x) = a e^{-|x|},x∈(−∞,+∞)x \in (-\infty, +\infty);
  2. f(x)={x,0≤x<1,2−x,1≤x<a,0,其他.f(x) = \begin{cases} x, & 0 \le x < 1, \\ 2 - x, & 1 \le x < a, \\ 0, & \text{其他}. \end{cases}

对每种情形,分别求参数 aa、分布函数 F(x)F(x),以及以下三个概率:

P{−1<X≤22},P{22≤X≤2},P{X>1}.P\left\{ -1 < X \le \frac{\sqrt{2}}{2} \right\}, \qquad P\left\{ \frac{\sqrt{2}}{2} \le X \le \sqrt{2} \right\}, \qquad P\{X > 1\}.

完整答案

解题通法

对于连续型随机变量,密度函数 f(x)f(x) 必须满足非负性 f(x)≥0f(x) \ge 0 与规范性 ∫−∞+∞f(x) dx=1\int_{-\infty}^{+\infty} f(x)\,\mathrm{d}x = 1,先据此确定待定参数 aa;再按定义积分 F(x)=∫−∞xf(t) dtF(x) = \int_{-\infty}^{x} f(t)\,\mathrm{d}t 分段求得分布函数 F(x)F(x);最后利用 P{c<X≤d}=P{c≤X≤d}=F(d)−F(c)P\{c < X \le d\} = P\{c \le X \le d\} = F(d) - F(c) 和 P{X>1}=1−F(1)P\{X > 1\} = 1 - F(1)(连续型单点概率为 00,边界含不含等号结果一致)计算各概率。


(1) 双指数形式 f(x)=ae−∣x∣f(x) = a e^{-|x|}

1. 求参数 aa

由于 f(x)=ae−∣x∣f(x) = a e^{-|x|} 是偶函数(当 x<0x < 0 时 ∣x∣=−x|x| = -x,即 f(x)=aexf(x) = a e^x;当 x≥0x \ge 0 时 ∣x∣=x|x| = x,即 f(x)=ae−xf(x) = a e^{-x}),由规范性及非负性(要求 a>0a > 0):

1=∫−∞+∞ae−∣x∣ dx=2a∫0+∞e−x dx=2a[−e−x]0+∞=2a(0−(−1))=2a.\begin{aligned} 1 &= \int_{-\infty}^{+\infty} a e^{-|x|}\,\mathrm{d}x \\ &= 2 a \int_{0}^{+\infty} e^{-x}\,\mathrm{d}x \\ &= 2 a \left[ -e^{-x} \right]_{0}^{+\infty} \\ &= 2 a (0 - (-1)) = 2a. \end{aligned}
解得 a=12a = \dfrac{1}{2}。

2. 求分布函数 F(x)F(x)

以分界点 x=0x = 0 分两段积分:

  • 当 x<0x < 0 时,积分区间内 ∣t∣=−t|t| = -t:
    F(x)=∫−∞x12et dt=[12et]−∞x=12ex.\begin{gathered}F(x) \\= \int_{-\infty}^{x} \frac{1}{2} e^{t}\,\mathrm{d}t \\= \left[ \frac{1}{2} e^{t} \right]_{-\infty}^{x} \\= \frac{1}{2} e^{x}.\end{gathered}
  • 当 x≥0x \ge 0 时,把积分区间拆成 (−∞,0](-\infty, 0] 和 [0,x][0, x] 两段:
    F(x)=∫−∞012et dt+∫0x12e−t dt=12+[−12e−t]0x=12+12(1−e−x)=1−12e−x.\begin{aligned} F(x) &= \int_{-\infty}^{0} \frac{1}{2} e^{t}\,\mathrm{d}t + \int_{0}^{x} \frac{1}{2} e^{-t}\,\mathrm{d}t \\ &= \frac{1}{2} + \left[ -\frac{1}{2} e^{-t} \right]_{0}^{x} \\ &= \frac{1}{2} + \frac{1}{2}(1 - e^{-x}) = 1 - \frac{1}{2} e^{-x}. \end{aligned}
    综合写出分布函数:
    F(x)={12ex,x<0,1−12e−x,x≥0.F(x) = \begin{cases} \dfrac{1}{2} e^{x}, & x < 0, \\ 1 - \dfrac{1}{2} e^{-x}, & x \ge 0. \end{cases}

3. 计算三个概率

  • 计算 P{−1<X≤22}P\left\{ -1 < X \le \dfrac{\sqrt{2}}{2} \right\}(注意 −1<0-1 < 0 用第一段,22>0\frac{\sqrt{2}}{2} > 0 用第二段):
    P{−1<X≤22}=F(22)−F(−1)=(1−12e−2/2)−12e−1=1−12(e−2/2+e−1).\begin{aligned} P\left\{ -1 < X \le \frac{\sqrt{2}}{2} \right\} &= F\left(\frac{\sqrt{2}}{2}\right) - F(-1) \\ &= \left(1 - \frac{1}{2} e^{-\sqrt{2}/2}\right) - \frac{1}{2} e^{-1} \\ &= 1 - \frac{1}{2}\left( e^{-\sqrt{2}/2} + e^{-1} \right). \end{aligned}
  • 计算 P{22≤X≤2}P\left\{ \dfrac{\sqrt{2}}{2} \le X \le \sqrt{2} \right\}(两数均大于 00,均代入第二段):
    P{22≤X≤2}=F(2)−F(22)=(1−12e−2)−(1−12e−2/2)=12(e−2/2−e−2).\begin{aligned} P\left\{ \frac{\sqrt{2}}{2} \le X \le \sqrt{2} \right\} &= F(\sqrt{2}) - F\left(\frac{\sqrt{2}}{2}\right) \\ &= \left(1 - \frac{1}{2} e^{-\sqrt{2}}\right) - \left(1 - \frac{1}{2} e^{-\sqrt{2}/2}\right) \\ &= \frac{1}{2}\left( e^{-\sqrt{2}/2} - e^{-\sqrt{2}} \right). \end{aligned}
  • 计算 P{X>1}P\{X > 1\}:
    P{X>1}=1−F(1)=1−(1−12e−1)=12e−1.\begin{aligned} P\{X > 1\} &= 1 - F(1) \\ &= 1 - \left(1 - \frac{1}{2} e^{-1}\right) \\ &= \frac{1}{2} e^{-1}. \end{aligned}

(2) 分段三角形密度函数

1. 求参数 aa

由第二段区间 1≤x<a1 \le x < a 非空及左侧 [0,1)[0, 1) 面积仅有 12<1\frac{1}{2} < 1 可知必有 a>1a > 1;同时为保证 1≤x<a1 \le x < a 上非负性 2−x≥02 - x \ge 0,还需 a≤2a \le 2。根据规范性 ∫−∞+∞f(x) dx=1\int_{-\infty}^{+\infty} f(x)\,\mathrm{d}x = 1:

1=∫01x dx+∫1a(2−x) dx=[x22]01+[2x−x22]1a=12+(2a−a22−(2−12))=2a−a22−1.\begin{aligned} 1 &= \int_{0}^{1} x\,\mathrm{d}x + \int_{1}^{a} (2 - x)\,\mathrm{d}x \\ &= \left[ \frac{x^2}{2} \right]_{0}^{1} + \left[ 2x - \frac{x^2}{2} \right]_{1}^{a} \\ &= \frac{1}{2} + \left( 2a - \frac{a^2}{2} - \left(2 - \frac{1}{2}\right) \right) \\ &= 2a - \frac{a^2}{2} - 1. \end{aligned}
整理得一元二次方程:
a22−2a+2=0,a2−4a+4=0,(a−2)2=0.\begin{aligned} \frac{a^2}{2} - 2a + 2 &= 0, \\ a^2 - 4a + 4 &= 0, \\ (a - 2)^2 &= 0. \end{aligned}
解得唯一解 a=2a = 2(且恰好满足 1<a≤21 < a \le 2,f(x)f(x) 在 [0,2][0, 2] 上形成一个关于 x=1x = 1 对称、高为 11 的等腰三角形)。

2. 求分布函数 F(x)F(x)

把区间分成 x<0x < 0、0≤x<10 \le x < 1、1≤x<21 \le x < 2、x≥2x \ge 2 四段逐段积分:

  • 当 x<0x < 0 时,F(x)=0F(x) = 0。
  • 当 0≤x<10 \le x < 1 时:
    F(x)=∫0xt dt=12x2.F(x) = \int_{0}^{x} t\,\mathrm{d}t = \frac{1}{2} x^2.
  • 当 1≤x<21 \le x < 2 时:
    F(x)=∫01t dt+∫1x(2−t) dt=12+[2t−t22]1x=12+(2x−x22−32)=2x−12x2−1.\begin{aligned} F(x) &= \int_{0}^{1} t\,\mathrm{d}t + \int_{1}^{x} (2 - t)\,\mathrm{d}t \\ &= \frac{1}{2} + \left[ 2t - \frac{t^2}{2} \right]_{1}^{x} \\ &= \frac{1}{2} + \left(2x - \frac{x^2}{2} - \frac{3}{2}\right) \\ &= 2x - \frac{1}{2} x^2 - 1. \end{aligned}
  • 当 x≥2x \ge 2 时,积分覆盖全部支集 [0,2][0, 2],故 F(x)=1F(x) = 1。

综合写出分布函数:

F(x)={0,x<0,12x2,0≤x<1,2x−12x2−1,1≤x<2,1,x≥2.F(x) = \begin{cases} 0, & x < 0, \\ \dfrac{1}{2} x^2, & 0 \le x < 1, \\ 2x - \dfrac{1}{2} x^2 - 1, & 1 \le x < 2, \\ 1, & x \ge 2. \end{cases}

3. 计算三个概率

注意定位每个点属于哪一段:−1<0-1 < 0,0<22≈0.707<10 < \frac{\sqrt{2}}{2} \approx 0.707 < 1,1<2≈1.414<21 < \sqrt{2} \approx 1.414 < 2:

  • 计算 P{−1<X≤22}P\left\{ -1 < X \le \dfrac{\sqrt{2}}{2} \right\}:
    P{−1<X≤22}=F(22)−F(−1)=12(22)2−0=12⋅12=14.\begin{aligned} P\left\{ -1 < X \le \frac{\sqrt{2}}{2} \right\} &= F\left(\frac{\sqrt{2}}{2}\right) - F(-1) \\ &= \frac{1}{2}\left(\frac{\sqrt{2}}{2}\right)^2 - 0 \\ &= \frac{1}{2} \cdot \frac{1}{2} = \frac{1}{4}. \end{aligned}
  • 计算 P{22≤X≤2}P\left\{ \dfrac{\sqrt{2}}{2} \le X \le \sqrt{2} \right\}:
    P{22≤X≤2}=F(2)−F(22)=(22−12(2)2−1)−14=(22−2)−14=22−94.\begin{aligned} P\left\{ \frac{\sqrt{2}}{2} \le X \le \sqrt{2} \right\} &= F(\sqrt{2}) - F\left(\frac{\sqrt{2}}{2}\right) \\ &= \left( 2\sqrt{2} - \frac{1}{2}(\sqrt{2})^2 - 1 \right) - \frac{1}{4} \\ &= (2\sqrt{2} - 2) - \frac{1}{4} \\ &= 2\sqrt{2} - \frac{9}{4}. \end{aligned}
  • 计算 P{X>1}P\{X > 1\}:
    P{X>1}=1−F(1)=1−(2⋅1−12⋅12−1)=1−12=12.\begin{aligned} P\{X > 1\} &= 1 - F(1) \\ &= 1 - \left(2\cdot 1 - \frac{1}{2}\cdot 1^2 - 1\right) \\ &= 1 - \frac{1}{2} = \frac{1}{2}. \end{aligned}

结果汇总与检验

  • (1) a=12a = \dfrac{1}{2};F(x)={12ex,x<0,1−12e−x,x≥0;F(x) = \begin{cases} \frac{1}{2}e^x, & x < 0, \\ 1 - \frac{1}{2}e^{-x}, & x \ge 0; \end{cases} 三个概率依次为:1−12(e−2/2+e−1)1 - \dfrac{1}{2}\left(e^{-\sqrt{2}/2} + e^{-1}\right)、12(e−2/2−e−2)\dfrac{1}{2}\left(e^{-\sqrt{2}/2} - e^{-\sqrt{2}}\right)、12e−1\dfrac{1}{2}e^{-1}。
  • (2) a=2a = 2;F(x)={0,x<0,12x2,0≤x<1,2x−12x2−1,1≤x<2,1,x≥2;F(x) = \begin{cases} 0, & x < 0, \\ \frac{1}{2}x^2, & 0 \le x < 1, \\ 2x - \frac{1}{2}x^2 - 1, & 1 \le x < 2, \\ 1, & x \ge 2; \end{cases} 三个概率依次为:14\dfrac{1}{4}、22−942\sqrt{2} - \dfrac{9}{4}、12\dfrac{1}{2}。

检验:

  • 对 (1):在 x=0x = 0 处两段均得 F(0)=12F(0) = \frac{1}{2},连续;由于 f(x)f(x) 关于 00 对称,P{X>1}=P{X<−1}=F(−1)=12e−1P\{X > 1\} = P\{X < -1\} = F(-1) = \frac{1}{2}e^{-1},吻合!
  • 对 (2):在 x=1x = 1 处两段均得 F(1)=12F(1) = \frac{1}{2},在 x=2x = 2 处均得 11,分布函数全程连续;f(x)f(x) 是底为 22、高为 11 的对称三角形,总面积 12×2×1=1\frac{1}{2}\times 2\times 1 = 1,中线 x=1x=1 右侧面积恰好为 12\frac{1}{2},与 P{X>1}=12P\{X > 1\} = \frac{1}{2} 完全吻合(注:印刷页第 50 页正文中第三个概率是 P{X>1}P\{X > 1\},部分 OCR 工具易误识为 P{∣X∣>1}P\{|X| > 1\},已核对教材原页图与书末答案确认)。
返回练习 2.1 第 12 题的索引位置 ↑