1.已知随机变量ξ满足P(ξ=1)=0.3,P(ξ=2)=0.7,则E(ξ)和D(ξ)的值分别为( )
A.0.6和0.7 B.1.7和0.09
C.0.3和0.7 D.1.7和0.21
答案 D
解析 E(ξ)=1×0.3+2×0.7=1.7,D(ξ)=(1.7-1)2×0.3+(1.7-2)2×0.7=0.21.
2.已知X的分布列为
则D(X)等于( )
A.0.7 B.0.61
C.-0.3 D.0
答案 B
解析 E(X)=-1×0.5+0×0.3+1×0.2=-0.3,D(X)=(-1+0.3)2×0.5+(0+0.3)2×0.3+(1+0.3)2×0.2=0.61.
3.设X~B(n,p),且E(X)=12,D(X)=4,则n与p的值分别为( )