Professional Documents
Culture Documents
𝑛 𝑛 𝑛
𝑥𝑖2 𝑦𝑖2 𝑥𝑖 𝑦𝑖
𝑖=1 𝑖=1 𝑖
𝑛 𝑛
2
σ𝑛1 𝑥𝑖 2 σ𝑛𝑖 𝑥𝑖 σ𝑛𝑖 𝑦𝑖
𝑆𝑥𝑥 = 𝑥𝑖 − 𝑆𝑥𝑦 = 𝑥𝑖 𝑦𝑖 −
𝑛 𝑛
𝑖=1 𝑖=1
𝑆𝑥𝑦
𝛽መ1 = 𝛽መ0 = 𝑦-
ത 𝛽መ1 𝑥ҧ
𝑆𝑥𝑥
𝑦ො = 𝛽መ0 + 𝛽መ1 𝑥
A chemical engineer is investigating the effect of process
operating temperature on product yield. The study results
the following data:
Temp Yield
x2 y2 xy
(xi) (yi)
100 45 1002 452 4500
110 51
120 54
130 61
140 66
150 70
160 74
170 78
180 85
190 89
sum 1450 673 218500 47,225 101570
σ𝑛𝑖 𝑥𝑖 1450 σ𝑛𝑖 𝑦𝑖 673
𝑋ത = = 145 𝑌ത = = = 67.3
𝑛 10 𝑛 10
𝑛
σ𝑛1 𝑥𝑖 2 14502
𝑆𝑥𝑥 = 𝑥𝑖2 − = 2,18,000 − = 8250
𝑛 10
𝑖=1
𝑛
σ𝑛𝑖 𝑥𝑖 σ𝑛𝑖 𝑦𝑖 1450 673
𝑆𝑥𝑦 = 𝑥𝑖 𝑦𝑖 − = 101570 − = 3985
𝑛 10
𝑖=1
𝑆𝑥𝑦 3985
𝛽መ1 = = = 0.48 𝛽መ0 = 𝑦-
ത 𝛽መ1 𝑥ҧ = 67.3 − 0.48 145 = −2.74
𝑆𝑥𝑥 8250
𝑆𝑆𝐸
𝑀𝑆𝐸 =
𝑛−2
The second hypothesis relates to the significance of
regression
H0 : 1= 0 (no linear relationship between x and y)
H1 : 1 0
Failing to reject H0 which is equivalent to conclude that
there is no linear relationship between x and y.
Significance of linear regression model can be done by
ANOVA partitioning variability by regression line and
residual variation
2 2 2
𝑆𝑦𝑦 = σ 𝑦𝑖 − 𝑦ത = σ 𝑦ො𝑖 − 𝑦ത − σ 𝑦𝑖 − 𝑦ො𝑖 = 𝑆𝑆𝑅 + 𝑆𝑆𝐸
It is like one-way ANOVA keeping SST as Syy and SSA as
SSR, regression sum of squares (like between the
samples)
Regression has two parameters and hence the dof
becomes, (2-1=1)
Therefore, as per ANOVA procedure SSE = Syy-SSR
H0 : 1= 0
H1 : 1 0
𝑛
𝑆𝑆𝑅 = 𝛽መ1 𝑆𝑥𝑦 𝑆𝑥𝑦 σ𝑛𝑖 𝑥𝑖 σ𝑛𝑖 𝑦𝑖
መ
𝛽1 = 𝑆𝑥𝑦 = 𝑥𝑖 𝑦𝑖 −
𝑆𝑥𝑥 𝑛
𝑖=1
𝑛 𝑛 𝑛 2
σ𝑛1 𝑥𝑖 2 2
σ1 𝑦𝑖
𝑆𝑥𝑥 = 𝑥𝑖2 − 𝑆𝑦𝑦 = 𝑦𝑖 −
𝑛 𝑛
𝑖=1 𝑖=1
14
Estimation of model parameters requires the errors or
residuals to follow NID (0,σ2)
Generate error or residuals
Apply goodness of fit test for normal distribution for
mean 0 and S2 = σ2
Goodness of fit of a regression model
H0: the model adequately fits the data
H1: the model does not fit the data
Partitions the error or residuals into: Pure error(PE)
within the replicates and lack-of-fit (LOF)
The situation is similar to one-way ANOVA
SSE is similar to SST
SSPE is similar to within samples with dof of m(n-1)
SSLOF is similar to between the samples
SSE = SSPE + SSLOF
A case
ANOVA Summary
Source of
Sum of squares dof MS F0
variation
LOF SSLOF= m-2 MSR F0 = MSR/MSE
𝑚 𝑛
17