Unit 4-Lecture 5: Expectation

1 Exception

1.1 Definition:
  • If R is a random variable defined on a sample space S, then the expectation of R is:
    Ex[R]::=wSR(ω)Pr[ω]
  • Alternate Definition for any random variable R:
    Ex[R]=xrange(R)xPr[R=x]
1.2 Conditional Expectation
  • The conditional expectation Ex[R|A] of a random variable R given event A is:
    Ex[R|A]::=rrange(R)rPr[R=r|A]
1.3 Law of Total Expectation
  • Let R be a random variable on a sample space S, and suppose that A1, A2, … , is a partition of S. Then
    Ex[R]=iEx[R|Ai]Pr[Ai]
1.4 Mean Time to Failure
  • If a system independently fails at each time step with probability p, then the expected number of steps up to the first failure is 1p .
1.5 geometric distribution
  • A random variable, C , has a geometric distribution with parameter p iff codomain(C)=Z+ and:
    Pr[C=i]=(1p)i1p
  • If a random variable C has a geometric distribution with parameter p, then:
    Ex[C]=1p

2 Linearity of Expectation

  • For any random variables R1 and R2,
    Ex[a1R1+a2R2]=a1Ex[R1]+a2Ex[R2]
  • Sums of Indicator Random Variables:
    Linearity of expectation is especially useful when you have a sum of indicator random variables
2.1 Expectation of a Binomial Distribution
  • pn
2.2 Expectations of Products
  • If random variables R1,R2,...,Rk are mutually independent, then
    E(i=1kRi)=i=1kEx[Ri]

Reference

[1] Lehman E, Leighton F H, Meyer A R. Mathematics for Computer Science[J]. 2015.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值