Download presentation

Presentation is loading. Please wait.

Published byJames Forbes Modified over 3 years ago

1
Linear Scaling of Regression Data © Christine Crisp Teach A Level Maths Statistics 1

2
Linear Scaling of Regression Data "Certain images and/or photos on this presentation are the copyrighted property of JupiterImages and are being used with permission under license. These images and/or photos may not be copied or downloaded without permission from JupiterImages" Statistics 1 AQA EDEXCEL OCR

3
Linear Scaling of Regression Data We may want to change the units that have been used when collecting data. For example, we may want kilometres instead of miles or kilograms instead of pounds. Sometimes we may simply want to reduce the size of the numbers in data items. In both these cases we talk about scaling or coding the data. When dealing with regression lines, we can alter a regression line to different units without converting the original data.

4
Linear Scaling of Regression Data A researcher has the following data giving the average daily maximum temperature for each month in 1980 and the corresponding figures for the sales of milk in a supermarket. JFMAMJJASOND Temp (°F), F Sales ( thousands of pints ), y The y on F regression line is The correlation coefficient is 0·89. Recent data are measured in degrees Celsius and thousands of litres and the researcher wants to compare the sets of results by converting the older ones.

5
Linear Scaling of Regression Data To convert from pints to litres, we must divide by 1·76 so, if Y is the new variable, The conversion from degrees Fahrenheit to degrees Celsius is As the conversions are both linear, instead of converting all the data we can simply substitute into the regression line. We first need to rearrange both conversion equations.

6
Linear Scaling of Regression Data As we have only a small amount of data, we can check the effect of the scaling by converting the data and drawing both regression lines. Substituting in Simplifying:

7
Linear Scaling of Regression Data The correlation coefficient is a measure of the spread of the data so is not altered by linear scaling. ( Although the scales are different on the diagrams, we can see that the scatter of the points is unchanged. ) Product Moment Correlation Coefficient (p.m.c.c.) Graphs showing milk sales against temperature

8
Linear Scaling of Regression Data e.g.2 A set of data connects two variables, p and t. However, in order to calculate a regression line, the data has been coded using the formulae x 60t and y p 1000 If the regression line of y on x is y = 3·29 + 4·15x find the equation of the regression line for p on t. Solution: Substitute for y and x :

9
Linear Scaling of Regression Data SUMMARY To convert a scaled or coded regression equation, substitute for the variables using the conversion formulae. The product moment correlation coefficient (p.m.c.c.) is not changed by linear scaling.

10
Linear Scaling of Regression Data Exercise 1. Data for 2 variables, v and z have been scaled using the formulae If the equation of the resulting y on x regression line is find the equation of the regression line of v on z. Solution: becomes

11
Linear Scaling of Regression Data Exercise (b) Use your answer to (a) to find the equation of the regression line of t on m. (a) Find the equation of the y on x regression line, giving the values of the constants correct to 2 d.p. (c) What effect would the conversion have on the product moment correlation coefficient? 2. A company rep. records the distance travelled, m miles, and time taken, t minutes, for 5 journeys. The data were converted to kilometres and hours and are summarised below. The formulae for the conversions are and

12
Linear Scaling of Regression Data (b) The equation of the regression line of t on m. (a) The y on x regression line: (c) The conversion has no effect on the p.m.c.c. becomes so Solution:

13

14
Linear Scaling of Regression Data The following slides contain repeats of information on earlier slides, shown without colour, so that they can be printed and photocopied. For most purposes the slides can be printed as Handouts with up to 6 slides per sheet.

15
Linear Scaling of Regression Data We may want to change the units that have been used when collecting data. For example, we may want kilometres instead of miles or kilograms instead of pounds. Sometimes we may simply want to reduce the size of the numbers in data items. In both these cases we talk about scaling or coding the data. When dealing with regression lines, we can alter a regression line to different units without converting the original data.

16
Linear Scaling of Regression Data A researcher has the following data from 1980 giving the monthly average daily maximum temperature and sales of milk in a supermarket Sales ( thousands of pints ), y Temp (°F), F NMJJASODAMFJ The y on F regression line is The correlation coefficient is 0·89. Recent data are measured in degrees Celsius and thousands of litres and the researcher wants to compare the sets of results by converting the older ones.

17
Linear Scaling of Regression Data To convert from pints to litres, we must divide by 1·76 so, if Y is the new variable, The conversion from degrees Fahrenheit to degrees Celsius is As the conversions are both linear, instead of converting all the data we can simply substitute into the regression line. We first need to rearrange both conversion equations.

18
Linear Scaling of Regression Data As we have only a small amount of data, we can check the effect of the scaling by converting the data and drawing both regression lines. Substituting in Simplifying:

19
Linear Scaling of Regression Data The correlation coefficient is a measure of the spread of the data so is not altered by linear scaling. ( Although the scales are different on the diagrams, we can see that the scatter of the points is unchanged. ) Product Moment Correlation Coefficient (p.m.c.c.) Graphs showing milk sales against temperature

20
Linear Scaling of Regression Data SUMMARY To convert a scaled or coded regression equation, substitute for the variables using the conversion formulae. The product moment correlation coefficient (p.m.c.c.) is not changed by linear scaling.

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google