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 面向数据科学家的实用统计学
160
|
第
5
章
5.5.4
 基于代价的分类
在实践中,正确率和
AUC
是代价最低的分类规则。通常,可以为假阳性与假阴性的比例
指定一个估计代价。在确定分类
1
和
0
的最佳截止值中,应该考虑这一代价。例如,假设
新贷款拖欠的预期成本是
C
,而还清贷款的预期收益是
R
。那么贷款的预期收益是:
预期收益
=
P
(
Y
= 0)
×
R
+
P
(
Y
= 1)
×
C
这里,我们并非将贷款简单地标记为“拖欠”或“偿清”,也并非要确定贷款拖欠的概率,
更合理的做法是确定贷款是否具有正预期收益。要确定预期的利润情况,预测拖欠概率只
是一个中间步骤,它必须与贷款总额一并考虑。而预期的利润才是企业的最终规划度量。
例如,相比于预测拖欠概率稍高的大额贷款,较小数额的贷款可能会通过。
5.5.5
 探索预测值
AUC
之类的单一指标,并不能捕获在某一情况下一个模型适用性的所有方面。图
5-8
显示
了四种不同模型的决策规则。这些模型分别为:线性判别分析、逻辑线性回归、使用广义
加性模型拟合的逻辑回归以及树模型(参见
6.2
节),它们都仅使用了
borrower_score
和
payment_inc_ratio
这两个预测变量去拟合贷款数据。图
5-8
中,线段左上角的区域表示贷
款拖欠预测值。我们可以看出,线性判别分析和逻辑线性回归给出了几乎相同的结果,而
树模型给出了形状最曲折的规则。事实上,在一些情况下,增加借款者的分值会使预测值
从“偿清”转为“拖欠”!最后,使用广义加性模型拟合的逻辑回归是树模型和线性模型
这两者的折中。
方法
广义加性模型
线性判别分析
逻辑线性回归
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