Under a normal approximation, what fraction of runs fit a time budget?
NormalDist.cdf gives the cumulative probability up to a threshold under the specified normal distribution.
Python example and interpretation
With mean 100 and standard deviation ten milliseconds, a budget of 110 covers roughly 84%. Compare against observed latency tails before using that estimate operationally.
from statistics import NormalDist
round(NormalDist(100,10).cdf(110),4)Result 0.8413
中文
给定正态近似,怎样估计耗时落在预算以内的比例?
NormalDist.cdf 给出所设正态分布在指定阈值左侧的累计概率。
Python 算例与适用条件
均值 100、标准差 10 毫秒时,110 毫秒预算对应约 84%。实际延迟常有长尾,需对照实测分布检验近似。
from statistics import NormalDist
round(NormalDist(100,10).cdf(110),4)结果 0.8413