设随机变量X的概率密度为(1)f(x)={2x,0≤x≤1,{0,其他(2)f(x)=(1/2)e-|x|,-∞<x<+∞.求E

设随机变量X的概率密度为
(1)f(x)=
{2x,0≤x≤1,
{0,其他
(2)f(x)=(1/2)e-|x|,-∞<x<+∞.
求E(X).
【正确答案】:(1)E(X)=∫10x•2xdx=2/3 (2)E(X)=∫+∞-∞x•(1/2)e-|x|dx=∫0-∞(1/2)xexdx+∫+∞0(1/2)xe-xdx=0