• Ei tuloksia

Matti HotokkaPhysical chemistryÅbo Akademi University Chemometrics

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Matti HotokkaPhysical chemistryÅbo Akademi University Chemometrics"

Copied!
40
0
0

Kokoteksti

(1)

Chemometrics

Matti Hotokka Physical chemistry Åbo Akademi University

(2)

. The mean can be understood as the value ì which gives least deviations.

Linear regression

Mean

x1

ì = E(x)

x2

x

(3)

. The mean can be understood as the value ì which gives least deviations.

Linear regression

Mean

x1

ì = E(x)

x2

x

(4)

Linear regression

Some math: mean

(5)

Linear regression

Linear regression

x y

ycalc(x) = a + bx

y1 - ycalc

y2 - ycalc

(6)

Linear regression

Linear regression

x y

ycalc(x) = a + bx

y1 - ycalc

y2 - ycalc

(7)

Linear regression

Formulas

(8)

Linear regression

Formulas

(9)

Linear regression

Formulas

(10)

Linear regression

Formulas

(11)

Linear regression

Formulas

(12)

. Homogenous variance:The distribution of y is the same for each x.

Linear regression

Assumptions

x y

P(x|y)

x1 x2 x3

ó

(13)

. The population behaves linearily: The true regression obeys the rule á+âx

Linear regression

Assumptions

x y

P(x|y)

x1 x2 x3

á+âx (true)

a+bx (estimate)

(14)

. The random variables y1, y2, y3, ... are statistically independent.

Linear regression

Assumptions

(15)

. The residual variance is

Linear regression

Quality: the basic quantity

(16)

. The estimated standard error of the slope is

Linear regression

Goodness of the slope

. Confidence interval (95 %)

(17)

Small range of x gives poor b because Gx2 is small.

Linear regression

How to improve a?

A large range gives smaller SE.

(18)

Linear regression

How good is ycalc?

ycalc = a + b@x0

ì0 = true estimate = á + âx0

x0

(19)

Linear regression

How good is ycalc?

ycalc = a + b@x0

ì0 = true estimate = á + âx0

x0

(20)

Linear regression

How good is ycalc?

ì0 = true estimate = á + âx0 ycalc = a + b@x0

x0

y0 = true value in population

(21)

Confidence intervals for ì0 and y0.

Linear regression

How good is the regression

ì0 y0

(22)
(23)

Slope of regression

Correlation

Regression vs correlation

Correlation

Relation

(24)

Correlation

Different cases

r = -1.0 r = -0.8

r = 0.0

r = 0.6 r = 1.0

r = 0.0

(25)

Correlation

Explained SSQ

Total SSQ

(26)

Correlation

Explained SSQ

Total SSQ

Explained SSQ

(27)

Correlation

Explained SSQ

Total SSQ

Explained SSQ

Unexplained SSQ

(28)

Correlation

Coefficient of determination

(29)
(30)

Multivariate regression

Why?

y

x

(31)

A second regressor explains the spread.

Multivariate regression

Why?

y

x1 x2=3

x2=2 x2=1

(32)

Multiple regression considers all regressors.

Multivariate regression

What?

x1

x2 y

(33)

Multivariate regression

Indirect effects

x1=Conc

y=Absorbance

x2=pH

a1= 0.059

a2= -0.16 a= -0.032

Total effect = 0.059 + 0.005 = 0.064

(34)

Multivariate regression

Indirect effects

x1=Conc

y=Absorbance

x2=pH

a1= 0.059

a2= -0.16 a= -0.032

Total effect = 0.059 + 0.005 = 0.064

Linear regression: y = a x1 + b: a = 0.064 Gives the total effect!

(35)

Change notations for simplicity

Multivariate regression

Math

Similarly

(36)

A linear system of equations for the unknowns a, b and c can be written in matrix form as

Multivariate regression

Math

The unity is included to show clearly the structure of the equation.

(37)
(38)

Rename variables

Nonlinear regression

Make it linear

Take logarithm

(39)

Methods still exist. Just minimize the spread.

Nonlinear regression

If you cannot make it linear

However, the system of equations is not linear anymore. Therefore an iterative process is needed to solve it.

(40)

Viittaukset

LIITTYVÄT TIEDOSTOT

• Requested books from stacks and reserved books must be picked up within a week, course books within 3 days after e- mail notice.. You’ll find these books on a self-service shelf

• Requested books from stacks and reserved books must be picked up within a week, course books within 3 days after e- mail notice.. You’ll find these books on a

• In order to avoid any late fees you will need to return these books or bring them to the library for re-lending before the due date. • Lost books should either be replaced by a

• Requested and reserved books must be picked up within a week, course books within 3 days. • You’ll find these books on a self-service shelf under

[r]

Information about studies and course scheduling Biosciences (e.g. Biochemistry, Biology, Physical Chemistry), Chemical

David Davage (Umeå University) MT Topias Tanskanen (Åbo Akademi University): The Use of Isaiah in the Book of Jubilees Dr. Juho Sankamo (Åbo Akademi University): The Temple

Main funding: Academy of Finland; Åbo Akademi University Process Chemistry Centre; Åbo Akademi Foundation; Graduate School of Chemical Sensors and Microanalytical