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 面向数据科学家的实用统计学
探索性数据分析
|
29
一个列联表,它表示了个人信贷等级与贷款情况之间的关系。数据来自美国
P2P
借贷业务
的引领者
Lending Club
公司。信贷等级从
A
(高等级)到
G
(低等级)不等,贷款情况包
括
付清
、
流动
、
延期
和
销账
(预期无法收回剩余贷款)。该表显示了计数情况和按行的百
分比情况。与低信贷等级贷款相比,高信贷等级贷款的延期或销账的百分比非常低。列联
表中可以只统计计数的情况,也可以包括列百分比和总百分比。最常用的列联表创建工具
可能是
Excel
中的数据透视表。在
R
语言中,可以使用
descr 软件包中的 CrossTable 函数
生成列联表。例如,表
1-8
是使用下面的代码生成的。
library(descr)
x_tab <- CrossTable(lc_loans$grade, lc_loans$status,
prop.c=FALSE, prop.chisq=FALSE, prop.t=FALSE)
表1-8:信贷等级和贷款状态的列联表
信贷等级 付清 流动 延期 销账 合计
A 20 715 52 058 494 1588 74 855
0.277 0.695 0.007 0.021 0.161
B 31 782 97 601 2149 5384 136 916
0.232 0.713 0.016 0.039 0.294
C 23 773 92 444 2895 6163 125 275
0.190 0.738 0.023 0.049 0.269
D 14 036 55 287
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