Professional Documents
Culture Documents
REGRESSION
AND
CORRELATION
Agenda
Objective
Introduction
r-Pearson’s Coefficient of Correlation
Spearman’s Coefficient of Rank Correlation
Linear Regression
The End
Objective
At the end of this chapter, you should be able to
3/7/2018
Introduction – Cont…
Solution:
Rank x from the smallest (rx =1) to the largest x. If there are two x of equal
values, then the rank for each is the average of the two ranking. There are 3
values of x = 107, thus the ranking are 3, 4 and 5. To assign the correct rank
for x = 107, obtain the average rank for the three values of x. Hence,
Solution:
Linear Regression
When two variables have strong relationship
between them, then we can estimate the value of
one variable given the value of the other variable.
The method used for estimation is Least Square
Regression line. The line is in the form of
y = ax + b.
In this equation y is ____________
x is ______________
a is a gradient of the straight line
b is a y-intercept.
Least Square Linear Regression
The least square linear
regression line is the best
fit line on the scatter
diagram. It is the line with
the least distance or
nearest to all plotted
points.
The equation of the
regression line y on x is : y
= a x + b where
Example 5-3
Find the least square Linear Regression y and x for the following data.
Then estimate the value of y if x = 5.
TRY
Refer to the table,
a. Find the least squares
regression line for the data on
incomes and food
expenditures of seven
households given in table
above. Use income as an
independent variables and
food expenditure as a
dependent variable.
[a = 0.2642, b = 1.1414 ; y =0.2642x + 1.1414]
b. Calculate the correlation
coefficient for the example on
income and food expenditures
of seven households.
[r = 0.96 (strong positive correlation) ]
Websites:
18
http://www.public.iastate.edu/~dnett/S401/ncorrel
ation.pdf