Maxima Function
mean_bernoulli (p)
Returns the mean of a Bernoulli(p) random variable, with 0<p<1.
The Bernoulli(p) random variable is equivalent to the Binomial(1,p), therefore when Maxima has not enough information to get the result, a noun form based on the binomial mean is returned.
(%i1) load (distrib)$ (%i2) mean_bernoulli(p); (%o2) mean_binomial(1, p) (%i3) assume(0<p,p<1)$ mean_bernoulli(p); (%o4) p