Skip to Content
Java数据科学实战
book

Java数据科学实战

by Michael R. Brzustowicz, PhD
January 2020
Intermediate to advanced
202 pages
5h 41m
Chinese
Posts & Telecom Press
Content preview from Java数据科学实战
统计学
|
79
12.
峰度
峰度是关于数据分布尾部的一种度量。样本峰度估计与关于均值的四阶中心矩相关,计算
公式如下:
4
1
(1)
(1)( 2)(3)
n
i
i
nx
x
nn
ns
=
+−

=

−− −

∑
κ
可以简化为下式:
4
4
(1)
(1)( 2)(3)
nM
nn
ns
+
=
−− −
κ
峰度等于
0
或接近于
0
时,表明数据分布是极其窄的。随着峰度的增大,极值会出现在长
尾的地方。不过,我们通常想把峰度表示为与正态分布相关(正态分布的峰度
=
3
)。于是
可以从中减去
3
,并将新量称作
超值峰度
,但实际上大多数人把超值峰度直接称作峰度。
在这个定义中
1
,
κ
=
0
表示数据与正态分布有相同的峰值与尾部形状。峰度
2
大于
3
时,分
布称作
尖峰态的
(
leptokurtic
),其尾部比正态分布要宽。当
κ
小于
3
时
3
,分布称作
低峰态
的
(
platykurtic
),其尾部值较少(比正态分布要少)。超值峰度计算公式如下式:
2
4
4
(1)3(1)
(1)( 2)(3)(2)
(3
)
nMn
nn ns
nn
+−
=−
−−
−−
−
κ
就像方差与偏度那样,峰度通过对非归一化的四阶中心矩进行更新来计算。对于添加到计
算中的每个点,只要点的数目
n
≥
4
,就可以用下面的公式对
M
4
更新。在任何点上,峰度
可以从
M
4
的当前值计算得出。
2
4
2
4 4,1 3,1 2,1
3
4 6 ( 1)( 3 3)MM M M n n n
nn n
δδ δ

= − + +− −+


采用
getKurtosis()
方法,默认返回值是根据超值峰度定义计算得出的。这可以通过实现
org.apache.commons.math3.stat.descriptive.moment.Kurtosis ...
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, Álvaro Morena Alberolaï, Gonzalo Molina Gallegoï, Unai Garay Maestreï
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9787115533302