Lect02 Regression Analysis
Lect02 Regression Analysis
Lecture 2.
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
2 Regression and Nonlinear Axes
C(t) = e t
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
2
2 Regression and Nonlinear Axes
Linear Regression
y = mx + b
where
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
3
2 Regression and Nonlinear Axes
10 20.0
30 52.1
50 84.6
70 118.3
90 151.0
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
4
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
5
2 Regression and Nonlinear Axes
Δy Sxy - Sx Sy
slope : m= =
Δx Sxx - Sx 2
SxxSy - SxySx
intercept : b= 2
Sxx - Sx
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
6
2 Regression and Nonlinear Axes
1 n
S x (average of x values) = xi
n i 1
1 n
S y (average of y values) = y i
n i 1
2 1 n 2
S xx (average of x values) = xi
n i 1
1 n
S xy (average of xy values) = xi y i
n i 1
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
7
2 Regression and Nonlinear Axes
1
Sx = 10 30 50 70 90 = 50
5
1
Sy = 20.0 52.1 84.6 118.3 151.0 85.2
5
1 2
S xx =
5
10 302 502 702 902 = 3300
1 10 20 30 52.1 50 84.6
S xy = 5572.8
5 70 118.3 90 151.0
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
8
2 Regression and Nonlinear Axes
5572.8 - 50 85.2
m 2
= 1.641
3300 - 50
b
3300 85.2 - 5572.8 50
3.15
2
3300 - 50
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
9
2 Regression and Nonlinear Axes
y = 1.641x + 3.15
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
10
2 Regression and Nonlinear Axes
1. x = 2.5
(x is between the range of data points: interpolation)
2. x = 5.0
(x is outside the range of data points: extrapolation)
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
11
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
12
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
13
2 Regression and Nonlinear Axes
y - y 1 y 2 - y1
=
x - x1 x 2 - x1
Rearranging the equation,
x - x1
y = y1 + y 2 - y1
x 2 - x1
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
14
2 Regression and Nonlinear Axes
x 1 2 3
y 1 4 8
1.3 - 1
y=1+ 4 - 1 = 1.9
2- 1
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
15
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
16
2 Regression and Nonlinear Axes
M = aT1/2 + b
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
17
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
18
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
19
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
20
2 Regression and Nonlinear Axes
X (T1/2) Y (M) X2 XY
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
21
2 Regression and Nonlinear Axes
(164.05) - (5.726)(25.275)
slope : a= 2
4.100
(37.50) - 5.726
(37.50)(25.275) - (164.05)(5.726)
intercept : b= 2
1.798
(37.50) - 5.726
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
22
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
23
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
24
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
25
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
26
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
27
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
28
2 Regression and Nonlinear Axes
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
29
2 Regression and Nonlinear Axes
y = aebx
2. If y versus x data appear linear on a log plot, then ln(y)
versus ln(x) would be linear on a rectangular plot, and
the data can therefore be correlated by a power
function:
y = axb
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
30
2 Regression and Nonlinear Axes
F = atb
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
31
2 Regression and Nonlinear Axes
Determine a and b:
To determine a:
SLIDE
Prof. Manolito E Bambase Jr. Department of Chemical Engineering. University of the Philippines Los Baños
32