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 面向数据科学家的实用统计学
212
|
第
7
章
XOM CVX
XOM 1.046318 1.066860
CVX 1.066860 1.915799
两个分布具有相似的均值和相关性,但第二个分布具有更大的方差和协方差。
mclust 给出的聚类可能令人惊奇,但实际上它们展示了这种方法的统计性质。基于模型聚
类的目标是找到一组最佳拟合的多元正态分布。股票数据看上去具有正态分布的形状(参
见图
7-9
中的轮廓线)。实际上,相比于正态分布,股票收益的分布具有更长的尾部。为了
解决这个问题,mclust 对大量数据拟合了一个分布,随后又拟合了具有更大方差的第二个
分布。
7.4.3
 类数的选取
不同于
K
-Means
和层次聚类,mclust 会自动选取类数(在本例中,是两个类)。这是通过
选取使
贝叶斯信息准则
(
BIC
)值最大的类数实现的。
BIC
(类似于
AIC
)是在一组候选模
型中找到最佳模型的通用工具。例如,
AIC
(或
BIC
)常用于在逐步回归(参见
4.2.4
节)
中选择模型。
BIC
通过对模型中的参数数量添加一个惩罚项,选择最优拟合模型。在基于
模型的聚类中,增加类数总是会提高模型的拟合度,但代价是在模型中额外地引入了一些
参数。
我们可以使用
hclust
软件包中的函数,绘制不同类数的
BIC
值。
plot(mcl, what='BIC', ask=FALSE)
结果如图
7-11
所示。图中,
x
轴显示了类数,即不同的多元正态模型(成分)的数量。
类数
图 7-11:在选取不同类(成分)数的情况下,股票收益数据的 BIC 值
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