Professional Documents
Culture Documents
Chapter 4 Regression
Chapter 4 Regression
REGRESSION
technique concerned with predicting some
variables by knowing others
REGRESSION
tells you how values in y change as a
function of changes in values of x
REGRESSION
for prediction
REGRESSION
Line of Best Fit
Line of Best Fit
REGRESSION
Line of Best Fit
𝑦 = 𝑚𝑥 + 𝑏
Step 1
Construct a work table
according to the elements needed for the formula
Slope (m)
𝑛 σ 𝑥𝑦−σ 𝑥 σ 𝑦
𝑚= 2
𝑛 σ 𝑥 −(σ 𝑥)2
Step 2 Calculate Slope m
slope
𝑛 σ 𝑥𝑦−σ 𝑥 σ 𝑦
𝑚= 2
𝑛 σ 𝑥 −(σ 𝑥)2
Step 3 Calculate intercept b
intercept
𝑏 = 𝑦ത − 𝑚𝑥ҧ
Where:
𝑏 = y-intercept
𝑚 = slope
𝑦ത = mean of y values
𝑥ҧ = mean of x values
Step 4 Assemble the equation of the line
Where: 𝑦 = 𝑚𝑥 + 𝑏
𝑏 = y-intercept
𝑚 = slope
The following table shows the percent of water and the number of
calories in various canned soups to which 100g of water are added.
% Water (x) Calories (y) a)Find the equation of the
93.2 28 regression line for the data.
92.3 26 Round constants to the nearest
hundredth.
91.9 39
b)Use the equation to find the
89.5 56 expected number of calories in a
89.6 56 soup that is 89% water. Round to
90.5 36 the nearest whole number.
91.9 32
91.7 32
Step 1 Construct a work table
Canned Soups % Water (x) Calories (y) xy 𝑥2
A 93.2 28
B 92.3 26
C 91.9 39
D 89.5 56
E 89.6 56
F 90.5 36
G 91.9 32
H 91.7 32
σ 𝑥= σ 𝑦= σ 𝑥𝑦= σ 𝑥2 =
Step 1 Construct a work table
Canned Soups % Water (x) Calories (y) xy 𝑥2
𝑦 = 𝑚𝑥 + 𝑏
𝑦 = −7.98x + 766.94
(equation of the regression line)
Where:
𝑏 = y-intercept = -7.98 (89) + 766.94
𝑚 = slope = 56.72
Therefore , the expected number ≈ 57
of calories in a soup that is 89%
water is 57.
EXAMPLE 2 Student Mathematics(x) Physics (y)
A 65 68
The scores of 12 B 63 66
college students in C 67 68
Mathematics and D 64 65
Physics test of 80 E 68 69
slope
𝑛 σ 𝑥𝑦−σ 𝑥 σ 𝑦
𝑚= 2
𝑛 σ 𝑥 −(σ 𝑥)2
Step 2 Calculate Slope m
𝑛 σ 𝑥𝑦−σ 𝑥 σ 𝑦
𝑚 = 𝑛 σ 𝑥 2 −(σ 𝑥)2
12 54 107 −(800)(811)
=
12 53 418 − (800)2
649 284−648 800
=
641 016−640 000
484
=
1 016
m = 0. 48
Step 3 Calculate intercept b
intercept
𝑏 = 𝑦ത − 𝑚𝑥ҧ
Where:
𝑏 = y-intercept
𝑚 = slope
𝑦ത = mean of y values
𝑥ҧ = mean of x values
Step 3 Calculate intercept b
Where:
𝑏 = y-intercept
𝑚 = slope
𝑦ത = mean of y values
𝑥ҧ = mean of x values 𝑏 = 𝑦ത − 𝑚𝑥ҧ
σ 𝑦 811
𝑦ത = = = 67.58 = 67.58 – (0.48)(66.67)
𝑛 12
=67.58– (32)
σ 𝑥 800
𝑥ҧ = 𝑛 12
= = 66.67 = 35.58
Step 4 Assemble the equation of the line
𝑦 = 𝑚𝑥 + 𝑏
𝑦 = 0.48x + 35.58
(equation of the regression line)
Where:
𝑏 = y-intercept = 0.48 (75) + 35.58
𝑚 = slope
= 71.58
≈ 72 in Physics is 71.58 or
Therefore , the estimated score