作者yueayase (scrya)
看板Statistics
标题Re: [问题] 请问一题条件期望值
时间Sun Mar 26 11:47:35 2023
※ 引述《ppppppppp (凹呜呜)》之铭言:
: 帮朋友问
: Suppose X~exp(λ) and Y~exp(μ) are independent. Find E[X|X>Y]
: 我朋友的笔记写的解法如下:
: Step1
: P(X>t, X>Y) = e^(-λt)-(λ/(λ+μ)*e^(-(λ+μ)*t))
: Step2
: P(X>t|X>Y)
: = P(X>t,X>Y)/P(X>Y)
: =(λ+μ)/μ*e^(-λt)-λ/μ*e^(-(λ+μ)*t)
: Step3
: P(X<=t|X>Y) = 1-P(X>t|X>Y)
: Step4
: E[X|X>Y] = 1/λ +1/(λ+μ)
: 请问Step4是怎麽从前三个步骤推导出来的?
: 谢谢
:
:
: ----
: Sent from BePTT on my Samsung SM-G9980
从Step3, f(x=t|X>Y) = dP(X<=t|X>Y)/dt = 1-dP(X>t|X>Y)/dt
= (λ+μ)λ/μe^(-λt)-(λ+μ)λ/μe^(-(λ+μ)*t)
= (λ+μ)λ/μ[e^(-λt)-e^(-(λ+μ)*t)]
∞
E[X|X>Y] = ∫ tf(x=t|X>Y)dt
0
∞
= (λ+μ)λ/μ∫t[e^(-λt)-e^(-(λ+μ)*t)]dt
0
∞ ∞
= (λ+μ)λ/μ[∫te^(-(λ*t)dt-∫te^(-(λ+μ)*t)dt]
0 0
= (λ+μ)λ/μ[1/λ^2-(λ+μ)^2]
= (λ+μ)/λμ-λ/[μ(λ+μ)]
2 2
(λ+μ) - λ
= --------------
λμ(λ+μ)
2
μ + 2λμ
= ------------
λμ(λ+μ)
μ + 2λ
= ------------
λ(λ+μ)
(μ+λ)+λ
= -----------
λ(λ+μ)
= 1/λ + 1/(λ+μ)
∞ -bt ∞ -u
PS: ∫ te dt = ∫ u/b e du/b = Gamma(2)/b^2 = 1!/b^2 = 1/b^2
0 0
另外,Step2可以推到Step4
利用X is a nonnegative random variale
Then
∞
E[X] = ∫ P(X>t)dt
0
∞
E[X|X>Y] = ∫ P(X>t|X>Y)dt
0
∞
= ∫ [(λ+μ)/μ*e^(-λt)-λ/μ*e^(-(λ+μ)*t)]dt
0
∞ ∞
= (λ+μ)/μ∫e^(-λt)dt-λ/μ∫e^(-(λ+μ)*t)dt
0 0
= (λ+μ)/μ*1/λ-λ/μ*1/(λ+μ)
2 2
(λ+μ) - λ
= --------------
λμ(λ+μ)
2
μ + 2λμ
= ------------
λμ(λ+μ)
μ + 2λ
= ------------
λ(λ+μ)
(μ+λ)+λ
= -----------
λ(λ+μ)
= 1/λ + 1/(λ+μ)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.227.16.171 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Statistics/M.1679802457.A.657.html
※ 编辑: yueayase (61.227.16.171 台湾), 03/26/2023 12:12:49
1F:推 ppppppppp: 谢谢您 03/26 13:46
2F:推 Rhomboid: 好奇请问 怎样在PTT打出这些公式的? 03/27 10:11
3F:推 jangwei: pcman 有内建特殊符号输入 03/30 02:43