7. Let ξ and η be two random variables, Dξ>0,Dη>0 and ρ=ρ(ξ,η) be their correlation coefficient. Show that ∣ρ∣⩽1. Moreover, if ∣ρ∣=1, then there exist constants a and b such that η=aξ+b. Furthermore, if ρ=1, then
Dηη−Eη=Dξξ−Eξ
(and, therefore, in the case ρ=1 the constant a is positive), and if ρ=−1, then
Dηη−Eη=−Dξξ−Eξ
(and, therefore, in this case a<0).
This one wants a proof. Work it on paper, read the official solution, then mark
yourself honestly — the ladder only means something if the record is true.
Official solution
Solution. Let
ξ=Dξξ−Eξ,η=Dηη−Eη
Then Eξ=Eη=0,Dξ=Eξ2=Dη=Eη2=1,
Eξη=DξDηE[(ξ−Eξ)(η−Eη)]=ρ(ξ,η)=ρ
We use the Cauchy-Bunyakovsky inequality:
∣ρ∣=∣Eξη∣⩽E∣ξη∣⩽Eξ2Eη2=1
In the introduced notation, it remains to show that if ρ=1, then ξ=η, and if ρ=−1, then ξ=−η: