SlideShare a Scribd company logo
2
Most read
4
Most read
6
Most read
Correlation and Regression
Padmavati
Correlation
• When two sets of data are strongly linked
together we say they have a High Correlation.
• The word Correlation is made of Co- (meaning
"together"), and Relation
• Correlation is Positive when the values increase
together
• Correlation is Negative when one value
decreases as the other increases
Correlation
• The local ice cream shop keeps track of how
much ice cream they sell versus the temperature
on that day
Correlation
Correlation
Low positive correlation
Calculation of correlation
Correlation coefficients are used to measure how strong a relationship is between
two variables. There are several types of correlation coefficient, but the most popular
is Pearson’s. Pearson’s correlation (also called linear correlation) is a correlation
coefficient commonly used in linear regression
Pearson Correlation Coefficient Formula:
Correlation coefficient formulas are used to find how strong a relationship is between
data. The formulas return a value between -1 and 1, where:
1 indicates a strong positive relationship.
-1 indicates a strong negative relationship.
A result of zero indicates no relationship at all
Calculation of correlation
Correlation coefficients are used to measure how strong a relationship is between
two variables. There are several types of correlation coefficient, but the most popular
is Pearson’s. Pearson’s correlation (also called linear correlation) is a correlation
coefficient commonly used in linear regression
Pearson Correlation Coefficient Formula:
Correlation coefficient formulas are used to find how strong a relationship is between
data. The formulas return a value between -1 and 1, where:
1 indicates a strong positive relationship.
-1 indicates a strong negative relationship.
A result of zero indicates no relationship at all
Calculation of correlation
Calculate the linear correlation
coefficient for the following data.
X = 4, 8 ,12, 16 and Y = 5, 10, 15, 20.
Given variables are,
X = 4, 8 ,12, 16 and Y = 5, 10, 15, 20
For finding the linear coefficient of these data, we need to first construct a table
for the required values.
Scatter Plots of Data with Various
Correlation Coefficients
Y
X
Y
X
Y
X
Y
X
Y
X
r = -1 r = -.6 r = 0
r = +.3
r = +1
Y
X
r = 0
Y
X
Y
X
Y
Y
X
X
Linear relationships Curvilinear relationships
Linear Correlation
Y
X
Y
X
Y
Y
X
X
Strong relationships Weak relationships
Linear Correlation
Linear Correlation
Y
X
No relationship
Linear regression
In correlation, the two variables are treated as equals.
In regression, one variable is considered independent (=predictor)
variable (X)
and
the other the dependent (=outcome) variable Y.
If you know something about X, this knowledge helps you
predict something about Y.
Line of Best Fit
Imagine you have some points, and want to have a line that best fits them like
this:
We can place the line "by eye": try to have the line as close as possible to all
points, and a similar number of points above and below the line.
But for better accuracy let's see how to calculate the line using Least Squares
Regression.
Principle of least squares
The method works by making the total of the square of the errors as small as
possible (that is why it is called "least squares"):
The straight line minimizes the sum of squared errors
So, when we square each of those errors and add them all up, the total is as small
as possible.
It is often required to find a relationship
between two or more variables. Least
Square is the method for finding the best
fit of a set of data points. It minimizes the
sum of the residuals of points from the
plotted curve.
Difference Between Correlation and Regression

More Related Content

PPTX
Chapter 6 simple regression and correlation
PPT
correlation and regression
PPT
Regression analysis
PPT
Simple linear regression (final)
PPTX
Correlation analysis
PPTX
Properties of correlation coefficient
PPTX
Correlation analysis
PPT
Regression
Chapter 6 simple regression and correlation
correlation and regression
Regression analysis
Simple linear regression (final)
Correlation analysis
Properties of correlation coefficient
Correlation analysis
Regression

What's hot (20)

PDF
Correlation and Regression Analysis using SPSS and Microsoft Excel
PPTX
Regression analysis.
PPTX
Presentation On Regression
PPTX
Simple linear regression
PPTX
Probability Theory
PPTX
Regression vs correlation and causation
PDF
Introduction to correlation and regression analysis
PPTX
Regression Analysis
PPT
Correlation - Biostatistics
PPT
Regression analysis ppt
PDF
Correlation Analysis
PDF
Correlation and Regression.pdf
PPTX
Regression
PPTX
Correlation analysis
PPTX
Regression analysis
PPTX
Correlation and Regression ppt
PDF
Regression Analysis
PPTX
Correlation
PDF
Regression analysis
PDF
Properties of coefficient of correlation
Correlation and Regression Analysis using SPSS and Microsoft Excel
Regression analysis.
Presentation On Regression
Simple linear regression
Probability Theory
Regression vs correlation and causation
Introduction to correlation and regression analysis
Regression Analysis
Correlation - Biostatistics
Regression analysis ppt
Correlation Analysis
Correlation and Regression.pdf
Regression
Correlation analysis
Regression analysis
Correlation and Regression ppt
Regression Analysis
Correlation
Regression analysis
Properties of coefficient of correlation
Ad

Similar to Correlation and regression (20)

PPT
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
PPTX
Stat 1163 -correlation and regression
PPTX
PDF
Correlation and Regression
PPTX
Statistics ppt
PDF
Unit 1 Correlation- BSRM.pdf
PPTX
Correlation and Regression.pptx
PDF
Correlation analysis
PPT
Chapter 10
PPT
Chapter 10
PPTX
5.-SIMPLE-LINEAR-REGRESSION-MEASURES-OF-CORRELATION.pptx
PPTX
Regression and correlation in statistics
PPTX
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
PPTX
Correlation and Its Types with Questions and Examples
PPT
Statistics
PPT
Statistics
PPTX
Correlation and regression
PPTX
Correlation and regression analysis
PPT
correlation and r3433333333333333333333333333333333333333333333333egratio111n...
PPT
Correlation
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Stat 1163 -correlation and regression
Correlation and Regression
Statistics ppt
Unit 1 Correlation- BSRM.pdf
Correlation and Regression.pptx
Correlation analysis
Chapter 10
Chapter 10
5.-SIMPLE-LINEAR-REGRESSION-MEASURES-OF-CORRELATION.pptx
Regression and correlation in statistics
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
Correlation and Its Types with Questions and Examples
Statistics
Statistics
Correlation and regression
Correlation and regression analysis
correlation and r3433333333333333333333333333333333333333333333333egratio111n...
Correlation
Ad

More from Padma Metta (9)

PPTX
Machine learning and types
PPTX
Statistical computing 1
PPTX
Statistical computing2
PPTX
Kernel density estimation (kde)
PPTX
Writing a Research Paper
PPTX
Bigdata and Hadoop with applications
PPTX
Machine learning and decision trees
PPTX
Machine Translation System: Chhattisgarhi to Hindi
PPT
HTML and ASP.NET
Machine learning and types
Statistical computing 1
Statistical computing2
Kernel density estimation (kde)
Writing a Research Paper
Bigdata and Hadoop with applications
Machine learning and decision trees
Machine Translation System: Chhattisgarhi to Hindi
HTML and ASP.NET

Recently uploaded (20)

PDF
composite construction of structures.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
737-MAX_SRG.pdf student reference guides
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Construction Project Organization Group 2.pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
composite construction of structures.pdf
Geodesy 1.pptx...............................................
UNIT 4 Total Quality Management .pptx
Safety Seminar civil to be ensured for safe working.
737-MAX_SRG.pdf student reference guides
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
OOP with Java - Java Introduction (Basics)
Internet of Things (IOT) - A guide to understanding
bas. eng. economics group 4 presentation 1.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Foundation to blockchain - A guide to Blockchain Tech
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Construction Project Organization Group 2.pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
III.4.1.2_The_Space_Environment.p pdffdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks

Correlation and regression

  • 2. Correlation • When two sets of data are strongly linked together we say they have a High Correlation. • The word Correlation is made of Co- (meaning "together"), and Relation • Correlation is Positive when the values increase together • Correlation is Negative when one value decreases as the other increases
  • 3. Correlation • The local ice cream shop keeps track of how much ice cream they sell versus the temperature on that day
  • 6. Calculation of correlation Correlation coefficients are used to measure how strong a relationship is between two variables. There are several types of correlation coefficient, but the most popular is Pearson’s. Pearson’s correlation (also called linear correlation) is a correlation coefficient commonly used in linear regression Pearson Correlation Coefficient Formula: Correlation coefficient formulas are used to find how strong a relationship is between data. The formulas return a value between -1 and 1, where: 1 indicates a strong positive relationship. -1 indicates a strong negative relationship. A result of zero indicates no relationship at all
  • 7. Calculation of correlation Correlation coefficients are used to measure how strong a relationship is between two variables. There are several types of correlation coefficient, but the most popular is Pearson’s. Pearson’s correlation (also called linear correlation) is a correlation coefficient commonly used in linear regression Pearson Correlation Coefficient Formula: Correlation coefficient formulas are used to find how strong a relationship is between data. The formulas return a value between -1 and 1, where: 1 indicates a strong positive relationship. -1 indicates a strong negative relationship. A result of zero indicates no relationship at all
  • 9. Calculate the linear correlation coefficient for the following data. X = 4, 8 ,12, 16 and Y = 5, 10, 15, 20.
  • 10. Given variables are, X = 4, 8 ,12, 16 and Y = 5, 10, 15, 20 For finding the linear coefficient of these data, we need to first construct a table for the required values.
  • 11. Scatter Plots of Data with Various Correlation Coefficients Y X Y X Y X Y X Y X r = -1 r = -.6 r = 0 r = +.3 r = +1 Y X r = 0
  • 12. Y X Y X Y Y X X Linear relationships Curvilinear relationships Linear Correlation
  • 13. Y X Y X Y Y X X Strong relationships Weak relationships Linear Correlation
  • 15. Linear regression In correlation, the two variables are treated as equals. In regression, one variable is considered independent (=predictor) variable (X) and the other the dependent (=outcome) variable Y. If you know something about X, this knowledge helps you predict something about Y.
  • 16. Line of Best Fit Imagine you have some points, and want to have a line that best fits them like this: We can place the line "by eye": try to have the line as close as possible to all points, and a similar number of points above and below the line. But for better accuracy let's see how to calculate the line using Least Squares Regression.
  • 17. Principle of least squares The method works by making the total of the square of the errors as small as possible (that is why it is called "least squares"): The straight line minimizes the sum of squared errors So, when we square each of those errors and add them all up, the total is as small as possible. It is often required to find a relationship between two or more variables. Least Square is the method for finding the best fit of a set of data points. It minimizes the sum of the residuals of points from the plotted curve.