(a) Unsymmetrical case. X has a two-point distribution if it takes two values x1,x2 with
f(x)={p1−px=x1x=x20<p<1,
with cdf F(x)=0 for x<x1, F(x)=p for x1≤x<x2, and F(x)=1 for x≥x2.
Mean: E(X)=x1p+x2(1−p)=px1+qx2, writing q=1−p. Variance: starting from V(X)=E(X2)−(E(X))2=(x12p+x22q)−(px1+qx2)2, expanding and simplifying (using p+q=1) collapses to the compact form
V(X)=pq(x2−x1)2. …