设二维随机变量(X,Y)的分布律为
X\Y012
0P00P01P02
1P11P12P13
求Z=X—Y的分布律.
Z可能的取值为0,1,-2,-1 P{Z=0}=P{X=0,Y=0}+P{X=1,Y=1}=p00+p12 P{Z=1}=P{X=1,Y=0}=P11 P{Z=-2}=P{X=0,Y=2}=P02 P{Z=-1}=P{X=0,Y=1}+P{X=1,Y=2}=P01+P13 所以Z的分布律为 Z -2 -1 0 1 P P02 P01+P13 P00+P12 P11 (P01=P01;P02=P02; .....)