Topic 11. Simple Linear Regression
Topic 11. Simple Linear Regression
Any questions?
During the
Lecture
E6-2004
Skype: L2ahmadi
Office Ext. 37160
L2ahmadi @uw...
hour
After the
Lecture
3
Learning Objectives
4
Previous Topic
General Procedure for Hypothesis Tests:
1. From the problem context, identify the
parameter of interest.
2. State the null hypothesis, H0 .
3. Specify an appropriate alternative
hypothesis, H1. +
6
11-1 Empirical Models
• Many problems in engineering and science involve
exploring the relationships between two or more
variables.
• Regression analysis is a statistical technique that is
very useful for these types of problems.
• For example, in a chemical process, suppose that the
yield of the product is related to the process-operating
temperature.
• Regression analysis can be used to build a model to
predict yield at a given temperature level. 7
11-1 Empirical Models
8
11-1 Empirical Models
where the slope and intercept of the line are called regression
coefficients.
The simple linear regression model is given by
10
11-1 Empirical Models
We think of the regression model as an empirical model.
Suppose that the mean and variance of are 0 and 2,
respectively, then
11
11-1 Empirical Models
• The true regression model is a line of mean values:
14
11-2 Simple Linear Regression
Figure 11-3
Deviations of the
data from the
estimated
regression model.
15
11-2 Simple Linear Regression
• The method of least squares is used to
estimate the parameters, 0 and 1 by minimizing
the sum of the squares of the vertical deviations in
Figure 11-3.
Figure 11-3
Deviations of the
data from the
estimated
regression model.
16
11-2 Simple Linear Regression
• Using Equation 11-2, the n observations in the
sample can be expressed as
17
11-2 Simple Linear Regression
18
11-2 Simple Linear Regression
19
11-2 Simple Linear Regression
Definition
20
11-2 Simple Linear Regression
21
11-2 Simple Linear Regression
Notation
22
11-2 Simple Linear Regression
Example 11-1
23
11-2 Simple Linear Regression
Example 11-1
24
11-2 Simple Linear Regression
Example 11-1
26
11-2 Simple Linear Regression
Estimating 2
An unbiased estimator of 2 is
27
11-3 Properties of the Least Squares
Estimators
• Slope Properties
• Intercept Properties
28
11-4 Minitab Output
29
30
STEP I: BUILD THE MODEL
Residual:
31
The Coefficient of Determination:
PART 2
11-5. Hypothesis Tests in Simple Linear
Regression
11-6. Confidence Intervals
11-7. Prediction of New Observations
11-8. Adequacy of the Regression Model (by R2)
32
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.1 Use of t-Tests
Suppose we wish to test
33
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.1 Use of t-Tests
The test statistic could also be written as:
34
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.1 Use of t-Tests
Suppose we wish to test
35
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.1 Use of t-Tests
36
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.1 Use of t-Tests
An important special case of the hypotheses of
Equation 11-18 is
38
11-5 Hypothesis Tests in Simple Linear
Regression
39
11-5 Hypothesis Tests in Simple Linear
Regression
Example 11-2 (Tutorial)
40
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.2 ANalysis Of VAriance Approach to Test
Significance of Regression
Symbolically,
41
11-5 Hypothesis Tests in Simple Linear
Regression
11-5.2 Analysis of Variance Approach to Test
Significance of Regression
43
ANOVA TABLE
44
45
11-5 Hypothesis Tests in Simple Linear
Regression
Example 11-3 (Tutorial)
46
11-5 Hypothesis Tests in Simple Linear
Regression
47
Previous Lecture
- ANOVA Table
48
11-6 Confidence Intervals
Definition
49
11-6 Confidence Intervals
50
11-6 Confidence Intervals
Definition
51
11-6 Confidence Intervals
Example 11-5
52
11-6 Confidence Intervals
Example 11-5
53
11-6 Confidence Intervals
Example 11-5
54
11-6 Confidence Intervals
Example 11-5
Figure 11-7
Scatter diagram of
oxygen purity data
from Example 11-1
with fitted
regression line and
95 percent
confidence limits
on Y|x0.
55
11-7 Prediction of New Observations
56
11-7 Prediction of New Observations
Definition
57
11-7 Prediction of New Observations
Example 11-6
58
11-7 Prediction of New Observations
Example 11-6
59
11-7 Prediction of New Observations
Example 11-6
60
11-8 Adequacy of the Regression Model
62
11-8 Adequacy of the Regression Model
63
11-8 Adequacy of the Regression Model
Example 11-7
64
11-8 Adequacy of the Regression Model
Example 11-7
65
11-8 Adequacy of the Regression Model
Example 11-7
66
11-8 Adequacy of the Regression Model
Example 11-7
67
11-8 Adequacy of the Regression Model
11-8.2 Coefficient of Determination (R2)
• The quantity
69
Concept Map
Next:
Ho
H1 Simple
R2
. CI
r
Multiple
Linear
ANOVA Regression
70