Correlation and Regression
Regression Lines

You will have met the idea of trend lines – these are essentially 'lines of best fit'. Note that there is little value in attempting to draw lines of best fit unless there is either strong positive or strong negative correlation between the points plotted, as shown in the following diagrams.

Also note that the lines of best fit should always pass through the point representing the mean values, \overline{x} and \overline{y}, of the data points.

Worked Examples

1

A sample of 8 U.S. Companies showed the following Sales and Profit levels for the year ending April 1994.

Sales Turnover ($m) (x)223626142534618
Profit ($m) (y)1.84.90.80.93.23.70.52.1
(a)

Draw a scatter diagram of this information.

Show me

(b)

After making suitable calculations draw in a line of best fit and use this to estimate Profit levels for two companies with annual turnovers respectively of $28m and $42m.

Show me

The mean values are calculated as \overline{x} = 22.6, \overline{y} = 2.24 , and shown on the scatter diagram. (The line of best fit will pass through this point.)

For x = $28m the estimate of the profit is $2.8m, and for x = $42m , the estimate is $4.2m.

(c)

State briefly which of the estimates in (b) is likely to be more accurate. Justify your choice.

Show me

The estimate for a turnover of $28m is likely to be more accurate than for $42m, as the latter is outside the range of data on which the line of best fit is based.

2

Brunel plc is keen to set up a forecasting system which will enable them to estimate maintenance for delivery vehicles of various ages.

The following table summarises the age in months (x) and maintenance cost (y) for a sample of ten such vehicles.

(a)

Draw a scatter diagram of the data on graph paper.

Show me

See the diagram in (c).

(b)

Find the mean value of the ages (x) and maintenance cost (y).

Show me \overline{x} = 48, \overline{y} = 91
(c)

Use your results from (b) and the fact that the line of best fit for the data passes through the point (20, 24.5) to draw this line on the graph.

Show me

(d)

Estimate from your line the maintenance cost for a vehicle aged

(i)

85 months Show me £184

(ii)

5 months Show me - £10

(iii)

60 months. Show me £120

(e)

Order these forecasts in terms of their reliability, listing the most reliable first.
Justify your choice.

Show me

£120 (in middle of data range), £185 (just outside data range), - £10 (makes no sense!)

3

An electric heater was switched on in a cold room and the temperature of the room was taken at 5 minute intervals. The results were recorded and plotted on the following graph.

(a)

Given that \overline{x} = 15 and \overline{y} = 7.4 , draw a line of best fit for these data.

Show me

(b)

Obtain the equation of this line of best fit in the form y = mx + c , stating clearly your values of m and c .

Show me

Intercept c = −0.4 and slope, m = \frac{10 - 4.8}{10}, (see triangle drawn on graph)

i.e. m = 0.52 ,

so

y = 0.52 x - 0.4

An alternative approach would be to note the intercept c = −0.4 from the diagram, so that

y = mx - 0.4

To pass through the point \overline{x} = 15, \overline{y} = 7.4 means that

7.4 = 15 m - 0.4

15 m = 7.4 + 0.4

m = \frac{7.8}{15} ≈ 0.52

giving the equation

y = 0.52x - 0.4

(c)

Use your equation to predict the temperature of the room 40 minutes after switching on the fire,

Show me
Predicted temperature = 0.52 × 40 - 0.4
= 20.4 °C
(d)

Give two reasons why this result may not be reliable.

Show me

The value of 40 minutes is outside the range of values on which the line of regression is based; the heater may not continue to increase if it has a thermostat on it.

4

Mr Bean often travels by taxi and has to keep details of the journeys in order to complete his claim form at the end of the week. Details for journeys made during a week are:

(a)

On graph paper, plot the above points.

Show me

(b)

Calculate the mean point of these data and use this line to draw the line of best fit on your graph.

Show me

distance, \overline{x} = 6; cost, \overline{y} = 4.9

(c)

Obtain the equation of your line of best fit in the form y = mx + c .

Show me

From the intercept, c = 1.85 , and from the construction, the gradient = \frac{2.4}{4.8} = 0.5

Thus

y = 0.50x + 1.85

(d)

Give an interpretation for the value of c in your calculation.

Show me

The intercept is the value of y when x = 0 , i.e. the cost involved when the taxi is not being used.

Exercises

Management at a building company are worried about the number of working days lost, by employees, due to illness.

At the start 2011 they select a random sample of ten employees.

For each employee they record the length of service (in years) with the company and the number of working days lost due to illness during 2100.

The results are summarised in the table and shown on the scatter diagram.

The line of best fit for the data

• has a gradient of -0.5

• passes through the point (9, 9.5)

Draw this line on a copy of the scatter diagram.

(a)

Write down the equation for the line of best fit in the form

y = mx + c.

y =
(b)

Estimate the number of days lost due to illness, during 2011, for an employee having 20 years' service with the company.

The table shows the number of miles travelled (thousands) and depth of tread (mm) on eight tyres of the same type.

Complete a copy of the scatter diagram for the data.
The first four points have been plotted for you.

(a)

For the data, the mean number of miles is 26 thousand.

Work out the mean depth of tread.

mm (to 1 d.p.)
(b)

Use these mean values to help you draw a line of best fit on your copy of the scatter diagram.

Use your line of best fit to estimate the depth of tread for a tyre that had travelled 20 thousand miles.

About mm (to 1 d.p.)
(c)

It is illegal to have less than 1.6 mm of tread on a tyre.

Use your line to estimate the number of miles travelled before a tyre becomes illegal.

thousand miles
(d)

Which of your answers, (b) or (c), do you think is more reliable?

(e)

Is there likely to be a causal relationship between the number of miles travelled and the depth of tread?