Probability and random variables
引入
8:03
电子工程数学方法
从交流电路开始,整个学位课程中的每一种方法都以这里所学的内容为基础。我们先复习微积分和代数,再建立研究动态过程的工具:复数、线性代数、微分方程和拉普拉斯变换。最后学习随机性和场。贯穿这门课的习惯是:对每个符号形式的答案,取一个具体数值,用第二种方法进行数值检验。
英文讲解 · 可切换中英文字幕
本课内容
| English | 释义 | 拼音 |
|---|---|---|
| statistics/stəˈtɪstɪks/ | 统计特性 | tǒng jì tè xìng |
| random variable/ˈrændəm ˈveərɪəbl/ | 随机变量 | suí jī biàn liàng |
| Gaussian | 高斯分布 | gāo sī fēn bù |
| probability distribution/ˌprɒbəˈbɪlɪti ˌdɪstrɪˈbjuːʃn/ | 概率分布 | gài lǜ fēn bù |
| variance/ˈveərɪəns/ | 方差 | fāng chà |
| standard deviation/ˈstændəd ˌdiːvɪˈeɪʃn/ | 标准差 | biāo zhǔn chà |
| expectation/ekspɪkˈteɪʃn/ | 期望 | qī wàng |
| averaging time | 平均时间 | píng jūn shí jiān |
| sensor noise | 传感器噪声 | chuán gǎn qì zào shēng |
| Gaussian noise | 高斯噪声 | gāo sī zào shēng |
不可预测但可测量的噪声
- 每次测量都含有噪声,且噪声本身无法逐个样本预测。
- 但它的统计特性每秒都保持稳定。仪器依赖这种稳定性,本课将介绍仪器所遵循的几条规则。
随机变量与高斯分布
- 随机变量 随机变量按 概率分布 概率分布取值。热噪声服从高斯(正态)分布 $N(\mu, \sigma^{2})$:$f(x) = \dfrac{1}{\sigma\sqrt{2\pi}}\,e^{-(x-\mu)^{2}/2\sigma^{2}}$。
- 每条密度曲线下方的面积均为 1。因此更宽的曲线必然更低。

均值、方差与标准差
- 期望 期望 $E[X] = \mu$ 是长期平均值。方差 方差 $\text{Var}(X) = E[X^{2}] - \mu^{2}$ 衡量离散程度。
- 标准差 标准差 $\sigma = \sqrt{\text{Var}(X)}$ 以信号自身单位表示:即示波器显示的噪声水平。具有 $\sigma = 2\,\text{mV}$ 的噪声其方差为 $4\,\text{mV}^{2}$。
Noise has a standard deviation of 3 mV. What is its variance, in mV²?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Variance is the square of the standard deviation: $3^{2} = 9\,\text{mV}^{2}$.
2σ 法则
- 对于高斯分布,约 95% 的样本落在距均值 $\pm 1.96\sigma$ 的范围内,仅有 4.55% 的样本超出 $\pm 2\sigma$。
- 在 $\sigma = 2\,\text{mV}$ 和 $\mu = 0$ 的条件下,95% 的范围约为 $\pm 3.9\,\text{mV}$:超出该范围的读数比较罕见,但并非不可能。
How much noise lies beyond 2σ
Shade the band within ±2σ of the mean. About 95.45% of Gaussian samples fall inside it and only 4.55% beyond; with σ = 2 mV that band is ±4 mV.
For Gaussian noise with mean 0 and σ = 2 mV, a single reading of 5 mV is impossible.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
5 mV is 2.5σ. Readings that far out are rare (about 1%) but they do happen.
独立噪声以方差形式叠加
- 对于独立噪声源,方差相加:$\sigma_{\text{total}} = \sqrt{\sigma_{1}^{2} + \sigma_{2}^{2}}$。标准差不能直接相加。
- 某一级向已有 3 mV 噪声的信号加入 2 mV 噪声,结果为 $\sqrt{9 + 4} = \sqrt{13} \approx 3.61\,\text{mV}$,而非 5 mV。较小噪声源对总噪声的贡献小于其本身的数值。
Two independent noise sources of 2 mV and 3 mV combine. What is the total?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Independent sources add in quadrature: $\sqrt{4 + 9} = \sqrt{13}$. Only perfectly correlated noise would add linearly.
Independent noise sources of 6 µV and 8 µV combine. What is the total noise, in µV?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
$\sqrt{6^{2} + 8^{2}} = \sqrt{100} = 10\,\mu\text{V}$, well below $6 + 8 = 14$.
平均运算使噪声除以 n 的平方根
- $n$ 个独立样本的平均值的标准差为 $\dfrac{\sigma}{\sqrt{n}}$。对 2 mV 噪声的 16 个样本取平均后,剩余噪声为 $\dfrac{2}{\sqrt{16}} = 0.5\,\text{mV}$。
- 以分贝为单位,信噪比提升 $20\log_{10}4 \approx 12\,\text{dB}$。此后每再提升 6 dB,所需样本数都要变为原来的四倍。
Averaging 16 independent noisy readings improves the signal-to-noise ratio by about
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
$\sigma$ falls by $\sqrt{16} = 4$, and $20\log_{10}4 \approx 12$ dB. This holds only for independent noise.
Readings carry 5 mV of independent noise. How many must be averaged to bring it down to 1 mV?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
$\dfrac{5}{\sqrt{n}} = 1$ gives $\sqrt{n} = 5$, so $n = 25$.
优先抑制最大噪声源
- 将占主导地位的 3 mV 噪声源减半至 1.5 mV,总噪声变为 $\sqrt{1.5^{2} + 2^{2}} = 2.5\,\text{mV}$:信噪比提升约 3.2 dB,且无需额外平均时间。
- 设计顺序:首先从源头抑制占主导地位的噪声源,然后对剩余部分进行平均处理。
例题:0.75 mV 的噪声限额
- 读数中的噪声不得超过 0.75 mV。噪声源包括:传感器产生的 3 mV 噪声和放大器产生的 2 mV 噪声。对 $n$ 个样本取平均后得到 $\sigma/\sqrt{n}$,因此 $n = (\sigma/0.75)^{2}$,结果向上取整。
- 按现有条件,每个样本的噪声为 $\sigma = \sqrt{3^{2} + 2^{2}} = 3.61$ mV;使用更好的传感器时,每个样本的噪声为 $\sqrt{1.5^{2} + 2^{2}} = 2.5$ mV:
| 方案 | 每个样本的 σ | 样本数 |
|---|---|---|
| 仅取平均 | 3.61 mV | 24 |
| 将传感器噪声减半,再取平均 | 2.5 mV | 12 |
- 先处理占主导地位的噪声源,可将测量时间缩短一半。此时放大器的 2 mV 噪声成为较大的噪声源,因此下一步应处理它。
Averaging 100 readings reduces 50 Hz mains hum by a factor of 10.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The $\sqrt{n}$ rule needs independent samples. Mains hum is correlated, so averaging 100 readings does not necessarily reduce it by a factor of 10; the result depends on the sampling times.
三个常见误区
- 叠加标准差。 应先叠加方差,再开平方根。
- 混淆 $\sigma$ 和 $\sigma^{2}$。 示波器显示 $\sigma$;多数公式使用 $\sigma^{2}$。
- 对相关噪声取平均。 $\sqrt{n}$ 法则要求样本相互独立;重复出现的工频干扰能否通过平均消除,取决于采样时间。
回顾
- 高斯噪声:均值为 $\mu$,离散程度为 $\sigma$;约 95% 落在 $\pm 2\sigma$ 范围内。
- 独立噪声:$\sigma_{\text{total}} = \sqrt{\sigma_{1}^{2} + \sigma_{2}^{2}}$。
- 对 $n$ 个独立样本取平均,使 $\sigma$ 除以 $\sqrt{n}$;先处理占主导地位的噪声源。
出了什么问题?只有网站团队能看到这些信息。