Topic 6 Correlation and Regression
Topic 6 Correlation and Regression
Topic 6 Correlation and Regression
Negative Correlation
• For an increase in ‘X’ there is a corresponding decreasing in ‘Y’
No Correlation
• For an increase in ‘X’ there is no corresponding reaction in ‘Y’
Exercise
1. Draw a scatter diagram for the following data and state the type of
relationship between the variables.
x 1 3 5 7 9 13 17
y 0 5 11 14 19 22 30
n = number of observations
Subject A B C D E
Statistics 1 2 3 4 5
Computer programming 3 1 4 2 5
Solution:
REGRESSION LINE
In a scatter diagrams, two axes are drawn on the graph paper. The value
of the independent variable x are plotted on the horizontal axis and the
values of the dependent variable y are plotted on the vertical axis.
A method use is the Method Of Least Squares. A regression line with a
positive slope indicates that there is a direct relationship between the
two variables. This means that if x increase, y will increase well, and vice
versa.
METHOD OF LEAST SQUARES
The least squares regression line of y on x for a set of data is in the form
of y = a + bx. The value of a and b in the regression line y = a + bx can be
calculated using the following formula:
Exercise (METHOD OF LEAST SQUARES)
Find the least squares regression line of y on x for the following data.
x 3 6 9 11 16 18
y 2 8 11 14 19 21