The mean is defined by
x ¯ = ∫ 0 1 x p ( x ) d x {\displaystyle \displaystyle {\overline {x}}=\int _{0}^{1}xp(x)\,dx}