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 面向数据科学家的实用统计学
回归与预测
|
119
SqFtTotLiving:ZipGroup2 SqFtTotLiving:ZipGroup3
3.165e+01 3.893e+01
SqFtTotLiving:ZipGroup4 SqFtTotLiving:ZipGroup5
7.051e+01 2.298e+02
在生成的模型中具有
4
个新项,即 SqFtTotLiving:ZipGroup2、SqFtTotLiving:ZipGroup3 等。
我们可以看到,地段变量和房屋估价之间具有很强的交互作用。落在房价最低 ZipGroup 中
的房屋,其斜率与主效应 SqFtTotLiving 的斜率相同,都是每平方英尺
177
美元。这是由
于
R
对因子变量使用了
参考
编码,参见
4.4
节。位于房价最高 ZipGroup 中的房屋,其斜率
是主效应加上 SqFtTotLiving:ZipGroup5,即
177 + 230 = 447
美元
/
平方英尺。换句话说,
对于房价最贵邮政编码组中的房屋,房屋面积每增加一平方英尺,预测售价的提高量将是
房价最低邮政编码组的
2.7
倍左右。
具有交互项的模型选择
对于涉及多变量的问题,确定模型中应包含哪些交互项是一个挑战性的问
题。通常采取的方法有以下几种。
•
对于某些问题,可以使用先验知识和直觉,指导模型中应包含哪些交互项。
•
使用逐步选择法(参见
4.2.4
节),筛选各种模型。
•
使用惩罚回归自动拟合大量可能的交互项。
•
也许最常用的方法是
树模型
,以及其衍生的
随机森林
和
梯度提升树
。这类
模型能自动搜索最佳的交互项,参见 ...
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的智能文本分析

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

Python数据处理

Jacqueline Kazil, Katharine Jarmul
精通機器學習

精通機器學習

Aurélien Géron
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787115493668