X=-1时,y=(x-1)^2=4
X=0时,y=(x-1)^2=1
X=1时,y=(x-1)^2=0
X=2时,y=(x-1)^2=1
所以y的取值可能是0、1、4
P(y=0)=P(X=1)=0.1
P(y=1)=P(X=0)+P(X=2)=0.2+0.4=0.6
P(y=4)=P(X=-1)=0.3
X=-1时,y=(x-1)^2=4
X=0时,y=(x-1)^2=1
X=1时,y=(x-1)^2=0
X=2时,y=(x-1)^2=1
所以y的取值可能是0、1、4
P(y=0)=P(X=1)=0.1
P(y=1)=P(X=0)+P(X=2)=0.2+0.4=0.6
P(y=4)=P(X=-1)=0.3