Documente Academic
Documente Profesional
Documente Cultură
Prin aplicarea acestei metode, se realizeaz obinera unor corecii pentru mrimile
msurate direct (care primesc atributul final de mrimi compensate).
Metoda celor mai mici ptrate
f(x) = a x + b
dreapta se alege astfel nct ariile ptratelor rezultate, s fie ct mai mici
Metoda celor mai mici patrate.Exemplu
Care dintre aceste drepte reprezint cel mai corect legea cutat ?
Metoda celor mai mici ptrate rspunde acestei intrebari.
Conform metodei celor mai mici ptrate, panta dreptei i coordonata interseciei sale
cu axa Oy vor fi astfel alese nct:
-suma ptratelor distanelor de la fiecare punct experimental la dreapt s fie
minim sau
- ariile ptratelor rezultate, s fie minime (ptrat cu latura egal cu distana, pe
vertical, de la acesta la dreapta considerat)
Presupunem c:
-parametrii xk ai msurtorii au fost
determinai precis
- valorile lui yk, nu mai sunt stabilite tot
att de precis prin msurare
N N 2
S = S k = ( y k ax k b ) S min
k =1 k =1
S
= 2 a x 2
2 xy + 2b x = 0
a N
S
= 2b 2 y + 2a x = 0
b N
a x 2 xy + b x = 0
b y +a x =0
xy x y
a=
x
2 2
x
y x 2 xy x
b = y a x =
x x
2 2
Dreapta cautata are ecuatia
xy x y y x 2 xy x
y = ax + b = x+
x x x x
2 2 2 2
N N
1 1 1
x = x k = ( x1 + x2 + x3 + ... + xn ) y =
N
y k
N k =1 N k =1
N
1 1 2
x2 =
N
k=
x 2
k =1 N
( x1 + x22 + x32 + ... + xn2 )
N
1 1
xy =
N
k =1
xk yk = ( x1 y1 + x2 y2 + x3 y3 + ... + xn yn )
N
xy x y
y == f (a, b, x) = ax + b a=
x2 x
2
N
1 1 N 1 N N N N
N
xk y k xk y k
N k =1 N k =1
x k y k xk y k
a= k =1
a= k =1 k =1 k =1
1 N 2 1 N N N
k N2
N k =1
x (
k =1
x k ) 2
k k
x 2
k =1
( x ) 2
k =1
N N
1 1
b = y a x b=
N
k =1
yk a
N
x
k =1
k
Calitatea unei drepte de regresie poate fi analizat dup coeficientul de
determinare R2 cu valori n intervalul [0,1] i se calculeaz cu relaia:
f ( xk ) = axk + b
N
[y f ( xk )]
2
k unde
R2 = 1 k =1
[ f ( x ) f ( xk ) ]
N N
1
f ( x) = f (x )
2
k
k =1 N k =1
F(N) 2 4 6 8 10 12 14 16 18
X(m) 0.5 1.8 2 4 4.5 6.5 7.5 11.2 11.5
o Cumprocedam?
N
[
ky f ( x k )]2
f ( xk ) = axk
R = 1
2 k =1
[ f ( x) f ( xk ) ]
N
2
k =1
xy x y
a= b = y a x
y = f (a, b, x) = ax + b x x
2 2
N
N x y
[
ky f ( x k )]2
1 12 15
R2 = 1 k =1
[ f ( x ) f ( xk ) ]
2 14 29 N
2
3 16 21
k =1
4 18 27
f ( xk ) = axk + b
5 20 28
6 22 36
7 24 38
8 26 39
9 28 50
10 30 52
xy x y b = y a x
y = ax + b a=
x x
2 2
N
[
ky f ( x k )]2
R2 = 1 k =1
[ f ( x ) f ( xk ) ]
N
2
k =1
f ( xk ) = axk + b
Tema identic cucazul dreaptei carenu trece prin origine
oMasuram rezisenta unui material(roca,filamentul unui bec,etc)functie detemperatura si
obtinem urmatoarele valori:
T(C) 200 400 600 800 1000 1200 1400 1600 1800
o Caz generaly=ax+b=f(a,b,x)