Skip to Content
数据科学中的实用统计学(第2版)
book

数据科学中的实用统计学(第2版)

by Peter Bruce, Andrew Bruce, Peter Gedeck
October 2021
Intermediate to advanced
289 pages
8h 31m
Chinese
Posts & Telecom Press
Content preview from 数据科学中的实用统计学(第2版)
174
5
5.3.5
 系数和优势比的解释
逻辑回归的一个优点是,它生成的模型不需要重新计算就可以快速地为新数据打分。与其
他分类方法相比,它的另一个优点是模型很容易解释。在模型解释中,需要理解的一个关
键概念是
优势比
odds ratio
。二元因子变量
X
的优势比是最容易理解的:
优势比
Odds( 1| 1)
Odds( 1| 0)
YX
YX
= =
=
= =
这个优势比可以解释为当
X
=
1
Y
=
1
的发生比与
X
=
0
Y
=
1
的发生比的比值。如果
优势比为
2
,就是说当
X
=
1
时,
Y
=
1
的发生比是
X
=
0
时的
2
倍。
为什么不使用概率,而使用优势比呢?因为逻辑回归中的系数
β
j
就是
X
j
的优势比的对数,
所以选择使用优势比。
下面通过一个例子来辅助理解。在
5.3.2
节中,我们拟合了一个模型,其中
purpose_small_
business
的回归系数是
1.21526
。这个系数的意义是,与贷款目的是还清信用卡相比,贷
款给小型企业会将违约相对于还清的优势比提高
exp(1.21526)
3.4
。显然
,如果贷款目的
是创建或扩展一个小型企业,那么风险就会远远高于其他类型的贷款。
5-3
给出了优势比大于
1
,优势比与对数优势比之间的关系。因为系数是以对数表示
的,所以系数增加
1
就会使优势比增加
exp(1)
2.72
5-3:优势比与对数优势比之间的关系
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机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115569028