返回题库

找出方差

Find the Variance

专题
Statistics / 统计
难度
L2

题目详情

对于 0x10 \leq x \leq 1,具有概率密度函数 f(x)=1f(x) = 1 且其他地方为零的均匀随机变量 XX 的方差是多少?

What is the variance of a uniform random variable XX with probability density function f(x)=1f(x) = 1 for 0x10 \leq x \leq 1 and zero elsewhere?

解析

Var(X)Var(X) 的公式为 E(X2)E(X)2E(X^2) - E(X)^2

为了找到 E(X2)E(X^2),我们可以取所有 f(x)X2f(x) \cdot X^2 的总和。在对连续分布上的数量求和时,积分是一个有用的工具。

E(X2)E(X^2) = 01f(x)X2dx=011X2dx=13X301=13\int_0^1f(x)X^2 dx= \int_0^1 1\cdot X^2 dx = \frac13X^3 \Big|_0^1 = \frac13

我们可以用类似的方式计算 E(X)2E(X)^2,先对 f(x)Xf(x)X 求和,然后对结果求平方,但更简单的方法是认识到均匀分布的平均结果将只是其中点。因此,E(X)2=(12)2=14E(X)^2 = (\frac12)^2 = \frac14

Var(X)=1314=112Var(X) = \frac13 - \frac14 = \frac1{12}

Original Explanation

The formula for Var(X)Var(X) is E(X2)E(X)2E(X^2) - E(X)^2

To find E(X2)E(X^2), we can take the sum of all f(x)X2f(x) \cdot X^2. The integral is a useful tool to use when summing quantities over a continuous distribution.

E(X2)E(X^2) = 01f(x)X2dx=011X2dx=13X301=13\int_0^1f(x)X^2 dx= \int_0^1 1\cdot X^2 dx = \frac13X^3 \Big|_0^1 = \frac13

We can compute E(X)2E(X)^2 in a similar way buy summing f(x)Xf(x)X and then squaring that result, but a simpler way would be to realize that the average result of a uniform distribution will just be its midpoint. Hence, E(X)2=(12)2=14E(X)^2 = (\frac12)^2 = \frac14

Var(X)=1314=112Var(X) = \frac13 - \frac14 = \frac1{12}