SlideShare a Scribd company logo
1 of 14
Download to read offline
“ Spearman Rank Correlation Coefficient”
Presented by : Eng. Waleed Alzaghal
You Tube Channel : Waleed Alzaghal
The scores of five students in Math and English are shown in below table.
Compute the Spearman Rank Correlation Coefficient for these data. Consider the
rank of the score is as the following:
• 90 – 100 Excellent
• 80 – 89 Very Good
• 70 – 79 Good
• 60 – 69 Weak
Student Math Score (x) English Score (y) Results(x) Results (y)
1 95 97 Excellent Excellent
2 90 92 Excellent Excellent
3 75 80 Good Very Good
4 85 78 Very Good Good
5 60 68 Weak Weak
1- Display the Scatter Plot.
2- Find the Equation of the Regression Line.
3- Draw the Regression Line.
4- Compute the Pearson’s Correlation Coefficient.
5- Compute the Spearman Rank Correlation Coefficient.
6- Predict the value of ŷ for x = 1 , x = 4
7- Compute the Error of Prediction for x = 9
8- Compute the Least Squares of Errors.
9- Compute the Sum of Squares of Errors for the following Equation:
ŷ = - 36.00 x + 322.44
Obs. Age (x) Price(y)
1 8 45
2 3 210
3 6 100
4 9 33
5 2 267
6 5 134
7 6 109
8 3 235
The price of 8 cars (in hundred dollars) with different ages (in year) are in below table:
1- Display the Scatter Plot.
ŷ = mx + b
m =
𝑛 𝑥𝑦 −( 𝑥)( 𝑦)
𝑛 𝑥2
−( 𝑥)2
m =
8 4450 −(42)(1133)
8 264 − 42 2
m =
−11,986
348
m ≈ − 34.44 (Slope of the Regression Line)
Obs. Age (x) Price(y) x
2
y
2
xy
1 8 45 64 2025 360
2 3 210 9 44100 630
3 6 100 36 10000 600
4 9 33 81 1089 297
5 2 267 4 71289 534
6 5 134 25 17956 670
7 6 109 36 11881 654
8 3 235 9 55225 705
Sum 42 1133 264 213565 4450
2- Find the Equation of the Regression Line.
ŷ = mx + b
b =
𝑦 −𝑚 𝑥
𝑛
b =
1133 − (−34.44)(42)
8
b =
2,579.48
8
b = 322.44
ŷ = − 34.44x + 322.44
Obs. Age (x) Price(y) x
2
y
2
xy
1 8 45 64 2025 360
2 3 210 9 44100 630
3 6 100 36 10000 600
4 9 33 81 1089 297
5 2 267 4 71289 534
6 5 134 25 17956 670
7 6 109 36 11881 654
8 3 235 9 55225 705
Sum 42 1133 264 213565 4450
3- Draw the Regression Line.
Obs. Age (x) Price(y) x
2
y
2
xy
1 8 45 64 2025 360
2 3 210 9 44100 630
3 6 100 36 10000 600
4 9 33 81 1089 297
5 2 267 4 71289 534
6 5 134 25 17956 670
7 6 109 36 11881 654
8 3 235 9 55225 705
Sum 42 1133 264 213565 4450
𝑟 =
𝑛 𝑥𝑦 − ( 𝑥)( 𝑦)
(𝑛 𝑥2 − ( 𝑥)2). (𝑛 𝑦2 − ( 𝑦)2
𝑟 =
8 4450 − (42)(1133)
( 8 264 − 42 2)( 8 213565 − 1133 2)
𝑟 =
−11,986
(348)(424,831)
𝑟 =
−11986
12,159.00
r ≈ −0.99
(Interpretation: A very Strong Negative Correlation)
4- Compute the Pearson’s Correlation Coefficient.
rs = 1 −
6 𝑑2
𝑛(𝑛2
−1)
rs = 1 −
(6)(165)
8(82
−1)
rs = 1 −
990
8(64 −1)
rs = 1 −
990
504
rs = − 0.96
(Interpretation: a very strong negative correlation).
5- Compute the Spearman Rank Correlation Coefficient.
Obs. Age (x) Price(y) Rank (Age) Rank (Price) d d
2
1 8 45 7 2 5.0 25.00
2 3 210 2.5 6 -3.5 12.25
3 6 100 5.5 3 2.5 6.25
4 9 33 8 1 7.0 49.00
5 2 267 1 8 -7.0 49.00
6 5 134 4 5 -1.0 1.00
7 6 109 5.5 4 1.5 2.25
8 3 235 2.5 7 -4.5 20.25
165Sum
6- Predict the value of ŷ for x = 1
Ŷ = (-34.44)(1) + 322.44 = 288
Ŷ = (-34.44)(4) + 322.44 = 184.68
6- Predict the value of ŷ for x = 4
7- Compute the Error of Prediction for x=9
Ŷ = (-34.44)(9) + 322.44 = 12.48
E = Y – Ŷ = 33 – 12.48 = 20.52
8- Compute the Sum (Least) Squares of Errors.
Obs. Age (x) Price(y) ŷ=-34.44x+322.44 E=y-ŷ E
2
=(y-ŷ)
2
1 8 45 46.92 -1.92 3.69
2 3 210 219.12 -9.12 83.17
3 6 100 115.80 -15.80 249.64
4 9 33 12.48 20.52 421.07
5 2 267 253.56 13.44 180.63
6 5 134 150.24 -16.24 263.74
7 6 109 115.80 -6.80 46.24
8 3 235 219.12 15.88 252.17
1500.36Sum
Least Squares of Error = ((E1)2 + (E2)2 + (E3)2 + (E4)2 + (E5)2 + (E6)2 + (E7)2 + (E8)2)
Least Squares of Error = 3.69 + 83.17 + ……. + 46.24 + 252.17 = 1500.36
9- Compute the Squares of Errors for the following Equation: ŷ = -36.00 x+322.44
Obs. Age (x) Price(y) ŷ=-36.00 x+322.44 E=y-ŷ E
2
=(y-ŷ)
2
1 8 45 34.44 10.56 111.51
2 3 210 214.44 -4.44 19.71
3 6 100 106.44 -6.44 41.47
4 9 33 -1.56 34.56 1194.39
5 2 267 250.44 16.56 274.23
6 5 134 142.44 -8.44 71.23
7 6 109 106.44 2.56 6.55
8 3 235 214.44 20.56 422.71
2141.83Sum
Sum of Squares of Error = ((E1)2 + (E2)2 + (E3)2 + (E4)2 + (E5)2 + (E6)2 + (E7)2 + (E8)2)
Sum of Squares of Error = 111.51 + 19.71 + ……. + 6.55 + 422.71 = 2141.83

More Related Content

What's hot (11)

Properties of arithmetic mean
Properties of arithmetic meanProperties of arithmetic mean
Properties of arithmetic mean
 
Chapter5
Chapter5Chapter5
Chapter5
 
Armaduras
ArmadurasArmaduras
Armaduras
 
Calculation of arithmetic mean
Calculation of arithmetic meanCalculation of arithmetic mean
Calculation of arithmetic mean
 
Correlation analysis ppt
Correlation analysis pptCorrelation analysis ppt
Correlation analysis ppt
 
10th grade final exam review answer key
10th grade final exam review answer key10th grade final exam review answer key
10th grade final exam review answer key
 
Chapter7
Chapter7Chapter7
Chapter7
 
Z Scores
Z ScoresZ Scores
Z Scores
 
S7 pn
S7 pnS7 pn
S7 pn
 
Algebra 2 unit 12.3.12.5
Algebra 2 unit 12.3.12.5Algebra 2 unit 12.3.12.5
Algebra 2 unit 12.3.12.5
 
Chapter 04 drill_solution
Chapter 04 drill_solutionChapter 04 drill_solution
Chapter 04 drill_solution
 

Similar to Spearman rank correlation coefficient

Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1
Howard, anton   calculo i- um novo horizonte - exercicio resolvidos v1Howard, anton   calculo i- um novo horizonte - exercicio resolvidos v1
Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1cideni
 
William hyatt-7th-edition-drill-problems-solution
William hyatt-7th-edition-drill-problems-solutionWilliam hyatt-7th-edition-drill-problems-solution
William hyatt-7th-edition-drill-problems-solutionSalman Salman
 
Pre-calculus 1, 2 and Calculus I (exam notes)
Pre-calculus 1, 2 and Calculus I (exam notes)Pre-calculus 1, 2 and Calculus I (exam notes)
Pre-calculus 1, 2 and Calculus I (exam notes)William Faber
 
Algebra ii honors study guide
Algebra ii honors study guideAlgebra ii honors study guide
Algebra ii honors study guidemorrobea
 
Algebra ii honors study guide
Algebra ii honors study guideAlgebra ii honors study guide
Algebra ii honors study guidemorrobea
 
Exponent & Logarithm
Exponent &  LogarithmExponent &  Logarithm
Exponent & Logarithmguest0ffcb4
 
workbook_full_solutions_2.pdf
workbook_full_solutions_2.pdfworkbook_full_solutions_2.pdf
workbook_full_solutions_2.pdfZiaSethi1
 
Gabarito completo anton_calculo_8ed_caps_01_08
Gabarito completo anton_calculo_8ed_caps_01_08Gabarito completo anton_calculo_8ed_caps_01_08
Gabarito completo anton_calculo_8ed_caps_01_08joseotaviosurdi
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Jhonatan Minchán
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_prialeJeff Chasi
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manualMahrukh Khalid
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaLuis Perez Anampa
 
Solution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsSolution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsHareem Aslam
 
Assignment of class 12 (chapters 2 to 9)
Assignment of class 12 (chapters 2 to 9)Assignment of class 12 (chapters 2 to 9)
Assignment of class 12 (chapters 2 to 9)KarunaGupta1982
 
GREKing: Vedic Maths Concept
GREKing: Vedic Maths ConceptGREKing: Vedic Maths Concept
GREKing: Vedic Maths ConceptRahul Singh
 

Similar to Spearman rank correlation coefficient (20)

Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1
Howard, anton   calculo i- um novo horizonte - exercicio resolvidos v1Howard, anton   calculo i- um novo horizonte - exercicio resolvidos v1
Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1
 
William hyatt-7th-edition-drill-problems-solution
William hyatt-7th-edition-drill-problems-solutionWilliam hyatt-7th-edition-drill-problems-solution
William hyatt-7th-edition-drill-problems-solution
 
Pre-calculus 1, 2 and Calculus I (exam notes)
Pre-calculus 1, 2 and Calculus I (exam notes)Pre-calculus 1, 2 and Calculus I (exam notes)
Pre-calculus 1, 2 and Calculus I (exam notes)
 
Set 1 mawar
Set 1 mawarSet 1 mawar
Set 1 mawar
 
Algebra ii honors study guide
Algebra ii honors study guideAlgebra ii honors study guide
Algebra ii honors study guide
 
Algebra ii honors study guide
Algebra ii honors study guideAlgebra ii honors study guide
Algebra ii honors study guide
 
Exponent & Logarithm
Exponent &  LogarithmExponent &  Logarithm
Exponent & Logarithm
 
workbook_full_solutions_2.pdf
workbook_full_solutions_2.pdfworkbook_full_solutions_2.pdf
workbook_full_solutions_2.pdf
 
Mathematics
MathematicsMathematics
Mathematics
 
Mathematics
MathematicsMathematics
Mathematics
 
Gabarito completo anton_calculo_8ed_caps_01_08
Gabarito completo anton_calculo_8ed_caps_01_08Gabarito completo anton_calculo_8ed_caps_01_08
Gabarito completo anton_calculo_8ed_caps_01_08
 
Calculo integral - Larson
Calculo integral - LarsonCalculo integral - Larson
Calculo integral - Larson
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_priale
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economia
 
Solution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsSolution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 Functions
 
New stack
New stackNew stack
New stack
 
Assignment of class 12 (chapters 2 to 9)
Assignment of class 12 (chapters 2 to 9)Assignment of class 12 (chapters 2 to 9)
Assignment of class 12 (chapters 2 to 9)
 
GREKing: Vedic Maths Concept
GREKing: Vedic Maths ConceptGREKing: Vedic Maths Concept
GREKing: Vedic Maths Concept
 

Recently uploaded

April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
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
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
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
 
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
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
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
 
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
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
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
 
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
 

Recently uploaded (20)

April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.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
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
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...
 
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
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
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 ...
 
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
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
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
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
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
 
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
 

Spearman rank correlation coefficient

  • 1. “ Spearman Rank Correlation Coefficient” Presented by : Eng. Waleed Alzaghal You Tube Channel : Waleed Alzaghal
  • 2. The scores of five students in Math and English are shown in below table. Compute the Spearman Rank Correlation Coefficient for these data. Consider the rank of the score is as the following: • 90 – 100 Excellent • 80 – 89 Very Good • 70 – 79 Good • 60 – 69 Weak Student Math Score (x) English Score (y) Results(x) Results (y) 1 95 97 Excellent Excellent 2 90 92 Excellent Excellent 3 75 80 Good Very Good 4 85 78 Very Good Good 5 60 68 Weak Weak
  • 3. 1- Display the Scatter Plot. 2- Find the Equation of the Regression Line. 3- Draw the Regression Line. 4- Compute the Pearson’s Correlation Coefficient. 5- Compute the Spearman Rank Correlation Coefficient. 6- Predict the value of ŷ for x = 1 , x = 4 7- Compute the Error of Prediction for x = 9 8- Compute the Least Squares of Errors. 9- Compute the Sum of Squares of Errors for the following Equation: ŷ = - 36.00 x + 322.44 Obs. Age (x) Price(y) 1 8 45 2 3 210 3 6 100 4 9 33 5 2 267 6 5 134 7 6 109 8 3 235 The price of 8 cars (in hundred dollars) with different ages (in year) are in below table:
  • 4. 1- Display the Scatter Plot.
  • 5. ŷ = mx + b m = 𝑛 𝑥𝑦 −( 𝑥)( 𝑦) 𝑛 𝑥2 −( 𝑥)2 m = 8 4450 −(42)(1133) 8 264 − 42 2 m = −11,986 348 m ≈ − 34.44 (Slope of the Regression Line) Obs. Age (x) Price(y) x 2 y 2 xy 1 8 45 64 2025 360 2 3 210 9 44100 630 3 6 100 36 10000 600 4 9 33 81 1089 297 5 2 267 4 71289 534 6 5 134 25 17956 670 7 6 109 36 11881 654 8 3 235 9 55225 705 Sum 42 1133 264 213565 4450 2- Find the Equation of the Regression Line.
  • 6. ŷ = mx + b b = 𝑦 −𝑚 𝑥 𝑛 b = 1133 − (−34.44)(42) 8 b = 2,579.48 8 b = 322.44 ŷ = − 34.44x + 322.44 Obs. Age (x) Price(y) x 2 y 2 xy 1 8 45 64 2025 360 2 3 210 9 44100 630 3 6 100 36 10000 600 4 9 33 81 1089 297 5 2 267 4 71289 534 6 5 134 25 17956 670 7 6 109 36 11881 654 8 3 235 9 55225 705 Sum 42 1133 264 213565 4450
  • 7. 3- Draw the Regression Line.
  • 8. Obs. Age (x) Price(y) x 2 y 2 xy 1 8 45 64 2025 360 2 3 210 9 44100 630 3 6 100 36 10000 600 4 9 33 81 1089 297 5 2 267 4 71289 534 6 5 134 25 17956 670 7 6 109 36 11881 654 8 3 235 9 55225 705 Sum 42 1133 264 213565 4450 𝑟 = 𝑛 𝑥𝑦 − ( 𝑥)( 𝑦) (𝑛 𝑥2 − ( 𝑥)2). (𝑛 𝑦2 − ( 𝑦)2 𝑟 = 8 4450 − (42)(1133) ( 8 264 − 42 2)( 8 213565 − 1133 2) 𝑟 = −11,986 (348)(424,831) 𝑟 = −11986 12,159.00 r ≈ −0.99 (Interpretation: A very Strong Negative Correlation) 4- Compute the Pearson’s Correlation Coefficient.
  • 9. rs = 1 − 6 𝑑2 𝑛(𝑛2 −1) rs = 1 − (6)(165) 8(82 −1) rs = 1 − 990 8(64 −1) rs = 1 − 990 504 rs = − 0.96 (Interpretation: a very strong negative correlation). 5- Compute the Spearman Rank Correlation Coefficient. Obs. Age (x) Price(y) Rank (Age) Rank (Price) d d 2 1 8 45 7 2 5.0 25.00 2 3 210 2.5 6 -3.5 12.25 3 6 100 5.5 3 2.5 6.25 4 9 33 8 1 7.0 49.00 5 2 267 1 8 -7.0 49.00 6 5 134 4 5 -1.0 1.00 7 6 109 5.5 4 1.5 2.25 8 3 235 2.5 7 -4.5 20.25 165Sum
  • 10. 6- Predict the value of ŷ for x = 1 Ŷ = (-34.44)(1) + 322.44 = 288
  • 11. Ŷ = (-34.44)(4) + 322.44 = 184.68 6- Predict the value of ŷ for x = 4
  • 12. 7- Compute the Error of Prediction for x=9 Ŷ = (-34.44)(9) + 322.44 = 12.48 E = Y – Ŷ = 33 – 12.48 = 20.52
  • 13. 8- Compute the Sum (Least) Squares of Errors. Obs. Age (x) Price(y) ŷ=-34.44x+322.44 E=y-ŷ E 2 =(y-ŷ) 2 1 8 45 46.92 -1.92 3.69 2 3 210 219.12 -9.12 83.17 3 6 100 115.80 -15.80 249.64 4 9 33 12.48 20.52 421.07 5 2 267 253.56 13.44 180.63 6 5 134 150.24 -16.24 263.74 7 6 109 115.80 -6.80 46.24 8 3 235 219.12 15.88 252.17 1500.36Sum Least Squares of Error = ((E1)2 + (E2)2 + (E3)2 + (E4)2 + (E5)2 + (E6)2 + (E7)2 + (E8)2) Least Squares of Error = 3.69 + 83.17 + ……. + 46.24 + 252.17 = 1500.36
  • 14. 9- Compute the Squares of Errors for the following Equation: ŷ = -36.00 x+322.44 Obs. Age (x) Price(y) ŷ=-36.00 x+322.44 E=y-ŷ E 2 =(y-ŷ) 2 1 8 45 34.44 10.56 111.51 2 3 210 214.44 -4.44 19.71 3 6 100 106.44 -6.44 41.47 4 9 33 -1.56 34.56 1194.39 5 2 267 250.44 16.56 274.23 6 5 134 142.44 -8.44 71.23 7 6 109 106.44 2.56 6.55 8 3 235 214.44 20.56 422.71 2141.83Sum Sum of Squares of Error = ((E1)2 + (E2)2 + (E3)2 + (E4)2 + (E5)2 + (E6)2 + (E7)2 + (E8)2) Sum of Squares of Error = 111.51 + 19.71 + ……. + 6.55 + 422.71 = 2141.83