Skip to Content
数据科学中的实用统计学(第2版)
book

数据科学中的实用统计学(第2版)

by Peter Bruce, Andrew Bruce, Peter Gedeck
October 2021
Intermediate to advanced
289 pages
8h 31m
Chinese
Posts & Telecom Press
Content preview from 数据科学中的实用统计学(第2版)
148
4
显然,在回归中有几个数据点产生了很强的影响。可以使用
cooks.distance
函数计算库克
距离,使用
hatvalues
函数计算帽子值。
x
轴绘制出了帽子值,
y
轴绘制出了残差,数据点
的大小表示出了库克距离。
4-2
比较了全数据集回归和去掉了高影响数据点(库克距离大于
0.08
)的回归。
4-2:全数据回归系数与去掉高影响数据之后的回归系数
原始数据 去掉高影响数据后
截距
–772 550 –647 137
SqFtTotLiving
210 230
SqFtLot
39 33
Bathrooms
2282 –16 132
Bedrooms
–26 320 –22 888
BldgGrade
130 000 114 871
变量
Bathrooms
的系数发生了巨大变化。
7
如果想拟合能可靠地预测未来数据的回归模型,那么只有在小型数据集中,找出强影响观
测才有意义。对于使用了很多记录拟合的回归,不太可能有哪个观测的权重大到对拟合公
式产生极端的影响(虽然回归中还是会有较大的异常值)。不过,如果想进行异常检测,
找出高影响的观测就是非常重要的。
4.6.3
 异方差
非正态与相关误差
统计学家非常关注残差的分布。研究表明,普通最小二乘法(参见
4.1.3
节)是无偏的,
而且在某些情况下,如果有一系列分布假设,它还是“最优”的估计方法。这意味着在多
数问题中,数据科学家不需要过于关心残差的分布。
残差分布主要与正式统计推断(假设检验与
p
值)的有效性相关
,对于主要关心预测精确
度的数据科学家来说,它的重要性微乎其微。正态分布的误差是模型成功完成的一种标志。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115569028