Question: How define discr. distribution?

How do I define a distribution with an arbitrary mass function so it can be used exactly like those predifined, e.g., Statistics:-Mean(Poisson(lambda), Statistics:-MGF(Poisson(lambda),t), etc? As an example, Rademacher distribution can be used, or its straighforward generalization with probability of +1 being equal to p and that of -1 equal to 1-p=q. Thanks.

Please Wait...