Let X be a random variable which takes only the finite number of different possible real values x1,x2,…,xn. Define the expectation E(X) and the variance var(X) of X. Show that, if a and b are real numbers, then E(aX+b)=aE(X)+b and express var(aX+b) similarly in terms of var(X).
Let λ be a positive real number. By considering the contribution to var(X) of those xi for which ∣xi−E(X)∣⩾λ, or otherwise, show that
P[∣X−E(X)∣⩾λ]⩽λ2var(X). Let k be a real number satisfying k⩾λ. If ∣xi−E(X)∣⩽k for all i, show that
P[∣X−E(X)∣⩾λ]⩾k2−λ2var(X)−λ2.