# DEPARTMENT OF TECHNICAL EDUCATION ANDHRA PRADESH

Name Designation Branch Institute Year/Semester Subject Sub Code Topic Duration Sub-topic Teaching Aids : M.L.Kameswari. : Sr. Lecturer : Commercial and Computer Practice : GPW, Bheemunipatnam. : IV semester. : Quantitative Techniques-II : CCP 403 : Regression equations and Regression coefficients : 100 Minutes : Problems on Regression Equations by taking deviations from Assumed Mean : PPT
CCP403.38 TO 39 1

OBJECTIVES

On completion of this period, you would be able to  Understand solving of Regression Coefficients  By taking deviations from assumed mean

CCP403.38 TO 39

2

RECAP

In the last class you solved  Exercise on Regression Equations through Regression Coefficients  by taking deviations from assumed mean

CCP403.38 TO 39

3

Example 1
From the data given below, find a) The two regression equations b) The coefficient of correlation between the marks in economics and statistics c) The most likely marks in statistics when marks are in economics are 30
Marks in Economics Marks in statistics 25 28 35 32 31 43 46 49 41 36 36 29 38 34 32 32 31 30 33 39

CCP403.38 TO 39

4

Solution to Ex. 1

Let us denote the marks in economics by the variable X and the marks in statistics by the variable Y

CCP403.38 TO 39

5

Calculation of Regression Equations
X = 32 X 25 28 35 32 31 36 29 38 34 32 ∑X = 320 x=(X – X) -7 -4 +3 0 -1 4 -3 +6 +2 0 x2 49 16 9 0 1 16 9 36 4 0 ∑x2 = 140 Y 43 46 49 41 36 32 31 30 33 39 ∑Y = 380
CCP403.38 TO 39

Y = 38 (Y – Y) 5 8 11 3 -2 -6 -7 -8 -5 +1 y2 25 64 121 9 4 36 49 64 25 1 ∑Y2 = 398 xy -35 -32 33 0 2 -24 21 -48 -10 0 ∑xy = -93
6

Solution contd

X

= ∑X = 320 = 32
N 10

(d)

Coefficient of regression of Y on X is given by byx = ∑( X- X) (Y – Y) = ∑xy (X – X)2 = -93 = - 0.6643
140
CCP403.38 TO 39 7

∑x2

Solution contd

(b)

Coefficient of regression of X on Y is given by
byx = ∑( X- X) (Y – Y) = ∑xy (Y – Y)2 = -93 = - 0.2337 398 ∑y 2

CCP403.38 TO 39

8

Solution contd

Regression equations
Equation of the line of regression of X on Y is X – X = bxy(Y – Y) X – 32 = -0.2337(Y-- 38) = -0.2337Y + 0.2337(38) = -0.2337Y + 8.8806 X = 0.2337Y + 32 + 8.8806 X = 0.2337Y + 40.8806

CCP403.38 TO 39

9

Solution contd

Regression equation of Y on X
Y - Y = byx(X – X) Y – 38 = - 0.6643(X – 32) Y = - 0.6643X + 0.6643(32) + 38 Y = - 0.6643X + 21.2576 + 38 Y = - 0.6643X + 59.2576

CCP403.38 TO 39

10

Solution contd

Correlation coefficient
r2 = byx . bxy = (-0.6643)(-0.2337) = 0.1552 r = √ + 0.1552=+ 0.394  Since both the regression coefficients are negative, r must be negative, hence leaving + sign we get r = - 0.394.
CCP403.38 TO 39 11

Solution contd

Estimating most likely marks in statistics (Y) when Economics (X) are 30.
Y – Y = byx(X – X) = - 0.6643X + 59.2576 = - 0.6643(30) + 59.2576 = -19.929 + 59.2576 = 39.3286 When economics marks = 30 Statistics marks = 39 Y Y

CCP403.38 TO 39

12

Example 2
X Arithmetic mean Standard deviation 36 11 Y 85 8

 Correlation coefficient between X and Y = 0.66  From the data given Find the two regression equations  Estimate value of X when Y = 75

CCP403.38 TO 39

13

Solution to Ex. 2
Regression equation of Y on X
Y – Y = r (σy / σx) (X – X) Y – 85 = 0.66 (8 / 11) (X – 36) = 0.48X – 17.28 Y = 0.48X – 17.28 + 85 Y = 0.48X + 67.72

CCP403.38 TO 39

14

Solution contd

Regression equation of X on Y
X – X = r (σx / σy) (Y – Y) X – 36 = 0.66 (11 / 8) (Y – 85) = 0.908(Y – 85) = 0.908Y – 77.18 X = 0.908Y – 77.18 + 36 X = 0.908Y – 41.18

CCP403.38 TO 39

15

Solution contd

Value of X when Y = 75

X = 0.908 Y – 41.18 X = 0.908(75) – 41.8 = 68.1 – 41.18 = 26.92

CCP403.38 TO 39

16

Example 3

The correlation coefficient between the variables X and Y is r = 0.60. If x = 1.50, y = 2.00, X = 10,Y 20, find the equations of (i) Y on X (ii) X on Y

CCP403.38 TO 39

17

Solution to Ex. 3
Equation of the Regression lines of Y on X is

σy Y–Y =r σx 2 Y – 20 = 0.6 (X – 10) 1.50 = 0.8X – 8 Y = 0.8X – 8 + 20 Y = 0.8X + 12
CCP403.38 TO 39 18

(X – X)

Solution contd Equation of the Regression lines X on Y is

σx X–X =r (Y – Y) σy 1.5 X – 10 = 0.6 (Y – 20) 2.0 = 0.45 (Y – 20) = 0.45Y – 9 X = 0.45 Y – 9 + 10 X = 0.45 Y + 1

CCP403.38 TO 39

19

SUMMARY

 In this class you solved  Exercise on regression equations through regression coefficients  by taking deviations from assumed mean  and given assignment

CCP403.38 TO 39

20

The following table gives the relative values of two variables X 42 44 58 55 89 91 66
Y 56 49 53 58 65 76 58

Determine the regression equations which may be associated with these Values and calculate Karl Pearson’s coefficient of correlation. Answer is : Y = 0.897X – 34.5121, X = 1.949Y – 51.977, r = 0.8715

CCP403.38 TO 39

21

Assignment
1. Given the following values estimate the yield of wheat when the rainfall is 15.5cm
Mean Yield of wheat (kg/unit area) (Annual Rainfall (cm)) 10.7 20.4 S.D 8.1 5.0

Coefficient of correlation between yield and rainfall = + 0.52 Answer is : 6.5722kg/Unit area
CCP403.38 TO 39 22

Assignment
2. Find two regression lines for data
X: Y: 120 40 90 36 80 40 100 45 110 40

Answer is : X on Y, X = 60.60 + 0.980Y, Y on X, Y = 36.2 + 0.04X

CCP403.38 TO 39

23