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数据科学实战
统计学
|
73
3.2
 数据集的特征
一旦有了数据集,首先要做的是理解数据的特征。应当知道的内容包括:数值极限,是否
存在任何异常值,以及数据形状是否类似于已知分布函数中的一种。即使对数据潜在的分
布一无所知,也仍然可以检查两个数据集是否来自同一(未知的)分布。也可以通过协方
差
/
相关系数来检查每对变量的相关性(或不相关性)。若变量
x
伴随着响应
y
,则可以通
过检查线性回归来判断
x
与
y
之间是否存在着最基本的关系。本节中的绝大多数类最适合
于小的静态数据集,可以完全装入内存,因为这些类中的大多数方法都依赖于内存中的数
据。下一节中,所处理的数据将大(或者不方便)到不适合装载到内存中。
3.2.1
 矩的计算
前一节中讨论了统计矩,其中所给出的计算矩及其各种统计结果的公式针对已知概率分布
函数
f
(
x
)
的情形。处理实际数据时,通常不知道
f
(
x
)
,因此必须用数值方法估计矩。矩的
计算有另一个关键特征:稳定性。当遇到极值时,对统计量的估计可以导致数值误差。采
用更新矩的方法,可以避免数值的不准确。
1.
样本矩
对于实际数据,我们可能并不知道其真实的统计分布函数,但可以估计中心矩:
1
1
()
n
k
ki
i
m xx
n
=
= −
∑
此处的估计均值
1
mx=
,其计算公式如下:
1
1
n
i
i
xx
n
=
=
∑
2.
矩的更新
去掉
1/
n
的因子,估计中心矩的公式变为下式:
1
()
n
k
ki
i
M xx
=
= −
∑
在这种特定的形式中,未归一化的矩可以通过直接计算分解为多个部分。这样做有很大的
优势,即对未归一化的矩按不同部分进行计算,从而可以在不同的进程中计算,甚至是在 ...
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