跳到主內容

線性迴歸計算機

數學計算機

最小平方擬合,生成散佈圖與r²決定係數

答案速覽

Linear Regression Calculator: Least squares fit, scatter plot, r². Linear Regression Calculator uses standard math formulas to compute accurate results instantly.

Parsed 6 points (need ≥2)

最小二乘迴歸線

y = 53.533 + 3.543x

r = 0.9985(極強相關)· R² = 0.9969

斜率 b3.5429
截距 a53.5333
r0.9985
R²0.9969

散點與迴歸線

預測:給定 x 求 y

ŷ

78.333

最小二乘過程

  1. 1n = 6;Σx = 42.00;Σy = 470.00
  2. 2Σxy = 3538.00;Σx² = 364.00
  3. 3b = (n·Σxy − Σx·Σy) ÷ (n·Σx² − (Σx)²) = 3.5429
  4. 4a = (Σy − b·Σx) ÷ n = 53.5333
  5. 5R² = 0.9969 — the line explains 99.7% of variance

💡 最小平方法最小化殘差平方和 Σ(y − ŷ)²。R² 接近 1 擬合好,接近 0 說明線性關係不成立。相關 ≠ 因果——r 高只說明同向變化。外推預測(超出數據範圍的 x)不可靠。

這個工具對你有幫助嗎?

怎麼用

  1. Enter values or expressions: type directly into the Linear Regression Calculator — keyboard friendly.
  2. Instant results: everything computes live as you type, no button needed.
  3. Follow the steps: the result panel shows full working and formula substitution.
  4. Copy or recompute: one-click copy; change any input to recalculate instantly.

核心要點

  • Linear Regression Calculator is a free online math tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Least squares fit, scatter plot, r².
  • Results come with formulas and reference tables so you can verify every number.

原理與公式

Linear Regression Calculator formula

Linear Regression Calculator uses standard math formulas to compute accurate results instantly.

常見問題

How do I use the Linear Regression Calculator?
Open the page and fill in the input fields — results update automatically. Least squares fit, scatter plot, r².
Are the results accurate?
Yes. All calculations use standard mathematical formulas and are verified for accuracy.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required — just open and use.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. All calculations run locally in your browser. Nothing is uploaded or stored.

相關工具

相關指南

來源與更新

Standard mathematical formulas. All logic verified. Last updated: 2025-07

最近更新:

本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。

內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.

引用本頁: YiJianSuan. 線性迴歸計算機[EB/OL]. https://www.yijiansuan.com/zh-TW/c/math/linear-regression

本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。