example of scatter plots with linear curve fits, various degrees of certainty (Graphpad Prism)

for r squared = 0 there is no linear relationship, for 4 squared is 1 knowing X allows you with perfect certainty to predict Y.