Results are 1/4HH 1/2HT or TH and 1/4TT x(i) = (2,1,0) y(i) = 0,1,2
xavg = sum of p(xi)xi = 1/4(2) + 1/2(1) + 1/4(0) = 1 same for yavg = 1
The correlation coefficient is the covariance of x and y divided by the product of the standard deviations of x and y.
Covariance is E((x-xavg)(y-yavg) = (1/4)(2-1)(0-1) + (1/2)1-1)(1-1) + 1/4(0-1)(2-1) = -1/2
The variance of x is E((x-xavg)2) = 1/4(2-1)2 + 1/2(1-1)2 + 1/4(0-1)2 = 1/2 (same for y)
This leads to σxσy = (1/sqrt(2))(1/sqrt(2)) = 1/2
So correlation coefficient is (-1/2)/(1/2) = -1
Beyond this the hint is telling you that the line of best fit is y = 2-x for which the points are completely inversely correlated r = -1
Please consider a tutor. Take care.