SlideShare a Scribd company logo
ROLE OF REGRESSION IN STATISTICS
BY
ASSOCIATE PROFESSOR
NADEEM UDDIN
Regression
The term regression used firstly by “Sir Frances Galton” is used for all such
problems where we have to estimate or predict one variable on the basis of another
variable.
Definition
A process by which we predict or estimate values of one dependent variable from
known values of other independent variables is called regression.
Regressand and Regressor
In regression process the dependent variable is called a random variable or
regressand and the independent variable is called fixed variable or regressor.
Dependent Variable
The variable which is to be estimated or predicted is called dependent variable.
Independent Variable
The variable on the basis of which the dependent variable is to be estimated is
called independent variable.
For Example
If we want to estimate the heights of children on the basis of their ages, then the
heights of children would be dependent variable and the ages of children would be
independent variable.
Students are some time confused with independent variable and dependent variable
here are some examples of independent and dependent variables:
Independent Variable (𝒙) Dependent Variable (𝒚)
• Age of child Weight of child
• Temperature of a plant Height of a plant
• Amount of drug Reaction time
• Number of registered vehicles Number of road accidents
• Advertising Income
Scatter Diagram
Scatter diagram is obtained by plotting the paired values of 𝑥 and 𝑦 on a graph
paper and the points so obtained are kept disjoined.
In scatter diagram we take independent variable along the 𝑥 − 𝑎𝑥𝑖𝑠 and the
dependent variable on the 𝑦 − 𝑎𝑥𝑖𝑠.
This is the simplest method of investigating the relationship between the two
variables.
Here below is given heights of children in inches and weights in pounds.
Heights(𝑖𝑛𝑐ℎ𝑒𝑠)𝑥 58 70 74 68 61 66 70 63
Weights(𝑝𝑜𝑢𝑛𝑑𝑠)𝑦 160 180 176 165 150 155 169 160
Now we plot this data taking the independent variable (heights) on 𝑥 − 𝑎𝑥𝑖𝑠 and
the dependent variable (weights) on 𝑦 − 𝑎𝑥𝑖𝑠 to get scatter.
Scatter diagram indicates a relationship between the variables. There dots
shows upward trend and we say that a linear relationship exists between height
and weight.
The resulting curve in scatter diagram is called curve of regression or linear
regression.
145
150
155
160
165
170
175
180
185
0 10 20 30 40 50 60 70 80
Heights (inches)
Weights(pounds)
The Least Square Line
After drawing scatter diagram, a free hand line can be drawn through the plotted
points, which shows trend of the variables. This free hand drawing is a “Subjective
Method” as it depends upon the personal judgment of the person drawing the line.
We need some objective method. An “Objective Method is the method of least
square”. The line obtained by this method is called “Least Square Line”.
Least Square Lines of Regression
The equation for a straight line or linear trend will be
𝑦 = 𝑎 + 𝑏𝑥
Where 𝑦 dependent variable and 𝑥 is independent variable. “𝑎” and “𝑏” are
unknown parameters determined by solving simultaneously the following normal
equation.
∑𝑦 = 𝑛𝑎 + 𝑏∑𝑥
∑𝑥𝑦 = 𝑎∑𝑥 + 𝑏∑𝑥2
The Values of “𝑎” and “𝑏” can be calculated by the following formulae which are
obtained by solving the above equations.
𝑏 =
𝑛∑𝑥𝑦 − ∑𝑥∑𝑦
𝑛∑𝑥2 − (∑𝑥)2
𝑎 =
∑𝑦
𝑛
− 𝑏 (
∑𝑥
𝑛
)
or
𝑎 = 𝑦̅ − 𝑏𝑥̅
If the variable “𝑥” is taken as dependent variable and “𝑦” is taken as independent
variable then the least square line is
𝑥 = 𝑐 + 𝑑𝑦
The normal equations are
∑𝑥 = 𝑛𝑐 + 𝑑∑𝑦
∑𝑥𝑦 = 𝑐∑𝑦 + 𝑑∑𝑦2
By solving the above equations, the value of “𝑐” and “𝑑” can be calculated as
𝑑 =
𝑛∑𝑥𝑦 − ∑𝑥∑𝑦
𝑛∑𝑦2 − (∑𝑦)2
𝑐 =
∑𝑥
𝑛
− 𝑑(
∑𝑦
𝑛
)
Or
𝑐 = 𝑥̅ − 𝑑𝑦̅
Example-1:
Determine
(i) the regression equation of 𝑦 on 𝑥, and estimate 𝑦 at 𝑥 = 2.
(ii) the regression equation of 𝑥 on 𝑦, and estimate 𝑥 at y = 4.
𝒙 1 3 3 4 5 5
𝒚 5 3 2 2 0 1
Solution:
𝒙 𝒚 𝒙𝒚 𝒙 𝟐
𝒚 𝟐
1 5 5 1 25
3 3 9 9 9
3 2 6 9 4
4 2 8 16 4
5 0 0 25 0
5 1 5 25 1
∑x=21 ∑y=13 ∑xy=33 ∑x2
=85 ∑y2
=43
Regression equation 𝑦 on 𝑥.
y a bx= +
𝑏 =
𝑛∑𝑥𝑦−∑𝑥∑𝑦
𝑛∑𝑥2−(∑𝑥)2
𝑏 =
6(33)−(21)(13)
6(85)−(21)2
𝑏 =
198−273
510−441
𝑏 = −
75
69
𝒃 = −𝟏. 𝟎𝟗
𝑎 =
∑𝑦
𝑛
− 𝑏 (
∑𝑥
𝑛
)
𝑎 =
13
6
− (−1.09)(
21
6
)
𝑎 = 2.17 + 3.815
𝑎 = 5.98
Line of Regression
𝑦 = 𝑎 + 𝑏𝑥
𝑦 = 5.98 + (−1.09)𝑥
𝒚 = 𝟓. 𝟗𝟖 − 𝟏. 𝟎𝟗𝒙
When 𝑥 = 2
𝑦̂ = 5.98 − 1.09(2)
𝑦̂ = 5.98 − 2.18
𝒚̂ = 𝟑. 𝟖
(ii) Regression equation 𝑥 on 𝑦
𝑥 = 𝑐 + 𝑑𝑦
𝑑 =
𝑛∑𝑥𝑦−∑𝑥∑𝑦
𝑛∑𝑦2−(∑𝑦)2
𝑑 =
(6)(33)−(21)(13)
(6)(43)−(13)2
𝑑 =
198−273
258−169
𝑑 = −
75
89
𝒅 = −𝟎. 𝟖𝟒
𝑐 =
∑𝑥
𝑛
− 𝑑(
∑𝑦
𝑛
)
𝑐 =
21
6
− (−0.84)(
13
6
)
𝑐 = 3.5 + 0.84(2.17)
𝑐 = 3.5 + 1.82
𝒄 = 𝟓. 𝟑𝟐
𝑥 = 𝑐 + 𝑑𝑦
𝑥 = 5.32 + (−0.84)𝑦
𝒙 = 𝟓. 𝟑𝟐 − 𝟎. 𝟖𝟒𝒚
When 𝑦 = 4
𝑥̂ = 5.32 − 0.84(4)
𝑥̂ = 5.32 − 3.36
𝒙̂ = 𝟏. 𝟗𝟔
Example-2:
The heights and weights of six men are given below.
Height(𝑚𝑒𝑡𝑒𝑟𝑠) 2.00 1.80 1.85 1.72 1.75 1.79
Weight(𝑘𝑔𝑠) 85.0 78.0 80.0 74.0 75.0 76.0
i) Determine both the lines of regression.
ii) Estimate weight when height is1.70 𝑚𝑒𝑡𝑒𝑟𝑠.
iii) Estimate height when weight is70.0 𝑘𝑔.
Solution:
Height
(𝒎𝒆𝒕𝒆𝒓𝒔) 𝒙
Weight (𝒌𝒈𝒔)
𝒚
𝒙𝒚 𝒙 𝟐
𝒚 𝟐
2.00 85.0 170.00 4.0000 7225
1.80 78.0 140.40 3.2400 6084
1.85 80.0 148.00 3.4225 6400
1.72 74.0 127.28 2.9584 5476
1.75 75.0 131.25 3.0625 5625
1.79 76.0 136.04 3.2041 5776
∑x=10.91 ∑y=468 ∑xy=852.97 ∑x2
=19.8875 ∑y2
=36586
i) Regression line 𝑦 on 𝑥
𝑦 = 𝑎 + 𝑏𝑥
𝑏 =
𝑛∑𝑥𝑦−∑𝑥∑𝑦
𝑛∑𝑥2−(∑𝑥)2
𝑏 =
6(852.97)−(10.91)(468)
6(19.8875)−(10.91)2
𝑏 =
5117.82−5105.88
119.325−119.0281
𝑏 =
11.94
0.2969
𝒃 = 𝟒𝟎. 𝟐𝟐
𝑎 =
∑𝑦
𝑛
− 𝑏(
∑𝑥
𝑛
)
𝑎 =
468
6
− (40.22) (
10.91
6
)
𝑎 = 78 − (40.22)(1.82)
𝑎 = 78 − 73.20
𝒂 = 𝟒. 𝟖
𝑦 = 𝑎 + 𝑏𝑥
𝑦 = 4.8 + 40.22𝑥
Regression line 𝑥 on 𝑦
𝑥 = 𝑐 + 𝑑𝑦
𝑑 =
𝑛∑𝑥𝑦−∑𝑥∑𝑦
𝑛∑𝑦2−(∑𝑦)2
𝑑 =
6(852.97)−(10.9)(468)
6(36586)−(468)2
𝑑 =
11.94
492
𝒅 = 𝟎. 𝟎𝟐𝟒
𝑐 =
∑𝑥
𝑛
− 𝑑 (
∑𝑦
𝑛
)
𝑐 =
10.91
6
− (0.024) (
468
6
)
𝑐 = 1.82 − (0.024)(78)
𝑐 = 1.82 − 1.872
𝒄 = −𝟎. 𝟎𝟓𝟐
𝑥 = 𝑐 + 𝑑𝑦
𝒙 = −𝟎. 𝟎𝟓𝟐 + 𝟎. 𝟎𝟐𝟒𝒚
ii) Estimate weight when height is 𝑥 = 1.70 meters
𝑦̂ = 4.8 + 40.22(1.70)
𝑦̂ = 4.8 + 68.374
𝒚̂ = 𝟕𝟑 𝒌𝒈
The estimated value of weight is 73𝑘𝑔 when height is1.7 𝑚𝑒𝑡𝑒𝑟𝑠.
Now estimate height when weight is 𝑦 = 70.0 𝑘𝑔
𝑥̂ = −0.052 + 0.024(7.00)
𝑥̂ = −0.052 + 1.68
𝒙̂ = 𝟏. 𝟔𝟑 𝒎𝒆𝒕𝒆𝒓𝒔
The estimated value of height is 1.63 𝑚𝑒𝑡𝑒𝑟𝑠 when weight is70 𝑘𝑔.

More Related Content

PPTX
Regression
PPTX
4.7 partial correlation
PPTX
Physics and physical measurement
PPTX
Regression
PPTX
Vectors in mechanics
PDF
EJERCICIO RESUELTO DE ANALISIS DIMENSIONAL
PPTX
What is a Single Linear Regression
Regression
4.7 partial correlation
Physics and physical measurement
Regression
Vectors in mechanics
EJERCICIO RESUELTO DE ANALISIS DIMENSIONAL
What is a Single Linear Regression

What's hot (20)

PPTX
4.3 basic concepts of correlation
PPT
motion
PPT
Hypothesis testing for nonparametric data
PPTX
Motion
PDF
Motion speed velocity_ ppt.
PPTX
PPTX
speed and velocity
PPT
Motion 1
PPT
Motion speed and velocity
PPTX
Physics (displacement, distance, speed, velocity) 1 d
PPT
Movement
PPTX
Motion in One Dimension: Distance, Displacement, speed or velocity and accele...
PPTX
Errors and uncertainities net
PPT
Ch 2 Linear Motion
PDF
Speed and velocity
PDF
Vector and scalar
PPT
Physics - Chapter 2 - One Dimensional Motion
PPT
Speed,velocity,acceleration
4.3 basic concepts of correlation
motion
Hypothesis testing for nonparametric data
Motion
Motion speed velocity_ ppt.
speed and velocity
Motion 1
Motion speed and velocity
Physics (displacement, distance, speed, velocity) 1 d
Movement
Motion in One Dimension: Distance, Displacement, speed or velocity and accele...
Errors and uncertainities net
Ch 2 Linear Motion
Speed and velocity
Vector and scalar
Physics - Chapter 2 - One Dimensional Motion
Speed,velocity,acceleration
Ad

Similar to Role of regression in statistics (2) (20)

PPTX
REGRESSION ANALYSIS THEORY EXPLAINED HERE
PPTX
Unit 7b Regression Analyss.pptxbhjjjjjjk
PPT
Simple linear regression
PPTX
Simple linear regression
PDF
Regression analysis
PPTX
Regression analysis.
PPTX
Regression analysis
PPTX
Regression analysis
PPTX
Regression Analysis
PPTX
Regression analysis
PPTX
Regression
PDF
Econometrics assignment help
PPTX
Regression Analysis
PPTX
regression analysis presentation slides.
PPTX
Regression
DOCX
Course pack unit 5
PDF
Multiple linear regression
PPTX
Regression , Types of Regression, Application of Regression, methods
PDF
P G STAT 531 Lecture 10 Regression
PPTX
Regression
REGRESSION ANALYSIS THEORY EXPLAINED HERE
Unit 7b Regression Analyss.pptxbhjjjjjjk
Simple linear regression
Simple linear regression
Regression analysis
Regression analysis.
Regression analysis
Regression analysis
Regression Analysis
Regression analysis
Regression
Econometrics assignment help
Regression Analysis
regression analysis presentation slides.
Regression
Course pack unit 5
Multiple linear regression
Regression , Types of Regression, Application of Regression, methods
P G STAT 531 Lecture 10 Regression
Regression
Ad

More from Nadeem Uddin (20)

PDF
A corporation has 15 salesmen.pdf
DOCX
A question paper is divided into three groups A.docx
DOCX
If on the average the rain falls on twelve days in every thirty day.docx
DOCX
If on the average the rain falls on twelve days in every thirty days.docx
DOCX
If A and B play a game in which the probability that A wins is (2).docx
DOCX
If A and B play a game in which the probability that A wins is.docx
DOCX
Suppose you are eating at cafeteria with two friends.docx
DOCX
Three men toss in succession for a prize to be given to the one.docx
DOCX
Two men A and B toss in succession for a prize to be given to the one.docx
DOCX
For the following venn diagram.docx
DOCX
A group of 50 people was asked of three newspapers.docx
DOCX
In a survey of 100 participants.docx
DOCX
Probability by venn diagram.docx
DOCX
A bag contains 6 red and 4 black balls.docx
DOCX
Suppose that the probability is 0.8 that any given person will believe a tale...
DOCX
A man draws 2 balls from a bag containing 3 white and 5 black balls.docx
DOCX
The probability that a candidate passes a certain professional examination is...
DOCX
The probability that three men hit a target are respectively 1.docx
DOCX
In a survey of a group of people the following results are obtained.docx
DOCX
The probability that a student passes mathematics is 2.docx
A corporation has 15 salesmen.pdf
A question paper is divided into three groups A.docx
If on the average the rain falls on twelve days in every thirty day.docx
If on the average the rain falls on twelve days in every thirty days.docx
If A and B play a game in which the probability that A wins is (2).docx
If A and B play a game in which the probability that A wins is.docx
Suppose you are eating at cafeteria with two friends.docx
Three men toss in succession for a prize to be given to the one.docx
Two men A and B toss in succession for a prize to be given to the one.docx
For the following venn diagram.docx
A group of 50 people was asked of three newspapers.docx
In a survey of 100 participants.docx
Probability by venn diagram.docx
A bag contains 6 red and 4 black balls.docx
Suppose that the probability is 0.8 that any given person will believe a tale...
A man draws 2 balls from a bag containing 3 white and 5 black balls.docx
The probability that a candidate passes a certain professional examination is...
The probability that three men hit a target are respectively 1.docx
In a survey of a group of people the following results are obtained.docx
The probability that a student passes mathematics is 2.docx

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Types and Its function , kingdom of life
PDF
Business Ethics Teaching Materials for college
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Complications of Minimal Access Surgery at WLH
PDF
01-Introduction-to-Information-Management.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Basic Mud Logging Guide for educational purpose
Cell Types and Its function , kingdom of life
Business Ethics Teaching Materials for college
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
RMMM.pdf make it easy to upload and study
Week 4 Term 3 Study Techniques revisited.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Complications of Minimal Access Surgery at WLH
01-Introduction-to-Information-Management.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPH.pptx obstetrics and gynecology in nursing
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pre independence Education in Inndia.pdf

Role of regression in statistics (2)

  • 1. ROLE OF REGRESSION IN STATISTICS BY ASSOCIATE PROFESSOR NADEEM UDDIN Regression The term regression used firstly by “Sir Frances Galton” is used for all such problems where we have to estimate or predict one variable on the basis of another variable. Definition A process by which we predict or estimate values of one dependent variable from known values of other independent variables is called regression. Regressand and Regressor In regression process the dependent variable is called a random variable or regressand and the independent variable is called fixed variable or regressor. Dependent Variable The variable which is to be estimated or predicted is called dependent variable. Independent Variable The variable on the basis of which the dependent variable is to be estimated is called independent variable. For Example If we want to estimate the heights of children on the basis of their ages, then the heights of children would be dependent variable and the ages of children would be independent variable. Students are some time confused with independent variable and dependent variable here are some examples of independent and dependent variables:
  • 2. Independent Variable (𝒙) Dependent Variable (𝒚) • Age of child Weight of child • Temperature of a plant Height of a plant • Amount of drug Reaction time • Number of registered vehicles Number of road accidents • Advertising Income Scatter Diagram Scatter diagram is obtained by plotting the paired values of 𝑥 and 𝑦 on a graph paper and the points so obtained are kept disjoined. In scatter diagram we take independent variable along the 𝑥 − 𝑎𝑥𝑖𝑠 and the dependent variable on the 𝑦 − 𝑎𝑥𝑖𝑠. This is the simplest method of investigating the relationship between the two variables. Here below is given heights of children in inches and weights in pounds. Heights(𝑖𝑛𝑐ℎ𝑒𝑠)𝑥 58 70 74 68 61 66 70 63 Weights(𝑝𝑜𝑢𝑛𝑑𝑠)𝑦 160 180 176 165 150 155 169 160 Now we plot this data taking the independent variable (heights) on 𝑥 − 𝑎𝑥𝑖𝑠 and the dependent variable (weights) on 𝑦 − 𝑎𝑥𝑖𝑠 to get scatter. Scatter diagram indicates a relationship between the variables. There dots shows upward trend and we say that a linear relationship exists between height and weight. The resulting curve in scatter diagram is called curve of regression or linear regression. 145 150 155 160 165 170 175 180 185 0 10 20 30 40 50 60 70 80 Heights (inches) Weights(pounds)
  • 3. The Least Square Line After drawing scatter diagram, a free hand line can be drawn through the plotted points, which shows trend of the variables. This free hand drawing is a “Subjective Method” as it depends upon the personal judgment of the person drawing the line. We need some objective method. An “Objective Method is the method of least square”. The line obtained by this method is called “Least Square Line”. Least Square Lines of Regression The equation for a straight line or linear trend will be 𝑦 = 𝑎 + 𝑏𝑥 Where 𝑦 dependent variable and 𝑥 is independent variable. “𝑎” and “𝑏” are unknown parameters determined by solving simultaneously the following normal equation. ∑𝑦 = 𝑛𝑎 + 𝑏∑𝑥 ∑𝑥𝑦 = 𝑎∑𝑥 + 𝑏∑𝑥2 The Values of “𝑎” and “𝑏” can be calculated by the following formulae which are obtained by solving the above equations. 𝑏 = 𝑛∑𝑥𝑦 − ∑𝑥∑𝑦 𝑛∑𝑥2 − (∑𝑥)2 𝑎 = ∑𝑦 𝑛 − 𝑏 ( ∑𝑥 𝑛 ) or 𝑎 = 𝑦̅ − 𝑏𝑥̅ If the variable “𝑥” is taken as dependent variable and “𝑦” is taken as independent variable then the least square line is 𝑥 = 𝑐 + 𝑑𝑦 The normal equations are ∑𝑥 = 𝑛𝑐 + 𝑑∑𝑦 ∑𝑥𝑦 = 𝑐∑𝑦 + 𝑑∑𝑦2 By solving the above equations, the value of “𝑐” and “𝑑” can be calculated as 𝑑 = 𝑛∑𝑥𝑦 − ∑𝑥∑𝑦 𝑛∑𝑦2 − (∑𝑦)2 𝑐 = ∑𝑥 𝑛 − 𝑑( ∑𝑦 𝑛 ) Or 𝑐 = 𝑥̅ − 𝑑𝑦̅
  • 4. Example-1: Determine (i) the regression equation of 𝑦 on 𝑥, and estimate 𝑦 at 𝑥 = 2. (ii) the regression equation of 𝑥 on 𝑦, and estimate 𝑥 at y = 4. 𝒙 1 3 3 4 5 5 𝒚 5 3 2 2 0 1 Solution: 𝒙 𝒚 𝒙𝒚 𝒙 𝟐 𝒚 𝟐 1 5 5 1 25 3 3 9 9 9 3 2 6 9 4 4 2 8 16 4 5 0 0 25 0 5 1 5 25 1 ∑x=21 ∑y=13 ∑xy=33 ∑x2 =85 ∑y2 =43 Regression equation 𝑦 on 𝑥. y a bx= + 𝑏 = 𝑛∑𝑥𝑦−∑𝑥∑𝑦 𝑛∑𝑥2−(∑𝑥)2 𝑏 = 6(33)−(21)(13) 6(85)−(21)2 𝑏 = 198−273 510−441 𝑏 = − 75 69 𝒃 = −𝟏. 𝟎𝟗
  • 5. 𝑎 = ∑𝑦 𝑛 − 𝑏 ( ∑𝑥 𝑛 ) 𝑎 = 13 6 − (−1.09)( 21 6 ) 𝑎 = 2.17 + 3.815 𝑎 = 5.98 Line of Regression 𝑦 = 𝑎 + 𝑏𝑥 𝑦 = 5.98 + (−1.09)𝑥 𝒚 = 𝟓. 𝟗𝟖 − 𝟏. 𝟎𝟗𝒙 When 𝑥 = 2 𝑦̂ = 5.98 − 1.09(2) 𝑦̂ = 5.98 − 2.18 𝒚̂ = 𝟑. 𝟖 (ii) Regression equation 𝑥 on 𝑦 𝑥 = 𝑐 + 𝑑𝑦 𝑑 = 𝑛∑𝑥𝑦−∑𝑥∑𝑦 𝑛∑𝑦2−(∑𝑦)2 𝑑 = (6)(33)−(21)(13) (6)(43)−(13)2 𝑑 = 198−273 258−169 𝑑 = − 75 89
  • 6. 𝒅 = −𝟎. 𝟖𝟒 𝑐 = ∑𝑥 𝑛 − 𝑑( ∑𝑦 𝑛 ) 𝑐 = 21 6 − (−0.84)( 13 6 ) 𝑐 = 3.5 + 0.84(2.17) 𝑐 = 3.5 + 1.82 𝒄 = 𝟓. 𝟑𝟐 𝑥 = 𝑐 + 𝑑𝑦 𝑥 = 5.32 + (−0.84)𝑦 𝒙 = 𝟓. 𝟑𝟐 − 𝟎. 𝟖𝟒𝒚 When 𝑦 = 4 𝑥̂ = 5.32 − 0.84(4) 𝑥̂ = 5.32 − 3.36 𝒙̂ = 𝟏. 𝟗𝟔
  • 7. Example-2: The heights and weights of six men are given below. Height(𝑚𝑒𝑡𝑒𝑟𝑠) 2.00 1.80 1.85 1.72 1.75 1.79 Weight(𝑘𝑔𝑠) 85.0 78.0 80.0 74.0 75.0 76.0 i) Determine both the lines of regression. ii) Estimate weight when height is1.70 𝑚𝑒𝑡𝑒𝑟𝑠. iii) Estimate height when weight is70.0 𝑘𝑔. Solution: Height (𝒎𝒆𝒕𝒆𝒓𝒔) 𝒙 Weight (𝒌𝒈𝒔) 𝒚 𝒙𝒚 𝒙 𝟐 𝒚 𝟐 2.00 85.0 170.00 4.0000 7225 1.80 78.0 140.40 3.2400 6084 1.85 80.0 148.00 3.4225 6400 1.72 74.0 127.28 2.9584 5476 1.75 75.0 131.25 3.0625 5625 1.79 76.0 136.04 3.2041 5776 ∑x=10.91 ∑y=468 ∑xy=852.97 ∑x2 =19.8875 ∑y2 =36586 i) Regression line 𝑦 on 𝑥 𝑦 = 𝑎 + 𝑏𝑥 𝑏 = 𝑛∑𝑥𝑦−∑𝑥∑𝑦 𝑛∑𝑥2−(∑𝑥)2 𝑏 = 6(852.97)−(10.91)(468) 6(19.8875)−(10.91)2 𝑏 = 5117.82−5105.88 119.325−119.0281 𝑏 = 11.94 0.2969 𝒃 = 𝟒𝟎. 𝟐𝟐 𝑎 = ∑𝑦 𝑛 − 𝑏( ∑𝑥 𝑛 )
  • 8. 𝑎 = 468 6 − (40.22) ( 10.91 6 ) 𝑎 = 78 − (40.22)(1.82) 𝑎 = 78 − 73.20 𝒂 = 𝟒. 𝟖 𝑦 = 𝑎 + 𝑏𝑥 𝑦 = 4.8 + 40.22𝑥 Regression line 𝑥 on 𝑦 𝑥 = 𝑐 + 𝑑𝑦 𝑑 = 𝑛∑𝑥𝑦−∑𝑥∑𝑦 𝑛∑𝑦2−(∑𝑦)2 𝑑 = 6(852.97)−(10.9)(468) 6(36586)−(468)2 𝑑 = 11.94 492 𝒅 = 𝟎. 𝟎𝟐𝟒 𝑐 = ∑𝑥 𝑛 − 𝑑 ( ∑𝑦 𝑛 ) 𝑐 = 10.91 6 − (0.024) ( 468 6 ) 𝑐 = 1.82 − (0.024)(78) 𝑐 = 1.82 − 1.872 𝒄 = −𝟎. 𝟎𝟓𝟐
  • 9. 𝑥 = 𝑐 + 𝑑𝑦 𝒙 = −𝟎. 𝟎𝟓𝟐 + 𝟎. 𝟎𝟐𝟒𝒚 ii) Estimate weight when height is 𝑥 = 1.70 meters 𝑦̂ = 4.8 + 40.22(1.70) 𝑦̂ = 4.8 + 68.374 𝒚̂ = 𝟕𝟑 𝒌𝒈 The estimated value of weight is 73𝑘𝑔 when height is1.7 𝑚𝑒𝑡𝑒𝑟𝑠. Now estimate height when weight is 𝑦 = 70.0 𝑘𝑔 𝑥̂ = −0.052 + 0.024(7.00) 𝑥̂ = −0.052 + 1.68 𝒙̂ = 𝟏. 𝟔𝟑 𝒎𝒆𝒕𝒆𝒓𝒔 The estimated value of height is 1.63 𝑚𝑒𝑡𝑒𝑟𝑠 when weight is70 𝑘𝑔.