Notice that we have used the same variables as in the example above, but have added headings to the graph - although these are obviously not necessary simply in order to add a fitted line.

We call this a 'fitted' line because its slope and location depend upon the contents of variables X and Y.

We explore the logic and assumptions of linear regression in Unit 12.