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数据科学实战
74
|
第
3
章
2,1 2 1
xx
δ
= −
是两个数据分块的均值之差。当然,因为上面的公式只适用于
k
> 1
,所以也需
要合并均值的方法。给定任何两个数据分块,已知各自均值与数据点个数,总数据点个数
为
n
=
n
1
+
n
2
,那么按下式计算的均值是稳定的:
2,1
12
xxn
n
δ
= +
若其中某个数据分块只有单个点
x
,那么非归一化中心矩的组合公式可以简化为:
1
2
,1 ,1
1
11
1
1
jk k
k
k k kj
j
j
n
MM M
k
nn n
δ
δ
−
−
−
=


−− −

=+ +−



−




∑
此处,
1
xx
δ
= −
是新增值
x
与现有数据分块均值之差。
下一节中将看到如何用这些公式稳定地计算重要的统计结果。在分布式计算应用中,若希
望把统计计算分为多个部分,则这些公式是必要的。另一个有用的应用是无存储的计算,
它不是针对整个数据数组进行计算,而是逐步地记录矩,并对它们进行递增更新。
3.2.2
 描述性统计
对
DescriptiveStatistics
类进行实例化,但不设置任何参数,以便以后再添加值或者赋
予
double
型数组(以后仍然可以再填充值)。可以使用
StatUtils
类的静态方法,虽然也
没有什么错误,但这不像是
Java
的用法,使用
DescriptiveStatistics
类可能更明智。本
节中的一些公式是不稳定的,下一节中描述的公式会更稳定。的确,那些方法中的一些也
用在描述性统计方法中。表
3-1
中列出了
Anscombe
的
4
组数据,供本章进一步分析所用。 ...
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

云安全实用指南

云安全实用指南

Chris Dotson
Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino

Publisher Resources

ISBN: 9787115533302