Enter paired (x, y) data to fit the best-fit line by least squares and get the slope, intercept and R-squared, for trend prediction and variable-relationship modelling.
由資料擬合最佳直線。
統計指標、置信區間與樣本量的測算。
一元線性迴歸 y=a+b·x:用最小二乘法擬合直線,b 為斜率(x 每增 1 單位 y 的平均變化)、a 為截距。
結果可用於預測與趨勢判斷;應結合相關係數 R² 評估擬合優度,外推需謹慎(超出資料範圍不可靠)。