Source: http://mysite.science.uottawa.ca/jkeillor/English/Teaching_files/Final-sim-corr.pdf