SlideShare ist ein Scribd-Unternehmen logo
1 von 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)

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
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
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...shambhavirathore45
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
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
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Kürzlich hochgeladen (20)

Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
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
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
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
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

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)