The ages of 5 husbands and their wives are tabulated below. Find the correlation coefficient for their ages.
Husband′s age (X)Wife′s age (Y)24212828322836344039
0.97
xyx−¯x(x−¯x)2(y−¯y)(y−¯y)2(x−¯x)(y−¯y)2421−864−981722828−416−248322800−240363441641616403986498172∑=160∑=186∑=168
¯x=∑xn=1605=32
¯y=∑yn=1505=30
M=∑ni=1(xi−¯x)(yi−¯y)√∑ni=1(xi−¯x)2√∑ni=1(yi−¯y)2=168√160×186=168172.5=0.97