Calculate r the correlation coefficient by hand

Source: i.ytimg.com