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 面向数据科学家的实用统计学
回归与预测
|
111
预测区间还是置信区间
?
预测区间涉及围绕单个值的不确定度,而置信区间则与由多个值计算得到的
统计量(如均值)相关。因此,对于同一个值,预测区间的范围通常要比置
信区间宽一些。为了在自助模型中建模单个值的误差,需要选择单个残差去
处理预测值。这时,我们应该选用两者中的哪一个?这取决于具体的分析场
景和目的。但是,数据科学家通常关注的是特定的单个预测,因此预测区间
更适用。如果在应该使用预测区间时使用了置信区间,将严重低估给定预测
值的不确定度。
本节要点
•
超出数据范围的外推会导致误差。
•
置信区间量化了回归系数的不确定度。
•
预测区间量化了单个预测中的不确定度。
•
包括
R
在内的很多统计软件,都会使用公式在默认或指定输出中给出预测区间和置
信区间。
•
也可以使用自助法确定置信区间,该做法的解释和理念同上。
4.4
 回归中的因子变量
因子变量
(
factor variable
)也称为
分类变量
,它是一组数量有限的离散值。例如,贷款目的
可以是“债务合并”“办婚礼”“购买汽车”等。因子变量的一种特殊情况是二元(即是
/
否)
变量,也称为
指示变量
。回归需要数值输入,因此,要在回归模型中使用因子变量,需要对
因子变量进行重新编码。最常用的编码方法是将因子变量转换为一组二元
虚拟
变量。
主要术语
虚拟变量
二元的
0/1
变量,通过对因子数据重新编码得到,可用于回归模型或其他模型。
参考编码
统计学家最常使用的编码类型。它以因子的一层作为参考层,并将其他因子与参
考层进行对比。
同义词:编码处理
独热编码
(
one hot ...
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