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 面向数据科学家的实用统计学
146
|
第
5
章
我们可以看到,虽然输出结果位于
[0, 1]
区间内,但是它们并未指明预测值是欠贷还是已
偿还贷款。和
K
最近邻分类器一样,我们可将任何大于
0.5
的截止值定义为默认值。在实
践中,如果目标是识别罕见类的成员,通常使用较低的截止值(参见
5.4.2
节 )。
5.3.5
 解释系数和优势比
逻辑回归的一个优点是,其所生成的模型无须重新计算,就可以快速地为新数据打分。另
一个优点是,与其他的分类方法相比,其所生成的模型易于解释。对于此,关键理念是对
优势比
的理解。对于二元因子变量
X
,优势比最容易理解。
Odds( 1| 1)
Odds( 1| 0)
Y X
Y X
= =
=
= =
优势比
上面的公式可以解释为:当
X
= 1
时
Y
= 1
的几率与
X
= 0
时
Y
= 1
的几率的对比。如果优
势比为
2
,那么表示当
X
= 1
时
Y
= 1
的几率,是当
X
= 0
时
Y
= 1
的几率的两倍。
为什么要使用优势比,而不是概率?这是因为逻辑回归中的回归系数
β
j
是
X
j
优势比的对数。
为了更清楚地解释这一问题,下面给出一个例子。回顾
5.3.2
节中拟合的模型,其中
purpose_
small_businessis
的回归系数为
1.21226
。这表示相比于以还清信用卡债务为目的的贷款,
贷款给一个小企业可将几率(贷款拖欠对比贷款还清)降低
exp(1.21226)
,约等于
3.4
。显
然,相比于其他用途类型的贷款,以创建或扩大小企业为目的的贷款具有更高的风险。
图
5-3
显示了在优势比大于
1
的情况下,优势比和对数优势比之间的关系。因为回归系数
使用了对数尺度,所以回归系数每增加 ...
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