Generic proof that R^2 is equal to squared correlation