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 面向数据科学家的实用统计学
110
|
第
4
章
有建筑物的地块,并没有空地的相关记录。因此,模型不知该如何预测空地的售价。
4.3.2
 置信区间和预测区间
许多统计量涉及对变异性(不确定性)的测量和理解。回归输出中的
t
统计量和
p
值以一
种正式的方式处理该问题,有时这对于变量的选择十分有用(参见
4.2.2
节)。另一种更有
用的指标就是置信区间,它是围绕回归系数和预测的不确定性区间。要理解置信区间,一
种简单的方式是使用自助法(使用自助过程的详细信息,参见
2.4
节)。在各种统计软件
的输出中,最常见的回归置信区间是回归参数(系数)的置信区间。下面给出的自助算法
(
bootstrap algorithm
),可以对具有
P
个预测因子和
n
条记录(行)的数据集,生成一个回
归参数(系数)的置信区间。
(1)
将每行数据(包括结果变量)作为一张“票”(
ticket
),并将所有的
n
张票置于同一个
箱子中。
(2)
从箱子中随机抽取一张票,记录票上的值,并将票放回箱子。
(3)
重复第
2
步
n
次,得到一个自助法重抽样。
(4)
对自助样本做回归拟合,记录估计的回归系数。
(5)
重复第
2
步到第
4
步多次(例如
1000
次 )。
(6)
现在,每个回归系数有
1000
个自助值。找到每个系数的百分位数。例如,对于
90%
置
信区间是第
5
百分位数和第
95
百分位数。
要生成回归系数的实际自助置信区间,可以使用
R
的 Boot 函数,也可以简单地使用基于
公式的置信区间,这是
R
的惯常输出。两者在概念上的意义和解释是一样的,它们对于数
据科学家来说并不十分重要,他们关心的是回归系数。数据科学家更感兴趣的是围绕预测 ...
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