Libeeth B. Guevarra
Department of Mathematics and Natural
Sciences
Data Management 1
Correlation and Regression
Example
Construct a scatter plot for the data shown for
car rental companies in City A for a recent year.
Data Management 3
Correlation and Regression
Data Management 4
Correlation and Regression
Example
Compute the correlation coefficient for the data:
Data Management 5
Correlation and Regression
y − ȳ = m(x − x̄)
Data Management 6
Correlation and Regression
y − ȳ = m(x − x̄)
where:
x̄ = mean of variable x
ȳ = mean of variable y
m =slope of the line
P
xy − nx̄ ȳ
m=P 2
x − n(x̄)2
Data Management 7
Correlation and Regression
Example
Find the equation of the regression line for the
data
Data Management 8
Correlation and Regression
Data Management 9
Correlation and Regression
Data Management 10