SlideShare a Scribd company logo
1 of 31
SIMPLE
REGRESSION
AND
CORRELATION
Prepared by: WET SOCIETY :D
DEFINITION OF TERMS
CORRELATION
The correlations term is used when:
1) Both variables are random variables,
2) The end goal is simply to find a number that expresses the relation between the
variables
REGRESSION
The regression term is used when
1) One of the variables is a fixed variable,
2) The end goal is use the measure of relation to predict values of the random
variable based on values of the fixed variable
WET SOCIETY m/
CORRELATION
Correlations range from -1
(perfect negative relation)
through 0 (no relation) to +1
(perfect positive relation)
WET SOCIETY m/
CORRELATION = -1.0
WET SOCIETY m/
CORRELATION = 0.0
WET SOCIETY m/
CORRELATION = +1.0
WET SOCIETY m/
CALCULATING THE COVARIANCE:
The first step in calculating a correlation co-
efficient is to quantify the covariance between
two variables.
WET SOCIETY m/
CALCULATING THE COVARIANCE:
Alternative formula:
WET SOCIETY m/
THE PEARSON PRODUCT-MOMENT CORRELATION COEFFICIENT (R)
The Pearson Product-Moment Correlation Coefficient, r, is
computed simple by standardizing the covariance estimate
as follows:
This results in r values ranging from -1.0 to +1.0 as
discussed earlier
WET SOCIETY m/
THE PEARSON PRODUCT-MOMENT CORRELATION COEFFICIENT (R)
There is another way to represent this formula. It is:
where SPXY is the sum of the products of X and Y, SSX is the
sum of squares for X and SSY is the sum of squares for Y
WET SOCIETY m/
SUMS OF SQUARES AND SUMS OF PRODUCTS
WET SOCIETY m/
SUMS OF SQUARES AND SUMS OF PRODUCTS
WET SOCIETY m/
ADJUSTED R
WET SOCIETY m/
EXAMPLE 1
In this class, height and ratings of physical attractiveness vary
across individuals. What is the correlation between height and
these ratings in our class?
PhyHeightSubject
7691
8612
6683
5664
8665
....
107148
WET SOCIETY m/
We can create a scatter plot of these data by simply plotting
one variable against the other:
correlation = 0.146235 or +0.15
WET SOCIETY m/
EXAMPLE 2
Consider the height and weight variables from our class dataset ...
WET SOCIETY m/
SUM (XY) = 99064
Subject Height (X) Weight (Y)
1 69 108
2 61 130
3 68 135
4 66 135
5 66 120
6 63 115
7 72 150
8 62 105
9 62 115
10 67 145
11 66 132
12 63 120
Mean 65.42 125.83
Sum(X) = 785 Sum(Y) = 1510
Sum (X2) = 51473 Sum(Y2) = 192238
WET SOCIETY m/
WET SOCIETY m/
WET SOCIETY m/
So, based on the 12 subjects we examined,
the correlation between height and weight
was +0.55
WET SOCIETY m/
Unfortunately, the r we measure using our sample
is not an unbiased estimator of the population
correlation coefficient (rho)
We can correct for this using the adjusted
correlation coefficient which is computed as
follows:
WET SOCIETY m/
WET SOCIETY m/
THE REGRESSION LINE
The regression line represents
the best prediction of the
variable on the Y axis for each
point along the X axis.
WET SOCIETY m/
COMPUTING THE REGRESSION LINE
where = the predicted value of Y
b = the slope of the line (the change in Y as a function of X)
X = the various values of X
a = the intercept of the line (the point where the line hits the Y
axis)
WET SOCIETY m/
Slope(b) = (NΣXY - (ΣX)(ΣY)) /
(NΣX2 - (ΣX)2)
Intercept(a) = (ΣY – b(ΣX)) / N
where
x and y are the variables.
N = Number of values or elements
X = First Score
Y = Second Score
ΣXY = Sum of the product of first and
Second Scores
ΣX = Sum of First Scores
ΣY = Sum of Second Scores
ΣX2 = Sum of square First Scores
WET SOCIETY m/
REGRESSION EXAMPLE
To find the Simple/Linear Regression of
To find regression equation, we will first find slope,
intercept and use it to form regression equation..
X Values Y Values
60 3.1
61 3.6
62 3.8
63 4
65 4.1
WET SOCIETY m/
Step 1: Count the number of values.
N = 5
Step 2: Find XY, X2
See the below table
X Value Y Value X*Y X*X
60 3.1
60*3.1=
186
60*60=
3600
61 3.6
61*3.6=
219.6
61*61=
3721
62 3.8
62*3.8=
235.6
62*62=
3844
63 4 63*4=252
63*63=
3969
65 4.1
65*4.1=
266.5
65*65=
4225
WET SOCIETY m/
Step 3: Find ΣX, ΣY, ΣXY, ΣX2.
ΣX = 311
ΣY = 18.6
ΣXY = 1159.7
ΣX2 = 19359
WET SOCIETY m/
Step 4: Substitute in the above slope
formula given.
Slope(b) = (NΣXY - (ΣX)(ΣY)) /
(NΣX2 - (ΣX)2)
= ((5)*(1159.7)-
(311)*(18.6))/((5)*(19359)-(311)2)
= (5798.5 - 5784.6)/(96795 -
96721)
= 13.9/74
= 0.19
WET SOCIETY m/
Step 5: Now, again substitute in the above
intercept formula given.
Intercept(a) = (ΣY - b(ΣX)) / N
= (18.6 - 0.19(311))/5
= (18.6 - 59.09)/5
= -40.49/5
= -8.098
Step 6: Then substitute these values in
regression equation formula
Regression Equation(y) = a + bx
= -8.098 + 0.19x.
WET SOCIETY m/
Suppose if we want to know the approximate y
value for the variable x = 64. Then we can
substitute the value in the above equation.
Regression Equation(y) = a + bx
= -8.098 + 0.19(64).
= -8.098 + 12.16
= 4.06
This example will guide you to find the relationship
between two variables by calculating the
Regression from the above steps.
WET SOCIETY m/

More Related Content

What's hot

Measures of variability
Measures of variabilityMeasures of variability
Measures of variabilitysyedaumme
 
Standard Deviation and Variance
Standard Deviation and VarianceStandard Deviation and Variance
Standard Deviation and VarianceJufil Hombria
 
One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Testshoffma5
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
The Normal distribution
The Normal distributionThe Normal distribution
The Normal distributionSarfraz Ahmad
 
Z score presnetation
Z score presnetationZ score presnetation
Z score presnetationCarlo Magno
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution jundumaug1
 
Variance and standard deviation
Variance and standard deviationVariance and standard deviation
Variance and standard deviationAmrit Swaroop
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsLong Beach City College
 
Frequency Distributions
Frequency DistributionsFrequency Distributions
Frequency Distributionsjasondroesch
 
Correlation analysis
Correlation analysis Correlation analysis
Correlation analysis Misab P.T
 

What's hot (20)

Measures of variability
Measures of variabilityMeasures of variability
Measures of variability
 
Discrete and Continuous Random Variables
Discrete and Continuous Random VariablesDiscrete and Continuous Random Variables
Discrete and Continuous Random Variables
 
Standard Deviation and Variance
Standard Deviation and VarianceStandard Deviation and Variance
Standard Deviation and Variance
 
One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Test
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Probability and statistics
Probability and statisticsProbability and statistics
Probability and statistics
 
The Normal distribution
The Normal distributionThe Normal distribution
The Normal distribution
 
Intro to probability
Intro to probabilityIntro to probability
Intro to probability
 
Variability
VariabilityVariability
Variability
 
z-scores
z-scoresz-scores
z-scores
 
Frequency distribution
Frequency distributionFrequency distribution
Frequency distribution
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Z score presnetation
Z score presnetationZ score presnetation
Z score presnetation
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Variance and standard deviation
Variance and standard deviationVariance and standard deviation
Variance and standard deviation
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and Boxplots
 
Measures of Variability
Measures of VariabilityMeasures of Variability
Measures of Variability
 
Frequency Distributions
Frequency DistributionsFrequency Distributions
Frequency Distributions
 
Correlation analysis
Correlation analysis Correlation analysis
Correlation analysis
 

Viewers also liked

regression and correlation
regression and correlationregression and correlation
regression and correlationPriya Sharma
 
Chapter 6 simple regression and correlation
Chapter 6 simple regression and correlationChapter 6 simple regression and correlation
Chapter 6 simple regression and correlationRione Drevale
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Non Probability Sampling
Non Probability SamplingNon Probability Sampling
Non Probability SamplingMuhammad Farooq
 
Dyadic Communication
Dyadic CommunicationDyadic Communication
Dyadic CommunicationMary Grace
 
Sampling methods theory and practice
Sampling methods theory and practice Sampling methods theory and practice
Sampling methods theory and practice Ravindra Sharma
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsBabasab Patil
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionSumit Prajapati
 
Correlation & Regression
Correlation & RegressionCorrelation & Regression
Correlation & RegressionGrant Heller
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionMohit Asija
 
Pearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionPearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionAzmi Mohd Tamil
 

Viewers also liked (20)

regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
 
Stat
StatStat
Stat
 
Chapter 6 simple regression and correlation
Chapter 6 simple regression and correlationChapter 6 simple regression and correlation
Chapter 6 simple regression and correlation
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Non Probability Sampling
Non Probability SamplingNon Probability Sampling
Non Probability Sampling
 
Dyadic Communication
Dyadic CommunicationDyadic Communication
Dyadic Communication
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Sampling methods theory and practice
Sampling methods theory and practice Sampling methods theory and practice
Sampling methods theory and practice
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Hul final ppt
Hul final pptHul final ppt
Hul final ppt
 
Sampling
SamplingSampling
Sampling
 
Sampling of pharmaceuticals
Sampling  of pharmaceuticalsSampling  of pharmaceuticals
Sampling of pharmaceuticals
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 
Correlation & Regression
Correlation & RegressionCorrelation & Regression
Correlation & Regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Correlation analysis
Correlation analysisCorrelation analysis
Correlation analysis
 
Pearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionPearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear Regression
 

Similar to Simple regression and correlation

Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...RekhaChoudhary24
 
correlationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfcorrelationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfDrAmanSaxena
 
Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Muhammadasif909
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Neeraj Bhandari
 
Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Japheth Muthama
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JMJapheth Muthama
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing datamjlobetos
 
Analyzing Relations between Data Set - Part I
Analyzing Relations between Data Set - Part IAnalyzing Relations between Data Set - Part I
Analyzing Relations between Data Set - Part INaseha Sameen
 
Regression
Regression Regression
Regression Ali Raza
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREShriramKargaonkar
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptxMdRokonMia1
 

Similar to Simple regression and correlation (20)

Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
 
correlationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfcorrelationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdf
 
Regression
RegressionRegression
Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Statistics for entrepreneurs
Statistics for entrepreneurs Statistics for entrepreneurs
Statistics for entrepreneurs
 
Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
33851.ppt
33851.ppt33851.ppt
33851.ppt
 
Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Regression Analysis by Muthama JM
Regression Analysis by Muthama JM
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JM
 
Regression
RegressionRegression
Regression
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing data
 
ML Module 3.pdf
ML Module 3.pdfML Module 3.pdf
ML Module 3.pdf
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
Analyzing Relations between Data Set - Part I
Analyzing Relations between Data Set - Part IAnalyzing Relations between Data Set - Part I
Analyzing Relations between Data Set - Part I
 
Regression
Regression Regression
Regression
 
stats_ch12.pdf
stats_ch12.pdfstats_ch12.pdf
stats_ch12.pdf
 
Course pack unit 5
Course pack unit 5Course pack unit 5
Course pack unit 5
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HERE
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptx
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Simple regression and correlation

  • 2. DEFINITION OF TERMS CORRELATION The correlations term is used when: 1) Both variables are random variables, 2) The end goal is simply to find a number that expresses the relation between the variables REGRESSION The regression term is used when 1) One of the variables is a fixed variable, 2) The end goal is use the measure of relation to predict values of the random variable based on values of the fixed variable WET SOCIETY m/
  • 3. CORRELATION Correlations range from -1 (perfect negative relation) through 0 (no relation) to +1 (perfect positive relation) WET SOCIETY m/
  • 7. CALCULATING THE COVARIANCE: The first step in calculating a correlation co- efficient is to quantify the covariance between two variables. WET SOCIETY m/
  • 8. CALCULATING THE COVARIANCE: Alternative formula: WET SOCIETY m/
  • 9. THE PEARSON PRODUCT-MOMENT CORRELATION COEFFICIENT (R) The Pearson Product-Moment Correlation Coefficient, r, is computed simple by standardizing the covariance estimate as follows: This results in r values ranging from -1.0 to +1.0 as discussed earlier WET SOCIETY m/
  • 10. THE PEARSON PRODUCT-MOMENT CORRELATION COEFFICIENT (R) There is another way to represent this formula. It is: where SPXY is the sum of the products of X and Y, SSX is the sum of squares for X and SSY is the sum of squares for Y WET SOCIETY m/
  • 11. SUMS OF SQUARES AND SUMS OF PRODUCTS WET SOCIETY m/
  • 12. SUMS OF SQUARES AND SUMS OF PRODUCTS WET SOCIETY m/
  • 14. EXAMPLE 1 In this class, height and ratings of physical attractiveness vary across individuals. What is the correlation between height and these ratings in our class? PhyHeightSubject 7691 8612 6683 5664 8665 .... 107148 WET SOCIETY m/
  • 15. We can create a scatter plot of these data by simply plotting one variable against the other: correlation = 0.146235 or +0.15 WET SOCIETY m/
  • 16. EXAMPLE 2 Consider the height and weight variables from our class dataset ... WET SOCIETY m/
  • 17. SUM (XY) = 99064 Subject Height (X) Weight (Y) 1 69 108 2 61 130 3 68 135 4 66 135 5 66 120 6 63 115 7 72 150 8 62 105 9 62 115 10 67 145 11 66 132 12 63 120 Mean 65.42 125.83 Sum(X) = 785 Sum(Y) = 1510 Sum (X2) = 51473 Sum(Y2) = 192238 WET SOCIETY m/
  • 20. So, based on the 12 subjects we examined, the correlation between height and weight was +0.55 WET SOCIETY m/
  • 21. Unfortunately, the r we measure using our sample is not an unbiased estimator of the population correlation coefficient (rho) We can correct for this using the adjusted correlation coefficient which is computed as follows: WET SOCIETY m/
  • 23. THE REGRESSION LINE The regression line represents the best prediction of the variable on the Y axis for each point along the X axis. WET SOCIETY m/
  • 24. COMPUTING THE REGRESSION LINE where = the predicted value of Y b = the slope of the line (the change in Y as a function of X) X = the various values of X a = the intercept of the line (the point where the line hits the Y axis) WET SOCIETY m/
  • 25. Slope(b) = (NΣXY - (ΣX)(ΣY)) / (NΣX2 - (ΣX)2) Intercept(a) = (ΣY – b(ΣX)) / N where x and y are the variables. N = Number of values or elements X = First Score Y = Second Score ΣXY = Sum of the product of first and Second Scores ΣX = Sum of First Scores ΣY = Sum of Second Scores ΣX2 = Sum of square First Scores WET SOCIETY m/
  • 26. REGRESSION EXAMPLE To find the Simple/Linear Regression of To find regression equation, we will first find slope, intercept and use it to form regression equation.. X Values Y Values 60 3.1 61 3.6 62 3.8 63 4 65 4.1 WET SOCIETY m/
  • 27. Step 1: Count the number of values. N = 5 Step 2: Find XY, X2 See the below table X Value Y Value X*Y X*X 60 3.1 60*3.1= 186 60*60= 3600 61 3.6 61*3.6= 219.6 61*61= 3721 62 3.8 62*3.8= 235.6 62*62= 3844 63 4 63*4=252 63*63= 3969 65 4.1 65*4.1= 266.5 65*65= 4225 WET SOCIETY m/
  • 28. Step 3: Find ΣX, ΣY, ΣXY, ΣX2. ΣX = 311 ΣY = 18.6 ΣXY = 1159.7 ΣX2 = 19359 WET SOCIETY m/
  • 29. Step 4: Substitute in the above slope formula given. Slope(b) = (NΣXY - (ΣX)(ΣY)) / (NΣX2 - (ΣX)2) = ((5)*(1159.7)- (311)*(18.6))/((5)*(19359)-(311)2) = (5798.5 - 5784.6)/(96795 - 96721) = 13.9/74 = 0.19 WET SOCIETY m/
  • 30. Step 5: Now, again substitute in the above intercept formula given. Intercept(a) = (ΣY - b(ΣX)) / N = (18.6 - 0.19(311))/5 = (18.6 - 59.09)/5 = -40.49/5 = -8.098 Step 6: Then substitute these values in regression equation formula Regression Equation(y) = a + bx = -8.098 + 0.19x. WET SOCIETY m/
  • 31. Suppose if we want to know the approximate y value for the variable x = 64. Then we can substitute the value in the above equation. Regression Equation(y) = a + bx = -8.098 + 0.19(64). = -8.098 + 12.16 = 4.06 This example will guide you to find the relationship between two variables by calculating the Regression from the above steps. WET SOCIETY m/