最小平方法求回归系数
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版 | |||
最小平方法求回归系数 [2023/04/08 03:44] – zhangruihao | 最小平方法求回归系数 [2024/04/12 04:44] (当前版本) – 2104龚文滕 | ||
---|---|---|---|
行 10: | 行 10: | ||
*矩阵形式:b = (X’X)^-1 X’y | *矩阵形式:b = (X’X)^-1 X’y | ||
+ | ---- | ||
+ | ***Best fit line**:The goal is to minimize the error, which means that this line is closest to all data points. | ||
+ | *The regression line is used to predict the value of Y using the formula (linear equation) given X, a, and b. | ||
+ | ***Least squares method**:First, | ||
+ | | ||
+ | ***Ordinary least squares, OLS** | ||
+ | {{: | ||
+ | *SP is the product sum of deviations, SSx is the sum of squared errors of X, Sy and Sx are the standard deviations of Y and X, respectively | ||
+ | *Matrix form:b = (X’X)^-1 X’y |
最小平方法求回归系数.1680925487.txt.gz · 最后更改: 2023/04/08 03:44 由 zhangruihao