SlideShare a Scribd company logo
1 of 24
CORRELATION(r)
and REGRESSION (b)
SIMPLE REGRESSION AND
CORRELATION
Both regression and correlation between two sets of
variables measure strength of relationship. In the case
of linear regression, we will examine the amount of
variability in one variable (Y, the dependent variable)
that is explained by changes in another variable (X, the
independent variable). Specifically, we will look for
straight line or linear changes in Y as X changes.
Regression analysis is usually done in situation in which
we have control of the X variable and can measure it
essentially without error. For simplicity, we will avoid
discussing curvilinear relationship between variables.
Regression and correlation..,
Correlation analysis is used when both the
variables are experimental and measured with
error. It is more preliminary than regression
analysis and generally measure the
correlationship between two variables of
interest.
Let us consider two examples to further
highlight the differences between regression
and correlation analysis.
Example 10.1
A biology student wishes to determine the relationship between
temperature and heart rate (heart beat/minute) in the
common leopard frog. He manipulates the temperature in 20
C increments ranging from 2 to 180C and records the heart
rate at each interval. His data are presented in table form
below
Rec.
No.

1

2

3

4

5

6

7

8

9

Temp
(X)

2

4

6

8

10

12

14

16

18

Heart
rate
(Y)

5

11 11 14 22 23 32 29 32
Example 10.1 …
How should he proceed to describe the relationship
between these variables (temp. and heart rate) ?
Clearly the two variables have functional
dependence – as the temperature increases the
heart rate increases. Here the temperature is
controlled by the student and can take exactly the
same values in another experiment with a
different frog. Temperature is the INDEPENDENT
or “predictor” variable (X). Heart rate is
determined by temperature and is, therefore, the
DEPENDENT variable or “response” variable (Y).
Example 10.2
A biologist interested in the morphology of west
Indian Chitons and he measured the length
and width of each of 10 chitons as
Anima
l

1

Length
(cm)
Width
(cm)

2

3

4

5

6

7

8

9

10

10.7 11.0

9.5

11.1

10.3

10.7

9.9

10.6

10.0

12.0

5.8

5.0

6.0

5.3

5.8

5.2

5.7

5.3

6.3

6.0
Example 10.2….
This data set is fundamentally different from the
data in Example 10.1 because neither variable
is under biologist’s control. To try to predict
length from width is as logical as to try to
predict width from length. Both variables are
free to vary (Fig 10.2). A correlational study is
more appropriate here than a regression
analysis. Because some of the calculations are
similar, regression and correlation are often
confused.
Fig 10.2
SIMPLE LINEAR REGRESSION
We assume
X
Y
1. Independent
1. Dependent
variable
variable
2. Measured
2. Free to vary
without error, fixed
and repeatable
Linear Model Assumptions
1. X’s are fixed and measured without error
2. The expected or mean value for the variable Y
for a given value of X is described by a linear
function
Y    X
where  and  are constant real numbers
and   0
.
 and  represent the intercept and slope,
respectively, of the linear relationship between
X and Y.
Linear Model Assumptions
3. For any fixed value of X, there may be several
corresponding values of the dependent variable Y. For
example, for fixed temperature several frogs may show
several results. However, we assume that for any such
given below Xi , the Yi ‘s are independent of each
other and normally distributed. We can represent each
Yi value as Y     X  e
i
i
i
Y is described as the expected value (    X i ) plus a
deviation (ei) from that expectation. We assume ei s
are normally distributed error terms with a mean of
zero.
Linear Model Assumptions…
4. The variances of the distributions of Y for different
values of X are assumed to be equal.
To describe the experimental regression relationship
between Y and X we need to do the following
a) Graph the data to ascertain that an apparent linear
relationship exists
b) Find the best fitting straight line for the data set.
c) Test whether or not the fitted line explains a
significant portion of the variability in Y i.e. test
whether the linear relationship is real or not.
Regression coefficient
The regression coefficient or slope (b)
b



XY 



X

2

(  X )(  Y )


n
2
( X )
n

Y changes for every unit change in X. Therefore, b
has unit as the original data set have.
If we have the value of ‘b’ we can calculate the
value of ‘a’ from Y  a  b X
Calculation of b
Referring to the example of temperature and heart rate
relationship in frog we have
n=9



X  90

X  10 . 0



b= 1.78.

X

2

 1140

Y

 179

Y  19 . 9



Y

2

 4365



XY  2216

THIS MEANS, FOR EVERY 1 DEGREE CHANGE IN TEMP., THERE
IS 1.78 BIT/MIN HEART RATE INCREASES OR DECREASES.
Simple Linear Correlation Analysis
Correlation analysis is used to measure the intensity
of association observed between any pair of
variables. We are largely concerned with whether
two variables are interdependent or co-vary. Here
we do not express one variable as a function of
the other and do not imply that Y is dependent
on X as we did with regression analysis. Both X
and Y are measured with error and we wish to
estimate the degree to which these variables vary
together.
…Correlation
A widely used index of the association of two
quantitative variables is Pearson ProductMoment Correlation Coefficient, usually called
correlation coefficient (r).
r 



 X



2

XY 

(  X )(  Y )
n

2
2
( X )  
( Y )
2

  Y 
n
n







….Correlation
Explainabl e var iability

-1≤r≤1 , r2 =
Total var iability
r2 = Coefficient of determination.
0.00

±0.10

±0.20

±0.30

±0.40

±0.50

±0.60

±0.70

±0.80

±0.90

±1.00

0.01

0.04

0.09

0.16

0.25

0.36

0.49

0.64

0.89

1.00

r

0.00

Correlation coefficients and the corresponding coefficients of
determination

r2
Correlation…
The standard error of the coefficient is
1 r
sr = n  2
Using this standard error we can develop a test
of hypothesis for 
Ho:  = 0
r0
r
Ha:  ≠ 0 with the test statistic t  s  1  r
With v = n-2
n2
2

2

r
Example 10.4 : Analysis of example
10.2 as a correlation problem
Let X be the chiton length (cm) and Y be the
chiton width (cm). The data for the problem
and the preliminary calculations
Length

Width

Length

Width

10.7

5.8

10.7

5.8

11.0

6.0

9.9

5.2

9.5

5.0

10.6

5.7

11.1

6.0

10.0

5.3

10.3

5.3

12.0

6.3
Example 10.4



X  105 . 8 , X  10 . 58

Y


X

2

 56 . 4 , Y  5 . 64

 1123 . 9 ,  Y

2

 319 . 68 ,  XY  599 . 31

n  10
r 



 X



XY 

(  X )(  Y )
n

( X )  
( Y ) 
2

  Y 

n
n




2

2

2

 0 . 969
Correlation….
Test whether there is a significant correlation
with α = 0.05 and v = n-2 = 10-2 = 8
Ho :   0

Ha :   0

Sr 

So the test statistic is
t

r0
Sr



0 . 969  0
0 . 087

 11 . 14

1 r

2

n2



1  ( 0 . 969 )
10  2

2

 0 . 087
Correlation
The critical values from Table
C.4 for v = 8 with α = 0.05 are
± 2.306. Since 11.14>>2.306,
we find a STRONG LINEAR
CORRELATION between length
and width of chiton shells.
Solve the problem
• Followings are the records of amount of feed
ingested (kg) and live weight (Kg) of broilers. Test
whether there is any significant correlation between
amount of feed intake and body weight. How much
weight gains a broiler out of 1 kg feed.
Bird
No.

1

2

3

Feed 3.6

3.9

4.1 4.0 3.9

Wt.

2.1

2.2 2.4 2.3

2.0

4

5

r=0.726, sig (2-tailed) p<0.017

6

7

8

9

10

4.4 4.2 4.0

3.9

4.6

2.9 2.8 2.5

2.7

2.7

More Related Content

What's hot

The chi square test of indep of categorical variables
The chi square test of indep of categorical variablesThe chi square test of indep of categorical variables
The chi square test of indep of categorical variablesRegent University
 
Spearman rank correlation coefficient
Spearman rank correlation coefficientSpearman rank correlation coefficient
Spearman rank correlation coefficientKarishma Chaudhary
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionKaushik Rajan
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regressionElkana Rorio
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)Harsh Upadhyay
 
Logit and Probit and Tobit model: Basic Introduction
Logit and Probit  and Tobit model: Basic IntroductionLogit and Probit  and Tobit model: Basic Introduction
Logit and Probit and Tobit model: Basic IntroductionRabeesh Verma
 
Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear RegressionIndus University
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionAbdelaziz Tayoun
 
R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r squareAkhilesh Joshi
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis_pem
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression AnalysisASAD ALI
 
Quantitative and qualitative variables
Quantitative and qualitative variables Quantitative and qualitative variables
Quantitative and qualitative variables Limon Prince
 

What's hot (20)

Regression analysis
Regression analysisRegression analysis
Regression analysis
 
The chi square test of indep of categorical variables
The chi square test of indep of categorical variablesThe chi square test of indep of categorical variables
The chi square test of indep of categorical variables
 
Spearman rank correlation coefficient
Spearman rank correlation coefficientSpearman rank correlation coefficient
Spearman rank correlation coefficient
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
 
Chap11 simple regression
Chap11 simple regressionChap11 simple regression
Chap11 simple regression
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Logit and Probit and Tobit model: Basic Introduction
Logit and Probit  and Tobit model: Basic IntroductionLogit and Probit  and Tobit model: Basic Introduction
Logit and Probit and Tobit model: Basic Introduction
 
Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear Regression
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Quantitative and qualitative variables
Quantitative and qualitative variables Quantitative and qualitative variables
Quantitative and qualitative variables
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Regression
RegressionRegression
Regression
 
Measures of central tendency and dispersion
Measures of central tendency and dispersionMeasures of central tendency and dispersion
Measures of central tendency and dispersion
 

Viewers also liked

Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressioncbt1213
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionSumit Prajapati
 
Bio 22 LAB - EXPT 19 (GROUP 4)
Bio 22 LAB - EXPT 19 (GROUP 4)Bio 22 LAB - EXPT 19 (GROUP 4)
Bio 22 LAB - EXPT 19 (GROUP 4)Jen Sambo
 
Simple regression and correlation
Simple regression and correlationSimple regression and correlation
Simple regression and correlationMary Grace
 
regression and correlation
regression and correlationregression and correlation
regression and correlationPriya Sharma
 
Effect of drugs on frog’s heart
Effect of drugs on frog’s heart Effect of drugs on frog’s heart
Effect of drugs on frog’s heart Karun Kumar
 
Correlation & Regression
Correlation & RegressionCorrelation & Regression
Correlation & RegressionGrant Heller
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionMohit Asija
 
Pearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionPearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionAzmi Mohd Tamil
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationVasant Kothari
 

Viewers also liked (16)

Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 
Stat
StatStat
Stat
 
Bio 22 LAB - EXPT 19 (GROUP 4)
Bio 22 LAB - EXPT 19 (GROUP 4)Bio 22 LAB - EXPT 19 (GROUP 4)
Bio 22 LAB - EXPT 19 (GROUP 4)
 
Simple regression and correlation
Simple regression and correlationSimple regression and correlation
Simple regression and correlation
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Regression
RegressionRegression
Regression
 
Effect of drugs on frog’s heart
Effect of drugs on frog’s heart Effect of drugs on frog’s heart
Effect of drugs on frog’s heart
 
Hul final ppt
Hul final pptHul final ppt
Hul final ppt
 
Correlation & Regression
Correlation & RegressionCorrelation & Regression
Correlation & Regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Correlation analysis
Correlation analysisCorrelation analysis
Correlation analysis
 
Pearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear RegressionPearson Correlation, Spearman Correlation &Linear Regression
Pearson Correlation, Spearman Correlation &Linear Regression
 
Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlation
 

Similar to Chapter 6 simple regression and correlation

Similar to Chapter 6 simple regression and correlation (20)

REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HERE
 
Regression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleRegression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with example
 
Regression
RegressionRegression
Regression
 
Reg
RegReg
Reg
 
Chapter13
Chapter13Chapter13
Chapter13
 
Regression
RegressionRegression
Regression
 
Lecture.3.regression.all
Lecture.3.regression.allLecture.3.regression.all
Lecture.3.regression.all
 
Regression
RegressionRegression
Regression
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression impt
 
Chapter 14 Part I
Chapter 14 Part IChapter 14 Part I
Chapter 14 Part I
 
Cost indexes
Cost indexesCost indexes
Cost indexes
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSS
 
regression analysis .ppt
regression analysis .pptregression analysis .ppt
regression analysis .ppt
 
Research Methodology Module-06
Research Methodology Module-06Research Methodology Module-06
Research Methodology Module-06
 
Applied statistics part 4
Applied statistics part  4Applied statistics part  4
Applied statistics part 4
 
A correlation analysis.ppt 2018
A correlation analysis.ppt 2018A correlation analysis.ppt 2018
A correlation analysis.ppt 2018
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 

More from Rione Drevale

Managing specialized risk_14
Managing specialized risk_14Managing specialized risk_14
Managing specialized risk_14Rione Drevale
 
Banana acclimatization
Banana acclimatizationBanana acclimatization
Banana acclimatizationRione Drevale
 
Strategic entrepreneurship tempelate
Strategic entrepreneurship tempelateStrategic entrepreneurship tempelate
Strategic entrepreneurship tempelateRione Drevale
 
Sign and symptoms in crops
Sign and symptoms in cropsSign and symptoms in crops
Sign and symptoms in cropsRione Drevale
 
L5 fpe3203 23_march_2015-1
L5 fpe3203 23_march_2015-1L5 fpe3203 23_march_2015-1
L5 fpe3203 23_march_2015-1Rione Drevale
 
Agricultural technology upscaling_1
Agricultural technology upscaling_1Agricultural technology upscaling_1
Agricultural technology upscaling_1Rione Drevale
 
Water science l3 available soil water 150912ed
Water science l3 available soil water 150912edWater science l3 available soil water 150912ed
Water science l3 available soil water 150912edRione Drevale
 
Water science l2 cwr final full ed
Water science l2 cwr final full edWater science l2 cwr final full ed
Water science l2 cwr final full edRione Drevale
 
Risk management chpt 2
Risk management chpt 2Risk management chpt 2
Risk management chpt 2Rione Drevale
 
Risk management chpt 3 and 9
Risk management chpt  3 and 9Risk management chpt  3 and 9
Risk management chpt 3 and 9Rione Drevale
 

More from Rione Drevale (20)

Risk financing
Risk financingRisk financing
Risk financing
 
Managing specialized risk_14
Managing specialized risk_14Managing specialized risk_14
Managing specialized risk_14
 
Arntzen
ArntzenArntzen
Arntzen
 
Banana acclimatization
Banana acclimatizationBanana acclimatization
Banana acclimatization
 
Strategic entrepreneurship tempelate
Strategic entrepreneurship tempelateStrategic entrepreneurship tempelate
Strategic entrepreneurship tempelate
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Sign and symptoms in crops
Sign and symptoms in cropsSign and symptoms in crops
Sign and symptoms in crops
 
Chapter 4 risk
Chapter 4 riskChapter 4 risk
Chapter 4 risk
 
Chapter 5 risk_
Chapter 5 risk_Chapter 5 risk_
Chapter 5 risk_
 
Risk 6
Risk 6Risk 6
Risk 6
 
L3 amp l4_fpe3203
L3 amp l4_fpe3203L3 amp l4_fpe3203
L3 amp l4_fpe3203
 
L2 fpe3203
L2 fpe3203L2 fpe3203
L2 fpe3203
 
L5 fpe3203 23_march_2015-1
L5 fpe3203 23_march_2015-1L5 fpe3203 23_march_2015-1
L5 fpe3203 23_march_2015-1
 
Agricultural technology upscaling_1
Agricultural technology upscaling_1Agricultural technology upscaling_1
Agricultural technology upscaling_1
 
Water science l3 available soil water 150912ed
Water science l3 available soil water 150912edWater science l3 available soil water 150912ed
Water science l3 available soil water 150912ed
 
Water science l2 cwr final full ed
Water science l2 cwr final full edWater science l2 cwr final full ed
Water science l2 cwr final full ed
 
W2 lab design_new2
W2 lab design_new2W2 lab design_new2
W2 lab design_new2
 
W1 intro plant_tc
W1 intro plant_tcW1 intro plant_tc
W1 intro plant_tc
 
Risk management chpt 2
Risk management chpt 2Risk management chpt 2
Risk management chpt 2
 
Risk management chpt 3 and 9
Risk management chpt  3 and 9Risk management chpt  3 and 9
Risk management chpt 3 and 9
 

Recently uploaded

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 

Recently uploaded (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

Chapter 6 simple regression and correlation

  • 2. SIMPLE REGRESSION AND CORRELATION Both regression and correlation between two sets of variables measure strength of relationship. In the case of linear regression, we will examine the amount of variability in one variable (Y, the dependent variable) that is explained by changes in another variable (X, the independent variable). Specifically, we will look for straight line or linear changes in Y as X changes. Regression analysis is usually done in situation in which we have control of the X variable and can measure it essentially without error. For simplicity, we will avoid discussing curvilinear relationship between variables.
  • 3. Regression and correlation.., Correlation analysis is used when both the variables are experimental and measured with error. It is more preliminary than regression analysis and generally measure the correlationship between two variables of interest. Let us consider two examples to further highlight the differences between regression and correlation analysis.
  • 4. Example 10.1 A biology student wishes to determine the relationship between temperature and heart rate (heart beat/minute) in the common leopard frog. He manipulates the temperature in 20 C increments ranging from 2 to 180C and records the heart rate at each interval. His data are presented in table form below Rec. No. 1 2 3 4 5 6 7 8 9 Temp (X) 2 4 6 8 10 12 14 16 18 Heart rate (Y) 5 11 11 14 22 23 32 29 32
  • 5. Example 10.1 … How should he proceed to describe the relationship between these variables (temp. and heart rate) ? Clearly the two variables have functional dependence – as the temperature increases the heart rate increases. Here the temperature is controlled by the student and can take exactly the same values in another experiment with a different frog. Temperature is the INDEPENDENT or “predictor” variable (X). Heart rate is determined by temperature and is, therefore, the DEPENDENT variable or “response” variable (Y).
  • 6.
  • 7. Example 10.2 A biologist interested in the morphology of west Indian Chitons and he measured the length and width of each of 10 chitons as Anima l 1 Length (cm) Width (cm) 2 3 4 5 6 7 8 9 10 10.7 11.0 9.5 11.1 10.3 10.7 9.9 10.6 10.0 12.0 5.8 5.0 6.0 5.3 5.8 5.2 5.7 5.3 6.3 6.0
  • 8. Example 10.2…. This data set is fundamentally different from the data in Example 10.1 because neither variable is under biologist’s control. To try to predict length from width is as logical as to try to predict width from length. Both variables are free to vary (Fig 10.2). A correlational study is more appropriate here than a regression analysis. Because some of the calculations are similar, regression and correlation are often confused.
  • 10. SIMPLE LINEAR REGRESSION We assume X Y 1. Independent 1. Dependent variable variable 2. Measured 2. Free to vary without error, fixed and repeatable
  • 11. Linear Model Assumptions 1. X’s are fixed and measured without error 2. The expected or mean value for the variable Y for a given value of X is described by a linear function Y    X where  and  are constant real numbers and   0 .  and  represent the intercept and slope, respectively, of the linear relationship between X and Y.
  • 12. Linear Model Assumptions 3. For any fixed value of X, there may be several corresponding values of the dependent variable Y. For example, for fixed temperature several frogs may show several results. However, we assume that for any such given below Xi , the Yi ‘s are independent of each other and normally distributed. We can represent each Yi value as Y     X  e i i i Y is described as the expected value (    X i ) plus a deviation (ei) from that expectation. We assume ei s are normally distributed error terms with a mean of zero.
  • 13. Linear Model Assumptions… 4. The variances of the distributions of Y for different values of X are assumed to be equal. To describe the experimental regression relationship between Y and X we need to do the following a) Graph the data to ascertain that an apparent linear relationship exists b) Find the best fitting straight line for the data set. c) Test whether or not the fitted line explains a significant portion of the variability in Y i.e. test whether the linear relationship is real or not.
  • 14. Regression coefficient The regression coefficient or slope (b) b  XY   X 2 (  X )(  Y )  n 2 ( X ) n Y changes for every unit change in X. Therefore, b has unit as the original data set have. If we have the value of ‘b’ we can calculate the value of ‘a’ from Y  a  b X
  • 15. Calculation of b Referring to the example of temperature and heart rate relationship in frog we have n=9  X  90 X  10 . 0  b= 1.78. X 2  1140 Y  179 Y  19 . 9  Y 2  4365  XY  2216 THIS MEANS, FOR EVERY 1 DEGREE CHANGE IN TEMP., THERE IS 1.78 BIT/MIN HEART RATE INCREASES OR DECREASES.
  • 16. Simple Linear Correlation Analysis Correlation analysis is used to measure the intensity of association observed between any pair of variables. We are largely concerned with whether two variables are interdependent or co-vary. Here we do not express one variable as a function of the other and do not imply that Y is dependent on X as we did with regression analysis. Both X and Y are measured with error and we wish to estimate the degree to which these variables vary together.
  • 17. …Correlation A widely used index of the association of two quantitative variables is Pearson ProductMoment Correlation Coefficient, usually called correlation coefficient (r). r     X   2 XY  (  X )(  Y ) n 2 2 ( X )   ( Y ) 2    Y  n n      
  • 18. ….Correlation Explainabl e var iability -1≤r≤1 , r2 = Total var iability r2 = Coefficient of determination. 0.00 ±0.10 ±0.20 ±0.30 ±0.40 ±0.50 ±0.60 ±0.70 ±0.80 ±0.90 ±1.00 0.01 0.04 0.09 0.16 0.25 0.36 0.49 0.64 0.89 1.00 r 0.00 Correlation coefficients and the corresponding coefficients of determination r2
  • 19. Correlation… The standard error of the coefficient is 1 r sr = n  2 Using this standard error we can develop a test of hypothesis for  Ho:  = 0 r0 r Ha:  ≠ 0 with the test statistic t  s  1  r With v = n-2 n2 2 2 r
  • 20. Example 10.4 : Analysis of example 10.2 as a correlation problem Let X be the chiton length (cm) and Y be the chiton width (cm). The data for the problem and the preliminary calculations Length Width Length Width 10.7 5.8 10.7 5.8 11.0 6.0 9.9 5.2 9.5 5.0 10.6 5.7 11.1 6.0 10.0 5.3 10.3 5.3 12.0 6.3
  • 21. Example 10.4  X  105 . 8 , X  10 . 58 Y  X 2  56 . 4 , Y  5 . 64  1123 . 9 ,  Y 2  319 . 68 ,  XY  599 . 31 n  10 r     X   XY  (  X )(  Y ) n ( X )   ( Y )  2    Y   n n     2 2 2  0 . 969
  • 22. Correlation…. Test whether there is a significant correlation with α = 0.05 and v = n-2 = 10-2 = 8 Ho :   0 Ha :   0 Sr  So the test statistic is t r0 Sr  0 . 969  0 0 . 087  11 . 14 1 r 2 n2  1  ( 0 . 969 ) 10  2 2  0 . 087
  • 23. Correlation The critical values from Table C.4 for v = 8 with α = 0.05 are ± 2.306. Since 11.14>>2.306, we find a STRONG LINEAR CORRELATION between length and width of chiton shells.
  • 24. Solve the problem • Followings are the records of amount of feed ingested (kg) and live weight (Kg) of broilers. Test whether there is any significant correlation between amount of feed intake and body weight. How much weight gains a broiler out of 1 kg feed. Bird No. 1 2 3 Feed 3.6 3.9 4.1 4.0 3.9 Wt. 2.1 2.2 2.4 2.3 2.0 4 5 r=0.726, sig (2-tailed) p<0.017 6 7 8 9 10 4.4 4.2 4.0 3.9 4.6 2.9 2.8 2.5 2.7 2.7