← Back to Study Guide← 返回学习指南

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放置额外点

Examples示例

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结果

Least squares results with and without the extra point (text version of the chart).含与不含额外点的最小二乘结果(图表的文字版)。
Quantity量With extra point含额外点Without it不含额外点Change变化

Outlier, leverage, or influence?离群点、杠杆点还是影响点?

Three checks for the extra point.对额外点的三项检查。
Quantity量Value数值Rule of thumb经验判断

The original data原始数据

Practice hours per week and quiz score for 11 students.11 名学生的每周练习小时数与测验成绩。
Student学生Hours (x)小时数 (x)Score (y)成绩 (y)

Synthetic teaching data; no network needed. Lines are least squares lines computed exactly in the browser.合成教学数据,无需联网。直线为在浏览器中精确计算的最小二乘直线。