For a probability distribution P and a random variable f (see probability theory), the mean square deviation is defined as
being EP the expected value.