Unit 2, least squares regression第 2 单元,最小二乘回归
Least squares regression: outliers, leverage, and influence最小二乘回归:离群点、杠杆点与影响点
A teacher records weekly practice hours (x) and the quiz score out of 120 (y) for 11 students. Add a 12th student anywhere on the plot and watch the least squares line, r, r squared, slope, intercept and s respond. The dashed line is the fit without the extra point.老师记录了 11 名学生每周练习小时数 (x) 与测验成绩 (y,满分 120)。在图上任意位置加入第 12 名学生,观察最小二乘直线、r、r 的平方、斜率、截距和 s 如何变化。虚线是不含额外点的拟合。
Place the extra point放置额外点
Click or tap the plot to place the point. Or focus the plot with Tab and use the arrow keys (0.5 hours or 2 points per press; hold Shift for 2 hours or 10 points). The number boxes and plus and minus buttons work too.点击或轻触图形即可放置该点。也可用 Tab 聚焦图形后按方向键移动(每次 0.5 小时或 2 分;按住 Shift 为 2 小时或 10 分)。数字框和加减按钮同样可用。
Results结果
- The 11 original students原有的 11 名学生
- Extra point (diamond)额外点(菱形)
- Least squares line with the extra point含额外点的最小二乘直线
- Least squares line without the extra point不含额外点的最小二乘直线
| Quantity量 | With extra point含额外点 | Without it不含额外点 | Change变化 |
|---|
Outlier, leverage, or influence?离群点、杠杆点还是影响点?
| Quantity量 | Value数值 | Rule of thumb经验判断 |
|---|
The original data原始数据
| Student学生 | Hours (x)小时数 (x) | Score (y)成绩 (y) |
|---|
Synthetic teaching data; no network needed. Lines are least squares lines computed exactly in the browser.合成教学数据,无需联网。直线为在浏览器中精确计算的最小二乘直线。