题目
Problem
The probability density function, f, of a random variable X is given by
f(x)={k(1+cosx)00≤x≤π,otherwise,
where k is a constant.
(a) Show that k=π1.
(3)
(b) Verify that the median of X lies between 0.83 and 0.84.
(3)
(c) Find the exact value of E(X).
(4)
题目中文翻译
随机变量 X 的概率密度函数 f 为
f(x)={k(1+cosx)00≤x≤π,其他情况,
其中 k 为常数。
(a) 证明 k=π1。
(3)
(b) 验证 X 的中位数介于 0.83 与 0.84 之间。
(3)
(c) 求 E(X) 的精确值。
(4)
原卷通用作答要求
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 位小数。
解答
(a)
解法一
思路
展开
将密度在0至π上积分并令总概率为1,展示上下限代入得到kπ等于1。
答题过程
展开
∫0πk(1+cosx)dx=k[x+sinx]0π=k(π+sinπ−0−sin0)=kπ=1,1,1,1.
Hence k=π1, as required.
(b)
解法一
思路
展开
求累计分布在0.83与0.84的值,并确认它们分居0.5两侧。三角函数使用弧度。
答题过程
展开
For 0≤t≤π,
F(t)=π1∫0t(1+cosx)dx=πt+sint.
Using radians,
F(0.83)=π0.83+sin0.83=0.499088…<0.5,
whereas
F(0.84)=π0.84+sin0.84=0.504408…>0.5.
Since F is continuous and strictly increasing in this interval, the median satisfies 0.83<m<0.84.
(c)
解法一
思路
展开
期望积分中x的部分直接积分,x乘余弦用分部积分,最后保留含π的精确答案。
答题过程
展开
E(X)=π1∫0π(x+xcosx)dx.
Integration by parts gives
∫xcosxdx==xsinx−∫sinxdxxsinx+cosx.
Therefore
E(X)===π1[2x2+xsinx+cosx]0ππ1(2π2−1−1)2π−π2.