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 面向数据科学家的实用统计学
128
|
第
4
章
主要术语
多项式回归
在回归方程中添加了多项式项,例如平方项、三次方项等。
样条回归
使用一系列多项式片段去拟合一条平滑曲线。
结点
分隔样条片段的值。
广义加性模型
可以自动选择结点的样条模型。
同义词:
GAM
非线性回归
统计学家所说的
非线性回归
,指的是那些不能使用最小二乘法拟合的模型。
那么,哪些类型的模型是非线性的?从本质上讲,所有响应不能表示为预测
变量(或预测变量的某种转换)的线性组合的模型,都是非线性的。非线性
回归模型需要做数值优化,因此更难以拟合,计算的强度也更大。如有可
能,我们应尽量使用线性模型。
4.7.1
 多项式回归
多项式回归
涉及在回归方程中添加多项式项。多项式回归的使用可以追溯至葛尔刚
(
Gergonne
)在
1815
年的论文提出了回归。例如,响应变量
Y
和预测变量
X
间的二项式回
归的形式如下。
2
0 1 2
Y b b X b X e= + + +
可以使用
R
中的
poly
函数拟合多项式回归。例如,下面的代码使用金县房屋数据,对
SqFtTotLiving
拟合了一个二项式回归。
lm(AdjSalePrice ~ poly(SqFtTotLiving, 2) + SqFtLot +
BldgGrade + Bathrooms + Bedrooms,
data=house_98105)
Call:
lm(formula = AdjSalePrice ~ poly(SqFtTotLiving, 2) + SqFtLot +
BldgGrade + Bathrooms + Bedrooms, ...
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