Previous: 1.2 Starting with an
Up: 1. Asserting
Next: 1.4 Effects of a
  Contents
Subsections
Definition 1.3.1
A linear equation is an equation whose set of solutions is stable
by linear combinations (i.e. form a vector space).
Example 1.3.2
Equation

is linear. Indeed, the set of its solutions is

i.e. a vector line.
Definition 1.3.3
An affine equation is an equation whose set of solutions is stable
by barycentric combinations (i.e. form a barycentric space).
Example 1.3.4
Equation

is affine. Indeed, the set of its solutions is

i.e. an affine line. It can be checked that

and

implies

.
Remark 1.3.5
Speaking about "equations without right hand member"
is exactly as stupid as speaking about equations without an equal
sign.
Scilab 1.3.6
Command a = b is used to encode an assignment (expression
b is evaluated and the result is put into a box named a).
On the other hand, command a == b is used to encode a test
(like a<b or a~=b). Scilab not an
algebraic computing tool and there is no way to encode an equation
as an object by itself.
Maple 1.3.7
Command
a := b is used to encode an assignment, command
a=b
is used to encode a substitution (
subs, changevar, etc.)
while the proper way to encode an equation

is
eq:= b-a.
Proposition 1.3.8
An affine system of equations like :
may be written using matrices, i.e. :
Requiring existence and unicity for solution
is equivalent to
requiring inversibility for matrix
(Cramer's rule).
Remark 1.3.9
The unusual notation

for the unknown vector comes from the fact
that, later, an unknown function will be described as an unknown linear
form

.
Scilab 1.3.10
Scilab makes no distinction between vectors and matrices : anything
is a matrix and

when

. Nevertheless any
matrix can be accessed as the column of its column vectors. Thus
mm=[11,12,13;21,22,23],
[li,co]=size(mm) leads to :
Exercise 1.3.11
Give the formulas relating

such that
mm(j,k)
and
mm(i) describe the same element of matrix
mm.
Maple 1.3.12
In this lecture, the "new release" matrices are
used :
With (LinearAlgebra);
Ma:= Matrix([[3.2] [2.1]]); mf:= Vector([y, z]); ...
Mf = (1/ma).Mb;
Definition 1.3.13
An overdetermined system is a system where there are more equations
than unknowns.
Remark 1.3.14
In such a case, it can be expected that equation

has
no solution. When the system is obtained by a set of experimental
measurements, it is essential to take into account the uncertainties
and the semantics of the problem turns into obtaining the best fit
for

.
Example 1.3.15
System

has no solutions : the first two
equations imply

and

and a substitution into the last
equation will lead to

. Most of the time, however, an "exact
equality" is not what is required, but only a rough one.
What is wanted is :
Definition 1.3.16
The least squares method replaces

by
where "square" is the Pythagorean one, i.e. the
sum of squares of the coordinates.
Scilab 1.3.17
The sum of squares of a column vector V is achieved by a scalar product,
a line by a column. In other words :
deff('c=Pythagoras(a)', 'c= a''*a')
Maple 1.3.18
In the same vein, the Maple sum of squares is :
Pythagoras: = v -> Transpose (v). v;
Theorem 1.3.19 (Least Squares)
The least squares equation
related to
is :
whose solution is :
 |
(1.1) |
Proof.
The goal is to find

that minimizes the Pythagorean square of
column

. We set :
Expanding and using the fact that scalar

equals its transpose, we obtain :
The last quantity should be positive for all

and therefore
shouldn't change its sign when replacing

by

.
For quite-vanishing values of

, this implies that

has to be orthogonal to all directions. But only the null vector can
do that.
Remark 1.3.20
For a simply determined system, equation

implies obviously

. The meaning of the former
theorem is different : it translates the approximation (

)
into an equation.
Definition 1.3.21
The minimal value of

is called the residual variance and
is denoted as

. It is the average value of the square
discrepancy between the actually measured values and the values predicted
by the model for the same tests. Calling

the variance of
the experimental values, the experimental variance reduction factor
is defined as the quotient :
Proposition 1.3.22
For any system, the following relation holds :
Example 1.3.23
Here, matrix

is a

invertible matrix
and :
The target value (temperature) varies between
and
,
with standard deviation
(
).
The differences between the experimental values and the values recalculated
from the model are ranging from
to
with standard deviation
(
). The
reaches therefore the interesting value of
, i.e.
roughly dividing the amplitude of the target by factor
.
The thickness of the model can also be seen on FIG. 1.3
which plots discrepancies versus experimental values.
FIG. 1.3:
Remaining discrepancies.
|
|
Scilab 1.3.24
F
IG. 1.3 has been drawn using command
draw_residus, L
ISTING ![[*]](/~douillet/gifs/crossref.gif)
.
Proposition 1.3.25
For a least square model, the best fit hyperplane ever goes through
the average point, so that the average discrepancy ever vanishes.
Scilab 1.3.26
Command size gives the sizes of a two-dimensional matrix.
Modifiers 'c', 'r' and '*' can be used to obtain the number of columns,
the number of lines or the total number of elements of the array.
Therefore, the variance of a centered vector V (i.e. a zero mean vector)
is obtained by V'*V/size(V,'*')
Scilab 1.3.27
The Scilab command
variance doesn't give the variance, but
the best estimation of the overall variance (aka the variance of the
whole population

) based on what has been recorded for the
given sample.
Remark 1.3.28
The least squares method is sensitive to "outliers"
where experiment gives a result significantly deviating from the model.
It is worth repeating this experiment in order to either eliminate
an experimental error, or confirm a strongly significant result.
Remark 1.3.29
It should be kept in mind that the semantic of the undertaken computations
is not to minimize the discrepancy over

but over

.
Therefore, it is useless to arrange a model so that it exactly goes
through all the experimental points. Proceeding that way leads almost
always to a highly unstable (oscillating) model, that will provide
meaningless values over the interesting places, i.e. over

.
Definition 1.3.30
The expected

is the ratio of our best estimates

and

of quantities

and

that should
occur when dealing with "all" the replications of
the given
DOE.
Proposition 1.3.31
If discrepancies
are random and identically distributed,
this quotient can be estimated by :
Where
are the dimensions of matrix
(number of tests
and number of coefficients).
Remark 1.3.32
The expectation of a quotient is not the quotient of expectations,
and the above formula can lead to values below

for the estimated

. What nevertheless remains is the following fact : if we use
all the

elements of a sample to obtain a model with

parameters,
this model is only modeling the error term and its predictive value
concerning all the other members of the population is nothing but
zero.
Previous: 1.2 Starting with an
Up: 1. Asserting
Next: 1.4 Effects of a
  Contents
douillet@ensait.fr
2008-03-14