SlideShare a Scribd company logo
1 of 54
Neha Dokania 1
Finding the relationship between two
quantitative variables without being able to
infer causal relationships
Correlation is a statistical technique used to
determine the degree to which two
variables are related
Neha Dokania 2
• Rectangular coordinate
• Two quantitative variables
• One variable is called independent (X) and
the second is called dependent (Y)
• Points are not joined
• No frequency table
Scatter diagram
Neha Dokania 3
Example
Neha Dokania 4
80
100
120
140
160
180
200
220
60 70 80 90 100 110 120
wt (kg)
SBP(mmHg)
Neha Dokania 5
80
100
120
140
160
180
200
220
60 70 80 90 100 110 120
Wt (kg)
SBP(mmHg)
Scatter diagram of weight and systolic blood pressure
Neha Dokania 6
The pattern of data is indicative of the type of
relationship between your two variables:
 positive relationship
 negative relationship
 no relationship
Neha Dokania 7
Neha Dokania 8
0
2
4
6
8
10
12
14
16
18
0 10 20 30 40 50 60 70 80 90
Age in Weeks
HeightinCM
Neha Dokania 9
Reliability
Age of Car
Neha Dokania 10
Neha Dokania 11
Statistic showing the degree of
relation between two
variables
Neha Dokania 12
 It is also called Pearson's correlation or
product moment correlation
coefficient.
 It measures the nature and strength
between two variables of
the quantitative type.
Neha Dokania 13
The sign of r denotes the nature of
association
while the value of r denotes the
strength of association.
Neha Dokania 14
 If the sign is +ve this means the relation is
direct (an increase in one variable is
associated with an increase in the
other variable and a decrease in one variable
is associated with a
decrease in the other variable).
 While if the sign is -ve this means an inverse
or indirect relationship (which means an
increase in one variable is associated with a
decrease in the other).
Neha Dokania 15
 The value of r ranges between ( -1) and ( +1)
 The value of r denotes the strength of the
association as illustrated
by the following diagram.
-1 10-0.25-0.75 0.750.25
strong strongintermediate intermediateweak weak
no relation
perfect
correlation
perfect
correlation
Directindirect
Neha Dokania 16
If r = Zero this means no association or
correlation between the two variables.
If 0 < r < 0.25 = weak correlation.
If 0.25 ≤ r < 0.75 = intermediate correlation.
If 0.75 ≤ r < 1 = strong correlation.
If r = l = perfect correlation.
Neha Dokania 17








−








−
−
=
∑ ∑∑ ∑
∑ ∑ ∑
n
y)(
y.
n
x)(
x
n
yx
xy
r
2
2
2
2
How to compute the simple correlation
coefficient (r(
Neha Dokania 18
serial
No
Age
(years(
Weight
(Kg(
1 7 12
2 6 8
3 8 12
4 5 10
5 6 11
6 9 13
A sample of 6 children was selected, data about their
age in years and weight in kilograms was recorded
as shown in the following table . It is required to find
the correlation between age and weight.
Neha Dokania 19
These 2 variables are of the quantitative type, one
variable (Age) is called the independent and
denoted as (X) variable and the other (weight)
is called the dependent and denoted as (Y)
variables to find the relation between age and
weight compute the simple correlation coefficient
using the following formula:








−








−
−
=
∑ ∑∑ ∑
∑ ∑ ∑
n
y)(
y.
n
x)(
x
n
yx
xy
r
2
2
2
2
Neha Dokania 20
Serial
n.
Age
(years(
(x(
Weight
(Kg(
(y(
xy X2
Y2
1 7 12 84 49 144
2 6 8 48 36 64
3 8 12 96 64 144
4 5 10 50 25 100
5 6 11 66 36 121
6 9 13 117 81 169
Total ∑x=
41
∑y=
66
∑xy=
461
∑x2=
291
∑y2=
742
Neha Dokania 21
r = 0.759
strong direct correlation






−





−
×
−
=
6
(66)
742.
6
(41)
291
6
6641
461
r
22
Neha Dokania 22
AnxietyAnxiety
((XX((
TestTest
score (Yscore (Y((
XX22
YY22
XYXY
1010 22 100100 44 2020
88 33 6464 99 2424
22 99 44 8181 1818
11 77 11 4949 77
55 66 2525 3636 3030
66 55 3636 2525 3030
∑∑X = 32X = 32 ∑∑Y = 32Y = 32 ∑∑XX22
= 230= 230 ∑∑YY22
= 204= 204 ∑∑XY=129XY=129
Neha Dokania 23
( )( )
94.
)200)(356(
1024774
32)204(632)230(6
)32)(32()129)(6(
22
−=
−
=
−−
−
=r
r = - 0.94
Indirect strong correlation
Neha Dokania 24
It is a non-parametric measure of correlation.
This procedure makes use of the two sets of
ranks that may be assigned to the sample
values of x and Y.
Spearman Rank correlation coefficient could be
computed in the following cases:
 Both variables are quantitative.
 Both variables are qualitative ordinal.
 One variable is quantitative and the other is qualitative ordinal.
Neha Dokania 25
1. Rank the values of X from 1 to n where n is the
numbers of pairs of values of X and Y in the
sample.
2. Rank the values of Y from 1 to n.
3. Compute the value of di for each pair of
observation by subtracting the rank of Yi from
the rank of Xi
4. Square each di and compute ∑di2 which is the
sum of the squared values.
Neha Dokania 26
5. Apply the following formula
1)n(n
(di)6
1r 2
2
s
−
−=
∑
 The value of rs denotes the magnitude
and nature of association giving the same
interpretation as simple r.
Neha Dokania 27
sample
numbers
level education
(X(
Income
(Y(
A Preparatory.Preparatory. 25
B Primary.Primary. 10
C University.University. 8
D secondarysecondary 10
E secondarysecondary 15
F illitilliterateerate 50
G University.University. 60
In a study of the relationship between level
education and income the following data was
obtained. Find the relationship between them
and comment.
Neha Dokania 28
(X) (Y)
Rank
X
Rank
Y
di di2
A Preparatory 25 5 3 2 4
B Primary. 10 6 5.5 0.5 0.25
C University. 8 1.5 7 -5.5 30.25
D secondary 10 3.5 5.5 -2 4
E secondary 15 3.5 4 -0.5 0.25
F illiterate 50 7 2 5 25
G university. 60 1.5 1 0.5 0.25
∑ di2
=64
Neha Dokania 29
Comment:
There is an indirect weak correlation between
level of education and income.
1.0
)48(7
646
1 −=
×
−=sr
Neha Dokania 30
Neha Dokania 31
 Regression: technique concerned with
predicting some variables by knowing others
 The process of predicting variable Y using
variable X
Neha Dokania 32
 Uses a variable (x) to predict some outcome
variable (y)
 Tells you how values in y change as a function
of changes in values of x
Neha Dokania 33
 Correlation describes the strength of a
linear relationship between two variables
 Linear means “straight line”
 Regression tells us how to draw the straight
line described by the correlation
Neha Dokania 34
 Calculates the “best-fit” line for a certain set of data
The regression line makes the sum of the squares of the
residuals smaller than for any other line
Regression minimizes residuals
80
100
120
140
160
180
200
220
60 70 80 90 100 110 120
Wt (kg)
SBP(mmHg)
Neha Dokania 35
By using the least squares method (a procedure
that minimizes the vertical deviations of plotted
points surrounding a straight line) we are
able to construct a best fitting straight line to
the scatter diagram points and then formulate a
regression equation in the form of:
∑
∑
∑
∑ ∑
−
−
=
n
x)(
x
n
yx
xy
b 2
2
1
)xb(xyyˆ −+=
bXayˆ +=
Neha Dokania 36
 Regression equation
describes the
regression line
mathematically
 Intercept
 Slope
80
100
120
140
160
180
200
220
60 70 80 90 100 110 120
Wt (kg)
SBP(mmHg)
Neha Dokania 37
Y
Y = b X + a
a = Y - in t e r c e p t
X
C h a n g e
i n Y
C h a n g e in X
b = S l o p e
bXayˆ +=
Neha Dokania 38
Neha Dokania 39
Linear Regression
2.00 4.00 6.00 8.00 10.00
Number of hours spent studying
70.00
80.00
90.00
Finalgradeincourse












Final grade in course = 59.95 + 3.17 * study
R-Square = 0.88
Predicted final grade in class =
59.95 + 3.17*(number of hours you study per week)
Neha Dokania 40
 Someone who studies for 12 hours
 Final grade = 59.95 + (3.17*12)
 Final grade = 97.99
 Someone who studies for 1 hour:
 Final grade = 59.95 + (3.17*1)
 Final grade = 63.12
Predicted final grade in class = 59.95 + 3.17*(hours of study)
Neha Dokania 41
A sample of 6 persons was selected the value
of their age ( x variable) and their weight is
demonstrated in the following table. Find the
regression equation and what is the predicted
weight when age is 8.5 years.
Neha Dokania 42
Serial no. Age (x( Weight (y(
1
2
3
4
5
6
7
6
8
5
6
9
12
8
12
10
11
13
Neha Dokania 43
Serial no. Age (x( Weight (y( xy X2
Y2
1
2
3
4
5
6
7
6
8
5
6
9
12
8
12
10
11
13
84
48
96
50
66
117
49
36
64
25
36
81
144
64
144
100
121
169
Total 41 66 461 291 742
Neha Dokania 44
6.83
6
41
x == 11
6
66
==y
92.0
6
)41(
291
6
6641
461
2
=
−
×
−
=b
Regression equation
6.83)0.9(x11yˆ (x) −+=
Neha Dokania 45
0.92x4.675yˆ (x) +=
12.50Kg8.5*0.924.675yˆ (8.5) =+=
Kg58.117.5*0.924.675yˆ (7.5) =+=
Neha Dokania 46
11.4
11.6
11.8
12
12.2
12.4
12.6
7 7.5 8 8.5 9
Age (in years)
Weight(inKg)
we create a regression line by plotting two
estimated values for y against their X component,
then extending the line right and left.
Neha Dokania 47
The following are the
age (in years) and
systolic blood
pressure of 20
apparently healthy
adults.
Age
(x(
B.P
(y(
Age
(x(
B.P
(y(
20
43
63
26
53
31
58
46
58
70
120
128
141
126
134
128
136
132
140
144
46
53
60
20
63
43
26
19
31
23
128
136
146
124
143
130
124
121
126
123
Neha Dokania 48
 Find the correlation between age
and blood pressure using simple
and Spearman's correlation
coefficients, and comment.
 Find the regression equation?
 What is the predicted blood
pressure for a man aging 25
years?
Neha Dokania 49
Serial x y xy x2
1 20 120 2400 400
2 43 128 5504 1849
3 63 141 8883 3969
4 26 126 3276 676
5 53 134 7102 2809
6 31 128 3968 961
7 58 136 7888 3364
8 46 132 6072 2116
9 58 140 8120 3364
10 70 144 10080 4900
Neha Dokania 50
Serial x y xy x2
11 46 128 5888 2116
12 53 136 7208 2809
13 60 146 8760 3600
14 20 124 2480 400
15 63 143 9009 3969
16 43 130 5590 1849
17 26 124 3224 676
18 19 121 2299 361
19 31 126 3906 961
20 23 123 2829 529
Total 852 2630 114486 41678
Neha Dokania 51
∑
∑
∑
∑ ∑
−
−
=
n
x)(
x
n
yx
xy
b 2
2
1 4547.0
20
852
41678
20
2630852
114486
2
=
−
×
−
=
=112.13 + 0.4547 x
for age 25
B.P = 112.13 + 0.4547 * 25=123.49 = 123.5 mm hg
yˆ
Neha Dokania 52
Multiple regression analysis is
a straightforward extension of
simple regression analysis
which allows more than one
independent variable.
Neha Dokania 53
Neha Dokania 54

More Related Content

What's hot

Math 4 axioms on the set of real numbers
Math 4 axioms on the set of real numbersMath 4 axioms on the set of real numbers
Math 4 axioms on the set of real numbersLeo Crisologo
 
matrix algebra
matrix algebramatrix algebra
matrix algebrakganu
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinationsrfant
 
Reporting a two sample z test for proportions
Reporting a two sample z test for proportionsReporting a two sample z test for proportions
Reporting a two sample z test for proportionsKen Plummer
 
Null hypothesis for phi-coefficient
Null hypothesis for phi-coefficientNull hypothesis for phi-coefficient
Null hypothesis for phi-coefficientKen Plummer
 
Measures of central tendency ppt
Measures of central tendency pptMeasures of central tendency ppt
Measures of central tendency pptNighatKanwal
 
Regression analysis
Regression analysisRegression analysis
Regression analysissaba khan
 
Volume of solid revolution
Volume of solid revolutionVolume of solid revolution
Volume of solid revolutionbeenishbeenish
 
Probability distribution
Probability distributionProbability distribution
Probability distributionRohit kumar
 
Trigonometric functions - PreCalculus
Trigonometric functions - PreCalculusTrigonometric functions - PreCalculus
Trigonometric functions - PreCalculusAmandaWoodbury
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting PrincipleRon Eick
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis_pem
 

What's hot (20)

Math 4 axioms on the set of real numbers
Math 4 axioms on the set of real numbersMath 4 axioms on the set of real numbers
Math 4 axioms on the set of real numbers
 
Estimating a Population Mean
Estimating a Population Mean  Estimating a Population Mean
Estimating a Population Mean
 
matrix algebra
matrix algebramatrix algebra
matrix algebra
 
Probability and statistics
Probability and statisticsProbability and statistics
Probability and statistics
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinations
 
Reporting a two sample z test for proportions
Reporting a two sample z test for proportionsReporting a two sample z test for proportions
Reporting a two sample z test for proportions
 
Null hypothesis for phi-coefficient
Null hypothesis for phi-coefficientNull hypothesis for phi-coefficient
Null hypothesis for phi-coefficient
 
Linear Correlation
Linear Correlation Linear Correlation
Linear Correlation
 
Measures of central tendency ppt
Measures of central tendency pptMeasures of central tendency ppt
Measures of central tendency ppt
 
Regression
RegressionRegression
Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Volume of solid revolution
Volume of solid revolutionVolume of solid revolution
Volume of solid revolution
 
Statistics & probability lesson 8&9
Statistics & probability lesson 8&9Statistics & probability lesson 8&9
Statistics & probability lesson 8&9
 
Chapter 14
Chapter 14 Chapter 14
Chapter 14
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
Trigonometric functions - PreCalculus
Trigonometric functions - PreCalculusTrigonometric functions - PreCalculus
Trigonometric functions - PreCalculus
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
T distribution
T distributionT distribution
T distribution
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis
 
Malhotra17
Malhotra17Malhotra17
Malhotra17
 

Similar to Correlation and Regression

Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Muhammadasif909
 
Regression and correlation in statistics
Regression and correlation in statisticsRegression and correlation in statistics
Regression and correlation in statisticsiphone4s4
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regressionUnsa Shakir
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptxnikshaikh786
 
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
 
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
 
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENT
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENTPEARSON PRODUCT MOMENT CORRELATION COEFFICIENT
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENTONE Virtual Services
 
Math4 presentation.ppsx
Math4 presentation.ppsxMath4 presentation.ppsx
Math4 presentation.ppsxRaviPal876687
 
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
 
correlation_regression.ppt
correlation_regression.pptcorrelation_regression.ppt
correlation_regression.pptRicha Joshi
 
Correlation and Regrretion
Correlation and RegrretionCorrelation and Regrretion
Correlation and RegrretionParth Desani
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysisRabin BK
 
Correlation new 2017 black
Correlation new 2017 blackCorrelation new 2017 black
Correlation new 2017 blackfizjadoon
 

Similar to Correlation and Regression (20)

Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)
 
33851.ppt
33851.ppt33851.ppt
33851.ppt
 
Regression and correlation in statistics
Regression and correlation in statisticsRegression and correlation in statistics
Regression and correlation in statistics
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptx
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
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
 
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENT
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENTPEARSON PRODUCT MOMENT CORRELATION COEFFICIENT
PEARSON PRODUCT MOMENT CORRELATION COEFFICIENT
 
Correlation
CorrelationCorrelation
Correlation
 
Math4 presentation.ppsx
Math4 presentation.ppsxMath4 presentation.ppsx
Math4 presentation.ppsx
 
stats_ch12.pdf
stats_ch12.pdfstats_ch12.pdf
stats_ch12.pdf
 
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 ...
 
Co re
Co reCo re
Co re
 
Correlating test scores
Correlating test scoresCorrelating test scores
Correlating test scores
 
correlationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfcorrelationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdf
 
correlation_regression.ppt
correlation_regression.pptcorrelation_regression.ppt
correlation_regression.ppt
 
Correlation and Regrretion
Correlation and RegrretionCorrelation and Regrretion
Correlation and Regrretion
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
 
Correlation new 2017 black
Correlation new 2017 blackCorrelation new 2017 black
Correlation new 2017 black
 

Recently uploaded

RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
(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
 
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
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
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
 
{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
 
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
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
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
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknowmakika9823
 
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
 
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
 

Recently uploaded (20)

RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
(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
 
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
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
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
 
{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...
 
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...
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
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
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
꧁❤ 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 ...
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
 
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
 
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
 

Correlation and Regression

  • 2. Finding the relationship between two quantitative variables without being able to infer causal relationships Correlation is a statistical technique used to determine the degree to which two variables are related Neha Dokania 2
  • 3. • Rectangular coordinate • Two quantitative variables • One variable is called independent (X) and the second is called dependent (Y) • Points are not joined • No frequency table Scatter diagram Neha Dokania 3
  • 5. 80 100 120 140 160 180 200 220 60 70 80 90 100 110 120 wt (kg) SBP(mmHg) Neha Dokania 5
  • 6. 80 100 120 140 160 180 200 220 60 70 80 90 100 110 120 Wt (kg) SBP(mmHg) Scatter diagram of weight and systolic blood pressure Neha Dokania 6
  • 7. The pattern of data is indicative of the type of relationship between your two variables:  positive relationship  negative relationship  no relationship Neha Dokania 7
  • 9. 0 2 4 6 8 10 12 14 16 18 0 10 20 30 40 50 60 70 80 90 Age in Weeks HeightinCM Neha Dokania 9
  • 12. Statistic showing the degree of relation between two variables Neha Dokania 12
  • 13.  It is also called Pearson's correlation or product moment correlation coefficient.  It measures the nature and strength between two variables of the quantitative type. Neha Dokania 13
  • 14. The sign of r denotes the nature of association while the value of r denotes the strength of association. Neha Dokania 14
  • 15.  If the sign is +ve this means the relation is direct (an increase in one variable is associated with an increase in the other variable and a decrease in one variable is associated with a decrease in the other variable).  While if the sign is -ve this means an inverse or indirect relationship (which means an increase in one variable is associated with a decrease in the other). Neha Dokania 15
  • 16.  The value of r ranges between ( -1) and ( +1)  The value of r denotes the strength of the association as illustrated by the following diagram. -1 10-0.25-0.75 0.750.25 strong strongintermediate intermediateweak weak no relation perfect correlation perfect correlation Directindirect Neha Dokania 16
  • 17. If r = Zero this means no association or correlation between the two variables. If 0 < r < 0.25 = weak correlation. If 0.25 ≤ r < 0.75 = intermediate correlation. If 0.75 ≤ r < 1 = strong correlation. If r = l = perfect correlation. Neha Dokania 17
  • 18.         −         − − = ∑ ∑∑ ∑ ∑ ∑ ∑ n y)( y. n x)( x n yx xy r 2 2 2 2 How to compute the simple correlation coefficient (r( Neha Dokania 18
  • 19. serial No Age (years( Weight (Kg( 1 7 12 2 6 8 3 8 12 4 5 10 5 6 11 6 9 13 A sample of 6 children was selected, data about their age in years and weight in kilograms was recorded as shown in the following table . It is required to find the correlation between age and weight. Neha Dokania 19
  • 20. These 2 variables are of the quantitative type, one variable (Age) is called the independent and denoted as (X) variable and the other (weight) is called the dependent and denoted as (Y) variables to find the relation between age and weight compute the simple correlation coefficient using the following formula:         −         − − = ∑ ∑∑ ∑ ∑ ∑ ∑ n y)( y. n x)( x n yx xy r 2 2 2 2 Neha Dokania 20
  • 21. Serial n. Age (years( (x( Weight (Kg( (y( xy X2 Y2 1 7 12 84 49 144 2 6 8 48 36 64 3 8 12 96 64 144 4 5 10 50 25 100 5 6 11 66 36 121 6 9 13 117 81 169 Total ∑x= 41 ∑y= 66 ∑xy= 461 ∑x2= 291 ∑y2= 742 Neha Dokania 21
  • 22. r = 0.759 strong direct correlation       −      − × − = 6 (66) 742. 6 (41) 291 6 6641 461 r 22 Neha Dokania 22
  • 23. AnxietyAnxiety ((XX(( TestTest score (Yscore (Y(( XX22 YY22 XYXY 1010 22 100100 44 2020 88 33 6464 99 2424 22 99 44 8181 1818 11 77 11 4949 77 55 66 2525 3636 3030 66 55 3636 2525 3030 ∑∑X = 32X = 32 ∑∑Y = 32Y = 32 ∑∑XX22 = 230= 230 ∑∑YY22 = 204= 204 ∑∑XY=129XY=129 Neha Dokania 23
  • 25. It is a non-parametric measure of correlation. This procedure makes use of the two sets of ranks that may be assigned to the sample values of x and Y. Spearman Rank correlation coefficient could be computed in the following cases:  Both variables are quantitative.  Both variables are qualitative ordinal.  One variable is quantitative and the other is qualitative ordinal. Neha Dokania 25
  • 26. 1. Rank the values of X from 1 to n where n is the numbers of pairs of values of X and Y in the sample. 2. Rank the values of Y from 1 to n. 3. Compute the value of di for each pair of observation by subtracting the rank of Yi from the rank of Xi 4. Square each di and compute ∑di2 which is the sum of the squared values. Neha Dokania 26
  • 27. 5. Apply the following formula 1)n(n (di)6 1r 2 2 s − −= ∑  The value of rs denotes the magnitude and nature of association giving the same interpretation as simple r. Neha Dokania 27
  • 28. sample numbers level education (X( Income (Y( A Preparatory.Preparatory. 25 B Primary.Primary. 10 C University.University. 8 D secondarysecondary 10 E secondarysecondary 15 F illitilliterateerate 50 G University.University. 60 In a study of the relationship between level education and income the following data was obtained. Find the relationship between them and comment. Neha Dokania 28
  • 29. (X) (Y) Rank X Rank Y di di2 A Preparatory 25 5 3 2 4 B Primary. 10 6 5.5 0.5 0.25 C University. 8 1.5 7 -5.5 30.25 D secondary 10 3.5 5.5 -2 4 E secondary 15 3.5 4 -0.5 0.25 F illiterate 50 7 2 5 25 G university. 60 1.5 1 0.5 0.25 ∑ di2 =64 Neha Dokania 29
  • 30. Comment: There is an indirect weak correlation between level of education and income. 1.0 )48(7 646 1 −= × −=sr Neha Dokania 30
  • 32.  Regression: technique concerned with predicting some variables by knowing others  The process of predicting variable Y using variable X Neha Dokania 32
  • 33.  Uses a variable (x) to predict some outcome variable (y)  Tells you how values in y change as a function of changes in values of x Neha Dokania 33
  • 34.  Correlation describes the strength of a linear relationship between two variables  Linear means “straight line”  Regression tells us how to draw the straight line described by the correlation Neha Dokania 34
  • 35.  Calculates the “best-fit” line for a certain set of data The regression line makes the sum of the squares of the residuals smaller than for any other line Regression minimizes residuals 80 100 120 140 160 180 200 220 60 70 80 90 100 110 120 Wt (kg) SBP(mmHg) Neha Dokania 35
  • 36. By using the least squares method (a procedure that minimizes the vertical deviations of plotted points surrounding a straight line) we are able to construct a best fitting straight line to the scatter diagram points and then formulate a regression equation in the form of: ∑ ∑ ∑ ∑ ∑ − − = n x)( x n yx xy b 2 2 1 )xb(xyyˆ −+= bXayˆ += Neha Dokania 36
  • 37.  Regression equation describes the regression line mathematically  Intercept  Slope 80 100 120 140 160 180 200 220 60 70 80 90 100 110 120 Wt (kg) SBP(mmHg) Neha Dokania 37
  • 38. Y Y = b X + a a = Y - in t e r c e p t X C h a n g e i n Y C h a n g e in X b = S l o p e bXayˆ += Neha Dokania 38
  • 40. Linear Regression 2.00 4.00 6.00 8.00 10.00 Number of hours spent studying 70.00 80.00 90.00 Finalgradeincourse             Final grade in course = 59.95 + 3.17 * study R-Square = 0.88 Predicted final grade in class = 59.95 + 3.17*(number of hours you study per week) Neha Dokania 40
  • 41.  Someone who studies for 12 hours  Final grade = 59.95 + (3.17*12)  Final grade = 97.99  Someone who studies for 1 hour:  Final grade = 59.95 + (3.17*1)  Final grade = 63.12 Predicted final grade in class = 59.95 + 3.17*(hours of study) Neha Dokania 41
  • 42. A sample of 6 persons was selected the value of their age ( x variable) and their weight is demonstrated in the following table. Find the regression equation and what is the predicted weight when age is 8.5 years. Neha Dokania 42
  • 43. Serial no. Age (x( Weight (y( 1 2 3 4 5 6 7 6 8 5 6 9 12 8 12 10 11 13 Neha Dokania 43
  • 44. Serial no. Age (x( Weight (y( xy X2 Y2 1 2 3 4 5 6 7 6 8 5 6 9 12 8 12 10 11 13 84 48 96 50 66 117 49 36 64 25 36 81 144 64 144 100 121 169 Total 41 66 461 291 742 Neha Dokania 44
  • 46. 0.92x4.675yˆ (x) += 12.50Kg8.5*0.924.675yˆ (8.5) =+= Kg58.117.5*0.924.675yˆ (7.5) =+= Neha Dokania 46
  • 47. 11.4 11.6 11.8 12 12.2 12.4 12.6 7 7.5 8 8.5 9 Age (in years) Weight(inKg) we create a regression line by plotting two estimated values for y against their X component, then extending the line right and left. Neha Dokania 47
  • 48. The following are the age (in years) and systolic blood pressure of 20 apparently healthy adults. Age (x( B.P (y( Age (x( B.P (y( 20 43 63 26 53 31 58 46 58 70 120 128 141 126 134 128 136 132 140 144 46 53 60 20 63 43 26 19 31 23 128 136 146 124 143 130 124 121 126 123 Neha Dokania 48
  • 49.  Find the correlation between age and blood pressure using simple and Spearman's correlation coefficients, and comment.  Find the regression equation?  What is the predicted blood pressure for a man aging 25 years? Neha Dokania 49
  • 50. Serial x y xy x2 1 20 120 2400 400 2 43 128 5504 1849 3 63 141 8883 3969 4 26 126 3276 676 5 53 134 7102 2809 6 31 128 3968 961 7 58 136 7888 3364 8 46 132 6072 2116 9 58 140 8120 3364 10 70 144 10080 4900 Neha Dokania 50
  • 51. Serial x y xy x2 11 46 128 5888 2116 12 53 136 7208 2809 13 60 146 8760 3600 14 20 124 2480 400 15 63 143 9009 3969 16 43 130 5590 1849 17 26 124 3224 676 18 19 121 2299 361 19 31 126 3906 961 20 23 123 2829 529 Total 852 2630 114486 41678 Neha Dokania 51
  • 52. ∑ ∑ ∑ ∑ ∑ − − = n x)( x n yx xy b 2 2 1 4547.0 20 852 41678 20 2630852 114486 2 = − × − = =112.13 + 0.4547 x for age 25 B.P = 112.13 + 0.4547 * 25=123.49 = 123.5 mm hg yˆ Neha Dokania 52
  • 53. Multiple regression analysis is a straightforward extension of simple regression analysis which allows more than one independent variable. Neha Dokania 53