题目
Problem
A random variable X takes values between 0 and 6 only and has probability density function f(x) as shown in the diagram, where a is a constant.
Given that E(X)=2, find Var(X).
(6)
题目中文翻译
随机变量 X 只在 0 与 6 之间取值,其概率密度函数 f(x) 如图所示,其中 a 是常数。
已知 E(X)=2,求 Var(X)。
(6)
原卷通用作答要求
Answer all questions. You should use a calculator where appropriate.
You must show all necessary working clearly; no marks will be given for unsupported answers from a calculator.
Give non-exact numerical answers correct to 3 significant figures, or 1 decimal place for angles in degrees, unless a different level of accuracy is specified in the question.
请回答所有题目。适当时应使用计算器。必须清楚展示所有必要的计算过程;仅给出计算器答案而没有过程,不予评分。除非题目另有精度要求,非精确数值答案保留 3 位有效数字,以度为单位的角度保留 1 位小数。
解答
解法一
思路
展开
图中密度下方面积是三角形,总面积为 1;确定高度后写出直线方程,再求二阶矩。
答题过程
展开
The area under the density is a triangle, so
21(6)a=1⟹a=31.
The line through (0,1/3) and (6,0) has gradient −1/18. Thus
f(x)=31−18x.
This applies for 0≤x≤6.
The second moment is
E(X2)===∫06x2(31−18x)dx[9x3−72x4]0624−18=6.
Using the given E(X)=2,
Var(X)==E(X2)−[E(X)]26−22=2.
解法二
思路
展开
也可先保留密度高度 a,利用已给的期望反求 a,再求二阶矩;最后检查密度总积分为 1。
答题过程
展开
The density line through (0,a) and (6,0) is
f(x)=a−6ax.
This applies for 0≤x≤6.
Using the given mean,
2=E(X)===∫06(ax−6ax2)dx[2ax2−18ax3]0618a−12a=6a.
Hence a=1/3. This also gives total probability ∫06f(x)dx=3a=1, as required. Now
E(X2)===∫06(ax2−6ax3)dx[3ax3−24ax4]0672a−54a=18a=6.
Therefore Var(X)=6−22=2.