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 面向数据科学家的实用统计学
138
|
第
5
章
5.1.3
 数值型预测变量
从定义中可以看出,贝叶斯分类器仅适用于分类预测变量。例如,在垃圾邮件分类中,预
测任务关注的是邮件中是否存在某个单词、短语或字符等。要将朴素贝叶斯用于数值型预
测变量,需要采取下面两种方法之一。
•
将数值型预测变量划分为多个箱子,并转换为分类预测因子,然后再应用上面介绍的算法。
•
使用正态分布(参见
2.6
节)等概率模型,估计条件概率
P
(
X
j
|
Y
=
i
)
。
如果训练数据中不存在预测因子类,那么在新数据中,算法会对结果变量赋
予
零概率
。而其他一些方法会直接忽略该变量,并使用其他变量给出的信
息。在对连续变量分箱时,需要注意这一点。
本节要点
•
朴素贝叶斯适用于分类的(因子型的)预测和结果。
•
朴素贝叶斯要解答的问题是:“在每个结果类别中,哪些预测类别是最可能发生的?”
•
该问题可以转化为,在给定预测值的情况下,估计结果属于不同类别的概率。
5.1.4
 拓展阅读
• Trevor Hastie
、
Robert Tibshirani
和
Jerome Friedman
合著的《统计学习基础(第
2
版 )》。
•
在
Galit Shmueli
、
Peter Bruce
和
Nitin Patel
合著的
Data Mining for Business Analytics:
Concepts, Techniques, and Applications with XLMiner
一书中,有一整章的内容介绍朴素贝
叶斯。该书有针对
R
、
Excel
和
JMP
的不同版本。
5.2
 判别分析 ...
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