Question: Define discrete point probability distributions and caculate the mean of the sum of them

first question:

Define a two point distribution:
f1(x):=piecewise(x = 0, 0.3, x = 0.1, 0.7, 0)

Dist1 := Distribution(PDF = f1)

R1 := RandomVariable(Dist1)

Mean(R1)

Why Mean(R1) gives 0? should be 0.07...

If I managed to define antother discrete point distribution say R2. Can I define R:=R1+R2 and then caculate Mean(R) or even plot PDF of R?

 

Please Wait...