SlideShare a Scribd company logo
1 of 14
Probability and Statistics for
Science and Engineering
Mohammed Anwer
Lecture 07, Regression
Lecture topics
Following topics would be covered
• Introduction
• Least-square linear regression
• Pearson’s correlation coefficient
Lecture 07, Regression
Introduction
• All problems of science and engineering have dependent and independent
variables
• For a large class of problems, the trend of the relation between the dependent
and independent variable is ‛linear’
• Without much fanfare, let us assume that we have
two variables x, and y those that have a linear trend
of relationship between them.
• What we understand by a ‘linear trend’ is that the
data points lie ‘around’ a straight line, not
necessarily on the line
Introduction
• Let (xi, yi), i = 1,n be a set of point through
which we would like to pass a straight line
• Let the equation of the line be
𝑦𝑖 = 𝛼 + 𝛽𝑥𝑖
• 𝑦𝑖are the points on the line corresponding to
the points xi.
• yi are the actual observational points, those are
different than 𝑦𝑖.
• Consider the difference between the points 𝑦𝑖
and yi to be ei.
a
Slope b
xi
yi
ei
Least-square linear regression
• Therefore
𝑒𝑖 = 𝑦𝑖 − 𝑦𝑖
𝑒𝑖 = 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖
• We need to put some conditions on ei so that we can obtain expressions for a
and b.
• The quantities ei can be negative and positive. If we impose a condition on ei so
that 𝑒𝑖 = 0, then it can be shown that there are infinite solutions for a and b.
• To address this issue, Gauss proposed to square ei, then minimize 𝑒𝑖
2
.
• The Sum Square of Errors is written as 𝑆𝑆𝐸 = 𝑒𝑖
2
= 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖
2
• SSE will be minimized with respect to a and b.
Least-square linear regression
• Therefore the problem ends up as an optimization problem.
• To minimize SSE, we will partially differentiate SSE with respect to a and b, and
set these equal to 0
𝜕𝑆𝑆𝐸
𝜕𝛼
= −2 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 = 0
𝜕𝑆𝑆𝐸
𝜕𝛽
= −2 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 𝑥𝑖 = 0
• Simplifying, we obtain
𝛼𝑛 + 𝛽 𝑥𝑖 = 𝑦𝑖
𝛼 𝑥𝑖 + 𝛽 𝑥𝑖
2
= 𝑥𝑖𝑦𝑖
Least-square linear regression
• Solving these, we obtain expressions for a and b.
𝛼 =
𝑦𝑖 𝑥𝑖
2
− 𝑥𝑖 𝑥𝑖𝑦𝑖
𝑛 𝑥𝑖
2
− 𝑥𝑖
2
𝛽 =
𝑛 𝑥𝑖𝑦𝑖 − 𝑥𝑖 𝑦𝑖
𝑛 𝑥𝑖
2
− 𝑥𝑖
2
Example: The raw material used in the production of a certain synthetic fiber is stored in a location
without humidity control. Measurements of the relative humidity in the storage location and the
moisture content of a sample of the raw material were taken over 15 days. The following data were
recorded.
Construct a least-square regression model.
Considering the Relative Humidity as x, and Moisture
Content as y, we can obtain 𝑥𝑖 = 692, 𝑦𝑖 = 186,
𝑥𝑖
2
= 33212, 𝑥𝑖𝑦𝑖 = 8997. Using these values,
we obtain
𝛼 =
186 × 33212 − 692 × 8997
15 × 33212 − 692 2
= −2.51
𝛽 =
15 × 8997 − 692 × 186
15 × 33212 − 692 2 = 0.32
Therefore, the equation of the line is y = –2.51 + 0.32 x
Relative humidity 46 53 29 61 36 39 47 49 52 38 55 32 57 54 44
Moisture content 12 15 7 17 10 11 11 12 14 9 16 8 18 14 12
0
2
4
6
8
10
12
14
16
18
20
25 30 35 40 45 50 55 60 65
Relative Humidity
Moisture
Content
Goodness of fit
• To find the values of a and b, all we need are a set of values
of x, and a set of values of y.
• In reality, x and y do not have to follow a linear trend,
yet we can still go ahead and find value of a and b.
• So, once a regression relation has been found, a relevant
question that arises is ‘how good is the fit?’
• We ascertain that by computing the Pearson’s correlation coefficient, defined by
r as
𝜌 =
(𝑥 − 𝑥)(𝑦 − 𝑦)
(𝑥 − 𝑥)2 (𝑦 − 𝑦)2
• where 𝑥 and 𝑦 are means of x and y respectively
Goodness of fit
• Correlation coefficient ranges between −1 and 1. The different values are shown
in the following figures.
0
0.5
1
1.5
2
2.5
3
0 0.5 1
0
0.5
1
1.5
2
2.5
3
3.5
0 0.5 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 0.5 1
0
0.5
1
1.5
2
2.5
3
0 0.5 1
0
0.5
1
1.5
2
2.5
3
3.5
0 0.5 1
r = 1 r = 0 r = −1
0 < r < 1 -1 < r < 0
Example: (continued)
Compute the Pearson’s correlation coefficient.
From the given data (𝑥 − 𝑥)2
= 85.848, (𝑦 − 𝑦)2
= 9.84 and (𝑥 − 𝑥)(𝑦 − 𝑦) = 27.75.
Therefore, the Pearson’s Correlation coefficient
𝜌 =
27.75
85.848 × 9.84
= 0.95
Relative humidity 46 53 29 61 36 39 47 49 52 38 55 32 57 54 44
Moisture content 12 15 7 17 10 11 11 12 14 9 16 8 18 14 12
This ends Lecture 07

More Related Content

Similar to Lecture0701.pptx by statistics by Mohammed anwar

Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptxShivankAggatwal
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysisNimrita Koul
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxcajativ595
 
CORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxCORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxVitalis Adongo
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relationnuwan udugampala
 
Regression analysis
Regression analysisRegression analysis
Regression analysisSrikant001p
 
Regression & correlation
Regression & correlationRegression & correlation
Regression & correlationAtiq Rehman
 
Line of best fit lesson
Line of best fit lessonLine of best fit lesson
Line of best fit lessonReneeTorres11
 
Multiple Regression Model.pdf
Multiple Regression Model.pdfMultiple Regression Model.pdf
Multiple Regression Model.pdfUsamaIqbal83
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxAnusuya123
 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Maninda Edirisooriya
 
Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Riri Ariyanty
 
what_are_Derivative.pdf
what_are_Derivative.pdfwhat_are_Derivative.pdf
what_are_Derivative.pdfPatrickNokrek
 
Chapter6
Chapter6Chapter6
Chapter6Vu Vo
 
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...Maninda Edirisooriya
 
machine learning.pptx
machine learning.pptxmachine learning.pptx
machine learning.pptxAbdusSadik
 

Similar to Lecture0701.pptx by statistics by Mohammed anwar (20)

Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptx
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Correlations
CorrelationsCorrelations
Correlations
 
Regression
RegressionRegression
Regression
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptx
 
CORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxCORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptx
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression & correlation
Regression & correlationRegression & correlation
Regression & correlation
 
Line of best fit lesson
Line of best fit lessonLine of best fit lesson
Line of best fit lesson
 
Multiple Regression Model.pdf
Multiple Regression Model.pdfMultiple Regression Model.pdf
Multiple Regression Model.pdf
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptx
 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
 
Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1
 
what_are_Derivative.pdf
what_are_Derivative.pdfwhat_are_Derivative.pdf
what_are_Derivative.pdf
 
Chapter6
Chapter6Chapter6
Chapter6
 
BRM-lecture-11.ppt
BRM-lecture-11.pptBRM-lecture-11.ppt
BRM-lecture-11.ppt
 
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...
Lecture 5 - Gradient Descent, a lecture in subject module Statistical & Machi...
 
machine learning.pptx
machine learning.pptxmachine learning.pptx
machine learning.pptx
 

Recently uploaded

2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdf2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdfNancy Goebel
 
2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptx2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptxnitishjain2015
 
Databricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdfDatabricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdfSkillCertProExams
 
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESBIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESfuthumetsaneliswa
 
SaaStr Workshop Wednesday with CEO of Guru
SaaStr Workshop Wednesday with CEO of GuruSaaStr Workshop Wednesday with CEO of Guru
SaaStr Workshop Wednesday with CEO of Gurusaastr
 
TSM unit 5 Toxicokinetics seminar by Ansari Aashif Raza.pptx
TSM unit 5 Toxicokinetics seminar by  Ansari Aashif Raza.pptxTSM unit 5 Toxicokinetics seminar by  Ansari Aashif Raza.pptx
TSM unit 5 Toxicokinetics seminar by Ansari Aashif Raza.pptxAnsari Aashif Raza Mohd Imtiyaz
 
"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXR"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXRMegan Campos
 
The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...Kayode Fayemi
 
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdfMicrosoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdfSkillCertProExams
 
Modernizing The Transport System:Dhaka Metro Rail
Modernizing The Transport System:Dhaka Metro RailModernizing The Transport System:Dhaka Metro Rail
Modernizing The Transport System:Dhaka Metro RailKhanMdReahnAftab
 
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESBIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESfuthumetsaneliswa
 
Using AI to boost productivity for developers
Using AI to boost productivity for developersUsing AI to boost productivity for developers
Using AI to boost productivity for developersTeri Eyenike
 
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...Sosiaali- ja terveysministeriö / yleiset
 

Recently uploaded (14)

2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdf2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdf
 
2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptx2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptx
 
Databricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdfDatabricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdf
 
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESBIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
 
SaaStr Workshop Wednesday with CEO of Guru
SaaStr Workshop Wednesday with CEO of GuruSaaStr Workshop Wednesday with CEO of Guru
SaaStr Workshop Wednesday with CEO of Guru
 
TSM unit 5 Toxicokinetics seminar by Ansari Aashif Raza.pptx
TSM unit 5 Toxicokinetics seminar by  Ansari Aashif Raza.pptxTSM unit 5 Toxicokinetics seminar by  Ansari Aashif Raza.pptx
TSM unit 5 Toxicokinetics seminar by Ansari Aashif Raza.pptx
 
"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXR"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXR
 
The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...
 
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdfMicrosoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
 
Modernizing The Transport System:Dhaka Metro Rail
Modernizing The Transport System:Dhaka Metro RailModernizing The Transport System:Dhaka Metro Rail
Modernizing The Transport System:Dhaka Metro Rail
 
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESBIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
 
Using AI to boost productivity for developers
Using AI to boost productivity for developersUsing AI to boost productivity for developers
Using AI to boost productivity for developers
 
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...
STM valmiusseminaari 26-04-2024 PUUMALAINEN Ajankohtaista kansainvälisestä yh...
 
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
 

Lecture0701.pptx by statistics by Mohammed anwar

  • 1. Probability and Statistics for Science and Engineering Mohammed Anwer
  • 3. Lecture topics Following topics would be covered • Introduction • Least-square linear regression • Pearson’s correlation coefficient
  • 5. Introduction • All problems of science and engineering have dependent and independent variables • For a large class of problems, the trend of the relation between the dependent and independent variable is ‛linear’ • Without much fanfare, let us assume that we have two variables x, and y those that have a linear trend of relationship between them. • What we understand by a ‘linear trend’ is that the data points lie ‘around’ a straight line, not necessarily on the line
  • 6. Introduction • Let (xi, yi), i = 1,n be a set of point through which we would like to pass a straight line • Let the equation of the line be 𝑦𝑖 = 𝛼 + 𝛽𝑥𝑖 • 𝑦𝑖are the points on the line corresponding to the points xi. • yi are the actual observational points, those are different than 𝑦𝑖. • Consider the difference between the points 𝑦𝑖 and yi to be ei. a Slope b xi yi ei
  • 7. Least-square linear regression • Therefore 𝑒𝑖 = 𝑦𝑖 − 𝑦𝑖 𝑒𝑖 = 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 • We need to put some conditions on ei so that we can obtain expressions for a and b. • The quantities ei can be negative and positive. If we impose a condition on ei so that 𝑒𝑖 = 0, then it can be shown that there are infinite solutions for a and b. • To address this issue, Gauss proposed to square ei, then minimize 𝑒𝑖 2 . • The Sum Square of Errors is written as 𝑆𝑆𝐸 = 𝑒𝑖 2 = 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 2 • SSE will be minimized with respect to a and b.
  • 8. Least-square linear regression • Therefore the problem ends up as an optimization problem. • To minimize SSE, we will partially differentiate SSE with respect to a and b, and set these equal to 0 𝜕𝑆𝑆𝐸 𝜕𝛼 = −2 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 = 0 𝜕𝑆𝑆𝐸 𝜕𝛽 = −2 𝑦𝑖 − 𝛼 − 𝛽𝑥𝑖 𝑥𝑖 = 0 • Simplifying, we obtain 𝛼𝑛 + 𝛽 𝑥𝑖 = 𝑦𝑖 𝛼 𝑥𝑖 + 𝛽 𝑥𝑖 2 = 𝑥𝑖𝑦𝑖
  • 9. Least-square linear regression • Solving these, we obtain expressions for a and b. 𝛼 = 𝑦𝑖 𝑥𝑖 2 − 𝑥𝑖 𝑥𝑖𝑦𝑖 𝑛 𝑥𝑖 2 − 𝑥𝑖 2 𝛽 = 𝑛 𝑥𝑖𝑦𝑖 − 𝑥𝑖 𝑦𝑖 𝑛 𝑥𝑖 2 − 𝑥𝑖 2
  • 10. Example: The raw material used in the production of a certain synthetic fiber is stored in a location without humidity control. Measurements of the relative humidity in the storage location and the moisture content of a sample of the raw material were taken over 15 days. The following data were recorded. Construct a least-square regression model. Considering the Relative Humidity as x, and Moisture Content as y, we can obtain 𝑥𝑖 = 692, 𝑦𝑖 = 186, 𝑥𝑖 2 = 33212, 𝑥𝑖𝑦𝑖 = 8997. Using these values, we obtain 𝛼 = 186 × 33212 − 692 × 8997 15 × 33212 − 692 2 = −2.51 𝛽 = 15 × 8997 − 692 × 186 15 × 33212 − 692 2 = 0.32 Therefore, the equation of the line is y = –2.51 + 0.32 x Relative humidity 46 53 29 61 36 39 47 49 52 38 55 32 57 54 44 Moisture content 12 15 7 17 10 11 11 12 14 9 16 8 18 14 12 0 2 4 6 8 10 12 14 16 18 20 25 30 35 40 45 50 55 60 65 Relative Humidity Moisture Content
  • 11. Goodness of fit • To find the values of a and b, all we need are a set of values of x, and a set of values of y. • In reality, x and y do not have to follow a linear trend, yet we can still go ahead and find value of a and b. • So, once a regression relation has been found, a relevant question that arises is ‘how good is the fit?’ • We ascertain that by computing the Pearson’s correlation coefficient, defined by r as 𝜌 = (𝑥 − 𝑥)(𝑦 − 𝑦) (𝑥 − 𝑥)2 (𝑦 − 𝑦)2 • where 𝑥 and 𝑦 are means of x and y respectively
  • 12. Goodness of fit • Correlation coefficient ranges between −1 and 1. The different values are shown in the following figures. 0 0.5 1 1.5 2 2.5 3 0 0.5 1 0 0.5 1 1.5 2 2.5 3 3.5 0 0.5 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.5 1 0 0.5 1 1.5 2 2.5 3 0 0.5 1 0 0.5 1 1.5 2 2.5 3 3.5 0 0.5 1 r = 1 r = 0 r = −1 0 < r < 1 -1 < r < 0
  • 13. Example: (continued) Compute the Pearson’s correlation coefficient. From the given data (𝑥 − 𝑥)2 = 85.848, (𝑦 − 𝑦)2 = 9.84 and (𝑥 − 𝑥)(𝑦 − 𝑦) = 27.75. Therefore, the Pearson’s Correlation coefficient 𝜌 = 27.75 85.848 × 9.84 = 0.95 Relative humidity 46 53 29 61 36 39 47 49 52 38 55 32 57 54 44 Moisture content 12 15 7 17 10 11 11 12 14 9 16 8 18 14 12