ToolCabana

Calcolatore regressione lineare

Adatta dati appaiati e mostra residui e correlazione.

Favorites are saved in this browser. Find them in My favorites.

Calcolatore regressione lineare

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Come usare Calcolatore regressione lineare

The Linear regression calculator fits a least-squares line to x,y pairs entered one per line and returns the slope, intercept, Pearson correlation and R². A residual table lists each observed y, the predicted y from the fitted line and the difference between them. At least 3 pairs are required, and up to 500 lines are accepted.

  1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
  2. Controlla il formato di origine prima di eseguire l'operazione.
  3. Esegui Calcolatore regressione lineare, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

Cosa supporta questo strumento

Adatta dati appaiati e mostra residui e correlazione.

Limiti ed elaborazione

Calcoli locali con limiti definiti. Gli input numerici devono essere finiti e rientrare negli intervalli visibili. Elenchi e tabelle hanno limiti specifici per operazione. Modelli, stime e tassi forniti devono essere verificati rispetto all'uso previsto.

Origine di esempio
1,2
2,4
3,5
4,8

Domande frequenti

How are the slope and intercept calculated?

The calculator uses ordinary least squares. The slope is the sum of (x − mean x)(y − mean y) divided by the sum of (x − mean x)², and the intercept is mean y − slope × mean x, so the line is y = intercept + slope × x.

What do correlation and R² tell me?

Correlation r ranges from −1 to 1 and shows the direction and strength of the linear relationship. R² is r squared and gives the share of variation in y explained by the line. Both are reported as undefined when every y value is the same.

Why does the regression calculator say x values need variation?

If every x value is identical, the line's slope cannot be determined because the denominator becomes zero. Enter pairs with at least two different x values, and use a comma between x and y on each line.

Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

Quali sono i limiti di input?

Calcoli locali con limiti definiti. Gli input numerici devono essere finiti e rientrare negli intervalli visibili. Elenchi e tabelle hanno limiti specifici per operazione. Modelli, stime e tassi forniti devono essere verificati rispetto all'uso previsto.