Correlation and Regression-Lecture9
Correlation and Regression-Lecture9
Regression
Finally, the question (4) asks what type of predictions can be made.
Predictions are made in all areas and daily
Correlation coefficient
Correlation coefficient (r): measures the strength and direction of a
linear relationship between two quantitative variables x and y.
Construct a scatter plot for the data obtained in a study on the number of absences and the final
grades of seven randomly selected students from a statistics class. The data are shown here.
Degree of correlation positive negative
Perfect correlation +1 -1
No correlation 0 0
Correlation coefficient for quantitative data
1. Pearson product moment correlation coefficient (PPMC)
Correlation coefficient examples
Example : Construct a scatter plot for the data obtained in a study on the number of
absences and the final grades of seven randomly selected students from a statistics class.
Also, find the correlation coefficient. The data are shown.
Example (2):
A researcher wishes to see if there is a relationship between the ages and net worth
of the wealthiest people in America. The data for a specific year are shown. Evaluate
Pearson’s correlation coefficient
Regression Line: (Line of best fit)
Linear Regression Equation:
𝑌 = 𝑎 + 𝑏𝑋
Where;
𝑛 𝑋𝑌 − 𝑋 𝑌
𝑏=
𝑛 𝑋2 − 𝑋 2
And
𝑌 𝑋
𝑎= −𝑏
𝑛 𝑛
Example:
Find the regression line for the data obtained in a study on the number of
absences and the final grades of seven randomly selected students from a
statistics class.
𝑦 𝑥
𝑎= −𝑏
𝑛 𝑛
511 57
𝑎= − (−3.662) = 102.493
7 7
Example2
Evaluate the Pearson’s correlation coefficient and regression line for the data
shown for car rental companies in the United States for a recent y.
Pearson’s correlation coefficient
regression line
𝑦 𝑥
𝑎= −𝑏
𝑛 𝑛
18.7 153.8
𝑎= — (0.106) = 0.369
6 6
𝑦 ′ = 𝑎 + 𝑏𝑥
𝑦 ′ = 0.369 + 0.106𝑥
Points
Example
Where,
𝒏 is the number of the data pairs
𝒅 is the rank difference.
Example
Example
Correlation coefficient examples
Example (5) : the following table gives the grades of some students in mathematics and
statistics. Find the correlation coefficient between them.
Reference:
Bluman, Allan G. Elementary statistics : a step by step approach / Allan Bluman. —
8th ed.