Sei sulla pagina 1di 22

1

2
1.1 Regression and Model Building
Regression analysis is a statistical
technique for investigating and modeling
the relationship between variables.
Equation of a straight line (classical)
y = mx +b
In statistics, we usually write this as
y =
0
+
1
x
3
1.1 Regression and Model Building
Not all observations will fall exactly on a
straight line.
y =
0
+
1
x +
where represents error
- it is a random variable that accounts for the
failure of the model to fit the data exactly.
- We assume ~ N(0,
2
)
4
1.1 Regression and Model Building
Delivery time example
5
1.1 Regression and Model Building
Simple Linear Regression Model
where y dependent (response) variable
x independent (regressor/predictor) variable

0
- intercept

1
- slope
- random error term
6
7
1.1 Regression and Model Building
The mean response at any value, x, of the
regressor variable is
The variance of y at any given x is
8
9
Figure 1.3 Linear regression approximation of a
complex relationship.
10
Figure 1.4 Piecewise linear approximation of a
complex relationship.
11
Figure 1.5 The danger of extrapolation in regression.
12
1.1 Regression and Model Building
Multiple Linear Regression Model
13
1.2 Data Collection
Your analysis/model is only as good as the
data
Three different methods can be used for
data collection
1. A retrospective study based on historical data
2. An observational study
3. A designed experiment
14
1.2 Data Collection
15
16
17
18
19
Designed Experiment
20
1.3 Uses of Regression
1. Data description
2. Parameter estimation
3. Prediction and estimation
4. Control
There are many uses of regression, including:
Regression analysis is perhaps the most
widely used statistical technique, and
probably the most widely misused.
21
Cause and Effect Relationships
Caution: just because you can fit a linear
model to a set of data, does not mean you
should.
It is relatively easy to build nonsense
relationships between variables
Regression does not necessarily imply
causality
1.3 Uses of Regression
22
Model building in regression

Potrebbero piacerti anche