Skip to Content
数据科学中的实用统计学(第2版)
book

数据科学中的实用统计学(第2版)

by Peter Bruce, Andrew Bruce, Peter Gedeck
October 2021
Intermediate to advanced
289 pages
8h 31m
Chinese
Posts & Telecom Press
Content preview from 数据科学中的实用统计学(第2版)
252
7
2.
对所有成对的两个簇
k
l
,计算出它们之间的相异度
D
(
C
k
,
C
l
)
3.
将相异度
D
(
C
k
,
C
l
)
最小的两个簇
C
k
C
l
合并。
4.
如果余下的簇多于
1
个,回到第
2
步,否则算法结束。
7.3.4
 测量相异度
常用的相异度测量方法有四种:完全距离法、单距离法(
single linkage
)、平均距离法
average
linkage
)和最小方差法。多数层次聚类软件(包括
hclust
linkage
)支持这些
方法(以及其他方法)。上一节介绍的完全距离法往往生成成员相似的簇。单距离法使用
两个簇记录之间的最小距离作为相异度:
D
(
A
,
B
)
=
min
d
(
a
i
,
b
j
)
这是一种“贪婪”方法,它生成的簇可以包含差异非常大的元素。平均距离法使用所有记
录对之间的平均距离,是单距离法和完全距离法的一种折中。最后,最小方差法也称为
Ward
距离法,它与
K-
均值类似,因为它最小化了簇内平方和(参见
7.2
)。
在图
7-9
,在埃克森美孚和雪佛龙的股票收益上使用四种方法进行了层次聚类,对于每
种测量方法,都保留四个簇。
7-9:股票数据上四种相异度测量的比较
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机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115569028