SlideShare a Scribd company logo
1 of 13
“ Pearson’s Correlation Coefficient”
Presented by : Eng. Waleed Alzaghal
YouTube Channel : Waleed Alzaghal
Pearson Correlation Coefficient
The correlation coefficient (r) is a measure of the strength and the direction of
a linear relationship between two variables x and y.
Strength and Direction of Correlation
A single outlier point can significantly change the correlation coefficient r
r = 0.88
r = - 0.08
Obs. x i y j
1 x 1 y 1
2 x 2 y 2
3 x 3 y 3
… … …
… … …
… … …
… … …
… … …
n x n y n
Sum
Obs. x y
1 1 8
2 10 4
3 9 4
4 6 5
5 5 7
6 3 7
7 2 9
Sum 36 44
x 2
1
100
81
36
25
9
4
256
y2
64
16
16
25
49
49
81
300
xy
8
40
36
30
35
21
18
188
• Sum Up x and y
• Compute x2 and Sum Up
• Compute y2 and Sum Up
• Compute xy and Sum Up
Apply,
𝑟 =
𝑛 𝑥𝑦 − ( 𝑥)( 𝑦)
(𝑛 𝑥2 − ( 𝑥)2)(𝑛 𝑦2 − ( 𝑦)2
𝑟 ≈ − 0.94 (Strong negative relationship)
Obs. x y x 2
y2
xy
1 1 8 1 64 8
2 10 4 100 16 40
3 9 4 81 16 36
4 6 5 36 25 30
5 5 7 25 49 35
6 3 7 9 49 21
7 2 9 4 81 18
Sum 36 44 256 300 188
( x - x̅ )
-4.14
4.86
3.86
0.86
-0.14
-2.14
-3.14
0.02
( x - x̅ )2
17.14
23.62
14.90
0.74
0.02
4.58
9.86
70.86
( y - y̅ )
1.71
-2.29
-2.29
-1.29
0.71
0.71
2.71
-0.03
( y - y̅ )2
2.92
5.24
5.24
1.66
0.50
0.50
7.34
23.43
( x - x̅ )( y - y̅ )
-7.08
-11.13
-8.84
-1.11
-0.10
-1.52
-8.51
-38.29
• Compute the Mean for x and y
• Compute ( x - x̅ ) and Sum up
• Compute ( x - x̅ )2 and Sum up
• Compute ( y - y̅ ) and Sum up
• Compute ( y - y̅ )2 and Sum up
• Compute ( x - x̅ )( y - y̅ ) and Sum up
Obs. x y
1 1 8
2 10 4
3 9 4
4 6 5
5 5 7
6 3 7
7 2 9
Sum 36 44
Count 7 7
Mean 5.14 6.29
Apply, r =
( 𝑥 − 𝑥 )( 𝑦 − 𝑦 )
𝑥 − 𝑥 2
( 𝑦− 𝑦 )2
r =
( 𝑥 − 𝑥 )( 𝑦 − 𝑦 )
𝑥 − 𝑥 2
( 𝑦− 𝑦 )2
r ≈ − 0.94 (Strong negative relationship)
Obs. x y x 2
y2
xy
1 8 16 64 256 128
2 9 9 81 81 81
3 10 4 100 16 40
4 11 1 121 1 11
5 12 0 144 0 0
6 13 1 169 1 13
7 14 4 196 16 56
8 15 9 225 81 135
9 16 16 256 256 256
Sum 108 60 1356 708 720
𝑟 =
𝑛 𝑥𝑦 − ( 𝑥)( 𝑦)
(𝑛 𝑥2 − ( 𝑥)2). (𝑛 𝑦2 − ( 𝑦)2
𝑟 =
9 720 − (108)(60)
( 9 1356 − 108 2)( 9 708 − 60 2)
r = 0.0 (No relationship because of the nonlinearity between the two variables)
(r does not describe curved relationships)

More Related Content

What's hot

Diagonalization and eigen
Diagonalization and eigenDiagonalization and eigen
Diagonalization and eigenParesh Parmar
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2Mohammad Tawfik
 
Vectors space definition with axiom classification
Vectors space definition with axiom classificationVectors space definition with axiom classification
Vectors space definition with axiom classificationkishor pokar
 
Quantum phase estimation
Quantum phase estimationQuantum phase estimation
Quantum phase estimationtakumitano
 
Quantum fourier transformation
Quantum fourier transformationQuantum fourier transformation
Quantum fourier transformationtakumitano
 
Properties of coefficient of correlation
Properties of coefficient of correlationProperties of coefficient of correlation
Properties of coefficient of correlationNadeem Uddin
 
Applied mathematics
Applied mathematicsApplied mathematics
Applied mathematicsssuserada5be
 
A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)Nadeem Uddin
 
量子フーリエ変換まとめ
量子フーリエ変換まとめ量子フーリエ変換まとめ
量子フーリエ変換まとめFukiNakamura
 
Revmidterm 1
Revmidterm 1Revmidterm 1
Revmidterm 1IIUM
 
Coursera 2week
Coursera  2weekCoursera  2week
Coursera 2weekcsl9496
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODreach2arkaELECTRICAL
 
量子位相推定
量子位相推定量子位相推定
量子位相推定FukiNakamura
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationRai University
 
Fixed point Iterative Method
Fixed point Iterative MethodFixed point Iterative Method
Fixed point Iterative MethodNasima Akhtar
 

What's hot (20)

Diagonalization and eigen
Diagonalization and eigenDiagonalization and eigen
Diagonalization and eigen
 
3 mal1
3 mal13 mal1
3 mal1
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2
 
Vectors space definition with axiom classification
Vectors space definition with axiom classificationVectors space definition with axiom classification
Vectors space definition with axiom classification
 
Quantum phase estimation
Quantum phase estimationQuantum phase estimation
Quantum phase estimation
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
 
Quantum fourier transformation
Quantum fourier transformationQuantum fourier transformation
Quantum fourier transformation
 
Tangents and normals
Tangents and normalsTangents and normals
Tangents and normals
 
Properties of coefficient of correlation
Properties of coefficient of correlationProperties of coefficient of correlation
Properties of coefficient of correlation
 
Applied mathematics
Applied mathematicsApplied mathematics
Applied mathematics
 
A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)
 
量子フーリエ変換まとめ
量子フーリエ変換まとめ量子フーリエ変換まとめ
量子フーリエ変換まとめ
 
Revmidterm 1
Revmidterm 1Revmidterm 1
Revmidterm 1
 
Coursera 2week
Coursera  2weekCoursera  2week
Coursera 2week
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
 
量子位相推定
量子位相推定量子位相推定
量子位相推定
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integration
 
Fixed point Iterative Method
Fixed point Iterative MethodFixed point Iterative Method
Fixed point Iterative Method
 
07 interpolation
07 interpolation07 interpolation
07 interpolation
 

Similar to Pearson's Correlation Coefficient Explained

07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processingJordanJohmMallillin
 
Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Muhammadasif909
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and RegressionNeha Dokania
 
Regression and correlation in statistics
Regression and correlation in statisticsRegression and correlation in statistics
Regression and correlation in statisticsiphone4s4
 
B.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationB.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationRai University
 
Means and variances of random variables
Means and variances of random variablesMeans and variances of random variables
Means and variances of random variablesUlster BOCES
 
Spearman rank correlation coefficient
Spearman rank correlation coefficientSpearman rank correlation coefficient
Spearman rank correlation coefficientWaleed Zaghal
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression AnalysisRekha Rani
 
51554 0131469657 ism-13
51554 0131469657 ism-1351554 0131469657 ism-13
51554 0131469657 ism-13Carlos Fuentes
 
Linear regression using least squares
Linear regression using least squaresLinear regression using least squares
Linear regression using least squaresWaleed Zaghal
 
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
 
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTION
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTIONPROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTION
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTIONJournal For Research
 

Similar to Pearson's Correlation Coefficient Explained (20)

Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing
 
Regression
RegressionRegression
Regression
 
legendre.pptx
legendre.pptxlegendre.pptx
legendre.pptx
 
Power series
Power series Power series
Power series
 
Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Correlation & regression
Correlation & regression Correlation & regression
Correlation & regression
 
Regression and correlation in statistics
Regression and correlation in statisticsRegression and correlation in statistics
Regression and correlation in statistics
 
B.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationB.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiation
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Means and variances of random variables
Means and variances of random variablesMeans and variances of random variables
Means and variances of random variables
 
Spearman rank correlation coefficient
Spearman rank correlation coefficientSpearman rank correlation coefficient
Spearman rank correlation coefficient
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
 
Correlation & regression uwsb
Correlation & regression   uwsbCorrelation & regression   uwsb
Correlation & regression uwsb
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
51554 0131469657 ism-13
51554 0131469657 ism-1351554 0131469657 ism-13
51554 0131469657 ism-13
 
Linear regression using least squares
Linear regression using least squaresLinear regression using least squares
Linear regression using least squares
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTION
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTIONPROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTION
PROBABILITY DISTRIBUTION OF SUM OF TWO CONTINUOUS VARIABLES AND CONVOLUTION
 

Recently uploaded

Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 

Recently uploaded (20)

Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 

Pearson's Correlation Coefficient Explained

  • 1. “ Pearson’s Correlation Coefficient” Presented by : Eng. Waleed Alzaghal YouTube Channel : Waleed Alzaghal
  • 2. Pearson Correlation Coefficient The correlation coefficient (r) is a measure of the strength and the direction of a linear relationship between two variables x and y.
  • 3. Strength and Direction of Correlation
  • 4. A single outlier point can significantly change the correlation coefficient r
  • 5. r = 0.88 r = - 0.08
  • 6. Obs. x i y j 1 x 1 y 1 2 x 2 y 2 3 x 3 y 3 … … … … … … … … … … … … … … … n x n y n Sum
  • 7.
  • 8. Obs. x y 1 1 8 2 10 4 3 9 4 4 6 5 5 5 7 6 3 7 7 2 9 Sum 36 44 x 2 1 100 81 36 25 9 4 256 y2 64 16 16 25 49 49 81 300 xy 8 40 36 30 35 21 18 188 • Sum Up x and y • Compute x2 and Sum Up • Compute y2 and Sum Up • Compute xy and Sum Up Apply,
  • 9. 𝑟 = 𝑛 𝑥𝑦 − ( 𝑥)( 𝑦) (𝑛 𝑥2 − ( 𝑥)2)(𝑛 𝑦2 − ( 𝑦)2 𝑟 ≈ − 0.94 (Strong negative relationship) Obs. x y x 2 y2 xy 1 1 8 1 64 8 2 10 4 100 16 40 3 9 4 81 16 36 4 6 5 36 25 30 5 5 7 25 49 35 6 3 7 9 49 21 7 2 9 4 81 18 Sum 36 44 256 300 188
  • 10. ( x - x̅ ) -4.14 4.86 3.86 0.86 -0.14 -2.14 -3.14 0.02 ( x - x̅ )2 17.14 23.62 14.90 0.74 0.02 4.58 9.86 70.86 ( y - y̅ ) 1.71 -2.29 -2.29 -1.29 0.71 0.71 2.71 -0.03 ( y - y̅ )2 2.92 5.24 5.24 1.66 0.50 0.50 7.34 23.43 ( x - x̅ )( y - y̅ ) -7.08 -11.13 -8.84 -1.11 -0.10 -1.52 -8.51 -38.29 • Compute the Mean for x and y • Compute ( x - x̅ ) and Sum up • Compute ( x - x̅ )2 and Sum up • Compute ( y - y̅ ) and Sum up • Compute ( y - y̅ )2 and Sum up • Compute ( x - x̅ )( y - y̅ ) and Sum up Obs. x y 1 1 8 2 10 4 3 9 4 4 6 5 5 5 7 6 3 7 7 2 9 Sum 36 44 Count 7 7 Mean 5.14 6.29 Apply, r = ( 𝑥 − 𝑥 )( 𝑦 − 𝑦 ) 𝑥 − 𝑥 2 ( 𝑦− 𝑦 )2
  • 11. r = ( 𝑥 − 𝑥 )( 𝑦 − 𝑦 ) 𝑥 − 𝑥 2 ( 𝑦− 𝑦 )2 r ≈ − 0.94 (Strong negative relationship)
  • 12.
  • 13. Obs. x y x 2 y2 xy 1 8 16 64 256 128 2 9 9 81 81 81 3 10 4 100 16 40 4 11 1 121 1 11 5 12 0 144 0 0 6 13 1 169 1 13 7 14 4 196 16 56 8 15 9 225 81 135 9 16 16 256 256 256 Sum 108 60 1356 708 720 𝑟 = 𝑛 𝑥𝑦 − ( 𝑥)( 𝑦) (𝑛 𝑥2 − ( 𝑥)2). (𝑛 𝑦2 − ( 𝑦)2 𝑟 = 9 720 − (108)(60) ( 9 1356 − 108 2)( 9 708 − 60 2) r = 0.0 (No relationship because of the nonlinearity between the two variables) (r does not describe curved relationships)