Calculadora de regressão linear
Ajusta dados emparelhados e mostra resíduos e correlação.
Como usar Calculadora de regressão linear
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.
- Cole a fonte no editor de entrada ou carregue o exemplo integrado.
- Verifique o formato de origem antes de executar a operação.
- Execute a calculadora de regressão linear, revise a saída e use os controles disponíveis para copiar ou baixar.
O que esta ferramenta suporta
Ajusta dados emparelhados e mostra resíduos e correlação.
Limites e processamento
Cálculos locais limitados. As entradas numéricas devem ser finitas e estar dentro dos intervalos visíveis. Listas e tabelas têm limites próprios de cada operação. Modelos, estimativas e taxas fornecidas devem ser verificados conforme seu uso pretendido.
Fonte de exemplo
1,2 2,4 3,5 4,8
Perguntas frequentes
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.
Onde minha entrada é processada?
Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.
Quais são os limites de entrada?
Cálculos locais limitados. As entradas numéricas devem ser finitas e estar dentro dos intervalos visíveis. Listas e tabelas têm limites próprios de cada operação. Modelos, estimativas e taxas fornecidas devem ser verificados conforme seu uso pretendido.