Spesso si raccolgono dati sperimentali e si vuole trovare la retta che li “approssima meglio”. Il metodo dei minimi quadrati dà la risposta ottimale: la retta che minimizza la somma dei quadrati degli errori. Questa sezione ne presenta la definizione, le formule e un esempio numerico completo.
Often experimental data are collected and one wishes to find the line that “best approximates” them. The method of least squares gives the optimal answer: the line that minimises the sum of the squares of the errors. This section presents its definition, the formulae and a complete numerical example.
Spesso si raccolgono dati sperimentali e si vuole trovare la retta che li “approssima meglio”. Il metodo dei minimi quadrati dà la risposta ottimale.
Definizione — Retta di regressione
Data una serie di punti , la retta di regressione (o retta dei minimi quadrati) è la retta che minimizza la somma dei quadrati degli scarti verticali.
Collegamenti
Argomenti: Radicali
Concetti: Minimi quadrati · Regressione lineare
Competenze: Modellizzare
Often experimental data are collected and one wishes to find the line that “best approximates” them. The method of least squares gives the optimal answer.
Definition — Regression line
Given a set of points , the regression line (or least-squares line) is the line that minimises the sum of the squares of the vertical deviations.
Links
Topics: Radicals
Concepts: Least squares · Linear regression
Skills: Modelling
Il coefficiente angolare e l’intercetta della retta di regressione si calcolano direttamente dai dati con le formule seguenti.
Proprietà — Formule dei minimi quadrati
dove e sono le medie.
La retta passa sempre per il punto (baricentro dei dati).
Collegamenti
Argomenti: Radicali
Concetti: Minimi quadrati · Regressione lineare
Competenze: Geometria analitica · Usare formule
The slope and the intercept of the regression line are computed directly from the data with the following formulae.
Property — Least-squares formulae
where and are the means.
The line always passes through the point (centroid of the data).
Links
Topics: Radicals
Concepts: Least squares · Linear regression
Skills: Analytic geometry · Using formulae
Applichiamo le formule dei minimi quadrati a un piccolo insieme di dati.
Esempio
Dati i punti , , , , : Retta: .
Il grafico mostra i dati (in rosso), la retta di regressione (in blu) e il baricentro per cui la retta passa (in verde).
I cinque punti sperimentali, la retta dei minimi quadrati e il baricentro dei dati.
Collegamenti
Argomenti: Radicali
Concetti: Minimi quadrati · Regressione lineare
Competenze: Calcolare · Interpretare grafico · Tracciare grafico
Let us apply the least-squares formulae to a small set of data.
Example
Given the points , , , , : Line: .
The graph shows the data (in red), the regression line (in blue) and the centroid through which the line passes (in green).
The five experimental points, the least-squares line and the centroid of the data.
Links
Topics: Radicals
Concepts: Least squares · Linear regression
Skills: Calculating · Interpreting a graph · Plotting a graph