Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
42
|
第
4
章
户的体验,而忽略少数异常的情况。
你不能平均一个百分位数
由于百分位数计算的特性,你需要删除一些数据。因此,不能将百分位数放
在一起取平均值,因为这样会丢失其中一些数据,进而导致结果不准确。换
句话说,算出每天的第
95
个百分位数,然后将
7
个这样的百分位数取平均
值,并不能得出一周的第
95
个百分位数的准确值,你需要根据整个星期的
所有值来计算周百分位数。
虽然使用百分位数可以让你了解大多数值是什么(例如,当涉及延迟时,大多数用户的体
验),但是不要忘记你丢弃了大量的数据点。当使用百分位数来判断延迟时,计算最大延
迟也是有用的,它可以用来查看用户体验到的最坏情况。
4.8
 标准差
标准差
是一种描述数值离均值远近程度的方法。虽然这乍一听起来很好,但是存在一个问
题:虽然可以为任何数据集计算标准差,但是只有
正态分布
的数据集才会产生期望的结
果。在非正态分布的数据集中使用标准差可能会导致意外的结果。
分布
?
正态
?
非正态
?
分布
只是描述数据集模型的统计术语。正态分布类似于图
4-4
。非正态分布通常具有
偏
态
,也就是说,数据集可能有多个峰值、长导入和长尾等。
标准差的一个有用之处在于特定偏差中的数据量是可预测的。从图
4-4
可以看出,大约
68%
的数据分布在均值的标准差范围内,大约
95%
的数据分布在两个标准差范围内,大
约
99.7%
的数据分布在
3
个标准差范围内。请记住这只适用于正态分布的数据集。
图 4-4:正态分布和标准差(维基百科,CC BY 2.5 协议)
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

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750