Teach A Level Maths Statistics 1 Linear Scaling

  • Slides: 20
Download presentation
“Teach A Level Maths” Statistics 1 Linear Scaling of Regression Data © Christine Crisp

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

Linear Scaling of Regression Data Statistics 1 AQA EDEXCEL OCR "Certain images and/or photos

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

Linear Scaling of Regression Data We may want to change the units that have

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.

Linear Scaling of Regression Data A researcher has the following data giving the average

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. J F M A M J J A S O N D Temp (°F), F 40 38 46 55 60 70 65 69 64 58 47 49 Sales ( thousands of 8 pints ), y 9 8 5 6 3 4 2 3 7 8 10 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.

Linear Scaling of Regression Data The conversion from degrees Fahrenheit to degrees Celsius is

Linear Scaling of Regression Data The conversion from degrees Fahrenheit to degrees Celsius is To convert from pints to litres, we must divide by 1· 76 so, if Y is the new variable, 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.

Linear Scaling of Regression Data Substituting in Simplifying: As we have only a small

Linear Scaling of Regression Data Substituting in Simplifying: 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.

Linear Scaling of Regression Data Graphs showing milk sales against temperature Product Moment Correlation

Linear Scaling of Regression Data Graphs showing milk sales against temperature Product Moment Correlation Coefficient (p. m. c. c. ) 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. )

Linear Scaling of Regression Data e. g. 2 A set of data connects two

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 = 60 t and y = p - 1000 If the regression line of y on x is y = 3· 29 + 4· 15 x find the equation of the regression line for p on t. Solution: Substitute for y and x:

Linear Scaling of Regression Data SUMMARY To convert a scaled or coded regression equation,

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.

Linear Scaling of Regression Data Exercise 1. Data for 2 variables, v and z

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

Linear Scaling of Regression Data Exercise 2. A company rep. records the distance travelled,

Linear Scaling of Regression Data Exercise 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 (a) Find the equation of the y on x regression line, giving the values of the constants correct to 2 d. p. (b) Use your answer to (a) to find the equation of the regression line of t on m. (c) What effect would the conversion have on the product moment correlation coefficient?

Solution: Linear Scaling of Regression Data (a) The y on x regression line: (b)

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

Linear Scaling of Regression Data The following slides contain repeats of information on earlier

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.

Linear Scaling of Regression Data We may want to change the units that have

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.

Linear Scaling of Regression Data A researcher has the following data from 1980 giving

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. J F M A M J J A S O N D Temp (°F), F 40 38 46 55 60 70 65 69 64 58 47 49 Sales ( thousands of 8 pints ), y 9 8 5 6 3 4 2 3 7 8 10 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.

Linear Scaling of Regression Data The conversion from degrees Fahrenheit to degrees Celsius is

Linear Scaling of Regression Data The conversion from degrees Fahrenheit to degrees Celsius is To convert from pints to litres, we must divide by 1· 76 so, if Y is the new variable, 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.

Linear Scaling of Regression Data Substituting in Simplifying: As we have only a small

Linear Scaling of Regression Data Substituting in Simplifying: 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.

Linear Scaling of Regression Data Graphs showing milk sales against temperature Product Moment Correlation

Linear Scaling of Regression Data Graphs showing milk sales against temperature Product Moment Correlation Coefficient (p. m. c. c. ) 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. )

Linear Scaling of Regression Data SUMMARY To convert a scaled or coded regression equation,

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.