Did this video help you?
Coding Bivariate Data (Edexcel International A Level Maths: Statistics 1)
Revision Note
Coding with PMCC
Does coding affect the product moment correlation coefficient (PMCC)?
- We can code data using linear transformations
- X = px + q
- Y = my + n
- The new variables won't necessarily be the upper case versions of the old variables - they could be any letter
- are related to variances so they are affected when the coding involves a multiplication
- Coding does not affect the product moment correlation coefficient
- The factors of p and m cancel out in the formula
Coding Linear Regression
Does coding affect the equation of the regression line of y on x?
- Coding does affect the equation of the regression line of y on x
- Coding is used to make numbers simpler to work with
- The equation of the regression line of Y on X can be calculated using the coded data
- This equation can then be used to find the equation of the regression line of y on x
How do I use coding to find the equation of the regression line of y on x?
- Given the variables x and y are coded using
- X = px + q
- Y = my + n
- The equation of the regression line of Y on X can be calculated as Y = A + BX
- To find the equation of the regression line of y on x
- Substitute the codes into the equation
- my + n = A + B(px + q)
- Rearrange into the form y = a + bx
- Substitute the codes into the equation
Worked example
Stewart collects data to compare the salaries, £s , and lengths of service, years, of employees in a business. Stewart codes the data using the formulae
.
Stewart finds that:
- the product moment correlation coefficient between and is 0.739,
- the equation of the regression line of on is .
(a)
Write down the product moment correlation coefficient between and .
(b)
The equation of the regression line of on can be written as . Find the values of and to three significant figures.
(a)
Write down the product moment correlation coefficient between and .
(b)
The equation of the regression line of on can be written as . Find the values of and to three significant figures.
Examiner Tip
- When rearranging the equation of the regression it is important that you don’t round your coefficients until the very end. Use your ANS button on your calculator to keep the accuracy.
You've read 0 of your 5 free revision notes this week
Sign up now. It’s free!
Did this page help you?