+ All Categories
Home > Education > Chapter 6 simple regression and correlation

Chapter 6 simple regression and correlation

Date post: 11-May-2015
Category:
Upload: rione-drevale
View: 247 times
Download: 2 times
Share this document with a friend
Description:
biometry
Popular Tags:
24
ION( r) and REGR ESSI ON (b)
Transcript
Page 1: Chapter 6 simple regression and correlation

CORRELATION(r)

and REGRESSION (b)

Page 2: Chapter 6 simple regression and correlation

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.

Page 3: Chapter 6 simple regression and correlation

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.

Page 4: Chapter 6 simple regression and correlation

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 9Temp (X) 2 4 6 8 10 12 14 16 18Heart rate (Y)

5 11 11 14 22 23 32 29 32

Page 5: Chapter 6 simple regression and correlation

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).

Page 6: Chapter 6 simple regression and correlation
Page 7: Chapter 6 simple regression and correlation

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

Animal

1 2 3 4 5 6 7 8 9 10

Length (cm)

10.7 11.0 9.5 11.1 10.3 10.7 9.9 10.6 10.0 12.0

Width (cm)

5.8 6.0 5.0 6.0 5.3 5.8 5.2 5.7 5.3 6.3

Page 8: Chapter 6 simple regression and correlation

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.

Page 9: Chapter 6 simple regression and correlation

Fig 10.2

Page 10: Chapter 6 simple regression and correlation

SIMPLE LINEAR REGRESSION

We assume X Y1. Independent variable

1. Dependent variable

2. Measured without error, fixed and repeatable

2. Free to vary

Page 11: Chapter 6 simple regression and correlation

Linear Model Assumptions

1. X’s are fixed and measured without error2. The expected or mean value for the variable Y for a

given value of X is described by a linear function

where and are constant real numbers and .

and represent the intercept and slope, respectively, of the linear relationship between X and Y.

XY 0

Page 12: Chapter 6 simple regression and correlation

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 is described as the expected value ( ) plus a deviation (ei) from that expectation. We assume ei s are normally distributed error terms with a mean of zero.

iii eXY

iX

Page 13: Chapter 6 simple regression and correlation

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.

Page 14: Chapter 6 simple regression and correlation

Regression coefficient

The regression coefficient or slope (b)

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

n

XX

n

YXXY

b 22 )(

))((

XbaY

Page 15: Chapter 6 simple regression and correlation

Calculation of b

Referring to the example of temperature and heart rate relationship in frog we have

n=9

b= 1.78. THIS MEANS, FOR EVERY 1 DEGREE CHANGE IN TEMP., THERE IS

1.78 BIT/MIN HEART RATE INCREASES OR DECREASES.

90X 179Y

0.10X 9.19Y

11402X 43652Y 2216XY

Page 16: Chapter 6 simple regression and correlation

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.

Page 17: Chapter 6 simple regression and correlation

…Correlation

A widely used index of the association of two quantitative variables is Pearson Product-Moment Correlation Coefficient, usually called correlation coefficient (r).

n

YY

n

XX

n

YXXY

r2

22

2 )()(

))((

Page 18: Chapter 6 simple regression and correlation

….Correlation

-1≤r≤1 , r2 = r2 = Coefficient of determination.Correlation coefficients and the corresponding coefficients of determination

iabilityTotal

iabilityeExplainabl

var

var

r 0.00

±0.10

±0.20

±0.30

±0.40

±0.50

±0.60

±0.70

±0.80

±0.90

±1.00

r2 0.00

0.01

0.04

0.09

0.16

0.25

0.36

0.49

0.64

0.89

1.00

Page 19: Chapter 6 simple regression and correlation

Correlation…

The standard error of the coefficient issr =

Using this standard error we can develop a test of hypothesis for

Ho: = 0Ha: ≠ 0 with the test statistic With v = n-2

2

1 2

n

r

21

02

nr

r

s

rt

r

Page 20: Chapter 6 simple regression and correlation

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

Page 21: Chapter 6 simple regression and correlation

Example 10.4

58.10,8.105 XX

64.5,4.56 YY

31.599,68.319,9.1123 22 XYYX

10n

n

YY

n

XX

n

YXXY

r2

22

2 )()(

))((

969.0

Page 22: Chapter 6 simple regression and correlation

Correlation….

Test whether there is a significant correlation with α = 0.05 and v = n-2 = 10-2 = 8

So the test statistic is

0: Ho

0: Ha087.0

210

)969.0(1

2

1 22

n

rSr

14.11087.0

0969.00

rS

rt

Page 23: Chapter 6 simple regression and correlation

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.

Page 24: Chapter 6 simple regression and correlation

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 4 5 6 7 8 9 10

Feed 3.6 3.9 4.1 4.0 3.9 4.4 4.2 4.0 3.9 4.6Wt. 2.0 2.1 2.2 2.4 2.3 2.9 2.8 2.5 2.7 2.7

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


Recommended