I saw other similar posts where they do the integration from math stackexchange, but confused about this one since it is given in p. The following is my problem.
I was looking to find the mean from the following cumulative distribution function.
The function F(x) is
0 when z<o
p when o $\leq$ z<2
1 when z$\geq$ 2
The answer given in the solution is 2(1-p) but I couldn't follow the steps. I saw other similar posts where they do the integration from math stackexchange, but confused about this one since it is given in p.
appreciate your support. Thanks!