Skip to Content
面向数据科学家的实用统计学
book

面向数据科学家的实用统计学

by Peter Bruce, Andrew Bruce
October 2018
Beginner to intermediate
238 pages
6h 32m
Chinese
Posts & Telecom Press
Content preview from 面向数据科学家的实用统计学
回归与预测
|
129
BldgGrade Bathrooms
135717.06 -1435.12
Bedrooms
-9191.94
这里 SqFtTotLiving 关联了两个回归系数,一个用于线性项,另一个用于平方项。
图
4-10
显示了拟合的偏残差图(参见
4.6.4
节)。图中表明,在关联 SqFtTotLiving 的回归方
程中存在一个曲率。相比于线性拟合,拟合线更接近对匹配偏残差的平滑(参见
4.7.2
节 )。
图 4-10:变量
SqFtTotLiving
的多项式回归拟合(实线),以及与平滑(虚线,参见 4.7.2 节中对样
条回归的介绍)的对比
4.7.2
 样条回归
多项式回归只捕获了非线性关系的部分曲率。添加高阶项(例如三次方项),通常会导致
回归线中出现我们所不期望的“摇摆”(
wiggliness
)现象。还有一种方法,通常也是更好
的做法,是在建模非线性关系时使用
样条
。样条是一种在不动点间平滑插值的方法。样条
最初是手工业者在绘制平滑曲线时所使用的工具,特别是在轮船和飞机制造中。
样条是通过使用重物[俗称“鸭子”(
ducks
)]弯曲一根细木条得到的,如图
4-11
所示。
130
|
第
4
章
图 4-11:样条最初是使用可弯曲的木条和“鸭子”构建的,它是手工业者拟合曲线的一种工具。
Bob ...
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

精通機器學習

精通機器學習

Aurélien Géron
基于Python的智能文本分析

基于Python的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul

Publisher Resources

ISBN: 9787115493668