Expectation and variance: the balance point, and the spread

Quiz 0, question 4. X is 1 with probability p and 0 otherwise. E[X] = ? Var(X) = ? Drag the fulcrum.

A Bernoulli variable's mean as a balance point and its variance as an area Left: a beam from 0 to 1 with mass 1 minus p at 0 and mass p at 1, balanced on a fulcrum at p. Below it, the squared deviations of each outcome drawn as squares, each shrunk by its probability, which leaves two rectangles of the same height, p times 1 minus p, tiling the unit width. Right: the variance against p, a parabola peaking at one half, and a strip of sampled flips with the running mean and variance.
p 0.300