ContentDetail
Two variable statistics involves discovering if two variables are related or linked to each other in some way. e.g. - Does IQ determine income? - Is there a link between foot size and the height of a person? One variable is independent (x-axis) whilst the other is dependent (y-axis) This section of statistics involves conclusions that can be made about data that has not been collected using data that has been collected. Hence we can infer or predict certain points based on the data collected. Often this involves sampling as analysing an entire population can be difficult.
A scatter plot is necessary to quickly determine whether the variables are related, however, more formally we may need to measure: (1) Correlation – initially it may be necessary to determine if a relationship exists between two or more variables (Pearson’s product moment correlation coefficient) (2) Regression analysis – if a relationship appears to exist we can then conduct further analysis to determine the type and strength of the relationship (Linear Regression)
Correlation refers to the relationship or association between two variable. They are classified qualitatively in three ways: › Direction – positive, negative, none › Strength – weak, moderate, strong › Type – linear or non-linear They are classified quantitatively by Pearson’s product-moment correlation coefficient Outliers must also be considered and usually appear as isolated points away from the main body (group) of data. Dancing Statistics: Exam hint - use this language!
Positive linear correlations Negative linear correlations
Be careful not to jump to conclusions when you determine a strong correlation between two variables – why? › It does not mean that a causal relationship exists, i.e. one variable does not necessarily cause the other. › e.g – there is a strong correlation between arm length and running speed, does that mean that short arms cause a reduction in running speed? How Ice Cream Kills! MFGBDo
r tells how strong a correlation is between two variables There are several formulae for calculating “r” but the one given and used in the IB course is: › s xy is the covariance (It will always be given if required). If not given then use calculator method › S x is the standard deviation of x data values › S y is the standard deviation of y data values Exam hint – make sure you know that s x is σ x and s y is σ y on your GDC!
Read p. 44 in your book and follow along with the example to practice using the GDC to calculate r r lies between -1 and 1 › The closer to 1 the r-value is, the stronger the (positive) correlation › The closer to 0 the r-value is, the weaker the correlation › The closer to -1 the r-value is, the stronger the (negative) correlation
Correlation coefficient valueDescription of strength & direction 1Perfect positive 0.8 to 1Strong positive 0.6 to 0.8Moderate positive 0.4 to 0.6Weak positive 0 to 0.4No correlation -0.4 to 0No correlation -0.6 to -0.4Weak negative -0.8 to -0.6Moderate negative -1 to -0.8Strong negative Perfect negative Note: These are only guideline values, there is no specific division points where the description has to change from strong to moderate etc.
Use the data in the table below to calculate the r –value, given s xy =7.92 › Calculate the standard deviation of x › Calculate the standard deviation of y › Evaluate “r” using the IB formula and compare it to your calculator. # x y
The line of best fit is the “quick and easy” way of finding the trend of the data › By eye it should have approximately the same number of data points above the line as below › A more accurate method is to calculate the mean of the x data and y data and ensure the trend line passes through this point called the mean point Linear regression is the most accurate process for determining the trend line, as the process takes every data point in to account via a formula.
ContentDetail
A statistician wants to know if there is a correlation between HSC maths scores and the Math Studies IB exam scores. She collected the following data from 10 randomly selected students. › Is there a correlation ? If so, what kind? › Draw the scatter plot of IB vs HSC › Draw the line of best fit by finding the mean of each variable. › If an HSC score is 77, predict the corresponding IB score. › If an IB score was a 2, predict the corresponding HSC score. # HSC IB
The line of best fit by the process of linear regression can be found using the given IB formula: › s xy is the covariance (It will always be given if required). › S x is the standard deviation of x data values › s x 2 = (s x ) 2 i.e the std dev of x, then squared
Find the equation of the line of best fit in y=ax+b form using the linear regression formula, if: s xy = 9.23 s x = 3.46 = (14.4, 35.2)
Once you have a line of best fit you can use that equation to infer or predict what would happen to one variable if the other changes. If you are predicting values within the range of your current data then you are said to be “interpolating”. › The accuracy of interpolation depends on the accuracy of your line of best fit and your r-value If you are predicting values outside the range of your data then you are “extrapolating”. › The accuracy of extrapolation not only on the accuracy of your line of best fit but also whether it is reasonable to assume that the same trend will continue outside your range of data.