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 面向数据科学家的实用统计学
152
|
第
5
章
Yhat = 1 Yhat = 0
Y = 1 14635 8501
Y = 0 8236 14900
在输出中,预测结果按列给出,而真实结果按行给出。我们可以看到,矩阵的对角元素显示
了正确预测数,而非对角线元素则显示了错误预测数。在本例中,模型正确地预测了
14 295
个贷款拖欠,但有
8376
个贷款拖欠被错误地预测为已经还清。
图
5-5
显示了二元响应
Y
的混淆矩阵,以及混淆矩阵与各种度量之间的关系(更多关于度
量的信息,参见
5.4.3
节)。与上面给出的贷款数据的例子一样,实际响应是按行显示的,
而预测响应是按列显示的(我们可能也会看到,有一些混淆矩阵的显示与此相反)。对角
线上的方格(即左上角和右下角的方格)显示了预测值 是否正确地预测了响应。其中,
假阳性率
是我们前面并未明确提及的一个重要指标,它是准确率的镜像。当
1
很罕见时,
假阳性(
FP
)与所有预测阳性之间的比率可能会很高,导致无法直观给出预测为
1
但很可
能是
0
的情况。一些广泛使用的医学筛查检验,例如乳房
X
光造影,就受到了此问题的困
扰。由于病例相对稀少,阳性检测结果很可能并不意味着是乳腺癌。这会导致公众过多的
困惑。
TP/(y = 1)
TP/(y = 1)
FP/(y = 0)
特异性
正确率发生率 准确率
预测响应
真实响应
召回率(灵敏度)
(TP+TN)/总体
(y = 1)/总体
y = 1 y = 0
y = 1
y = 1
图 5-5:二元响应的混淆矩阵与各种度量。其中,“True Positive”( TP)表示真阳性,“False ...
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