arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.04538cs.DS
收藏

调和数与对数的简单随机估计量

A Simple Randomized Estimator for Harmonic Numbers and Logarithms

KD Consulting(KD咨询公司)

Ali Dasdan

AI总结:

本文提出一种基于随机列表更新次数的简单估计量,可无偏估计调和数与对数,通过耦合更新次数和二进制范围缩减实现高精度估计,实验量化了其与经典确定性级数方法的差距。

摘要:

以均匀随机顺序扫描包含$x$个不同数字的列表求最大值时,平均会更新运行最大值$H_x$次,其中$H_x$为第$x$个调和数。反向操作可得到一个估计量:随机列表的更新次数是$H_x$的无偏蒙特卡洛估计量,且由于$H_x = \ln x + \gamma + O(1/x)$,可据此得到$\ln x$的校正估计量。本文给出该更新次数的精确方差、带样本量规则的误差分解,以及仅需平均$H_x$次整数抽取而非长度为$x$的扫描的更新次数精确采样器。耦合两个更新次数可在不引入$\gamma$的情况下估计$\ln(a/b)$,且二进制范围缩减可将标准误差限制为$\sqrt{\ln 2/n}$,每次重复平均仅需少于1.7次抽取。实验中,同一缩减的经典确定性级数在16项时达到舍入下限,量化了两种方法的差距。研究目的具有教学性:算法分析可成为其分析所得量的估计量,具备精确方差、有限样本误差界、可复现实验及机器验证的算法契约与矩恒等式。所用成分均为经典内容,贡献在于将它们整合起来。

英文摘要:

Scanning a list of $x$ distinct numbers in uniformly random order for its maximum replaces the running maximum $H_x$ times on average, where $H_x$ is the $x$th harmonic number. Run backwards, this gives an estimator: the replacement count of a random list is an unbiased Monte Carlo estimate of $H_x$, and since $H_x = \ln x + γ+ O(1/x)$, a corrected estimate of $\ln x$. We give the exact variance of the count, an error decomposition with sample-size rules, and an exact sampler of the count using $H_x$ integer draws on average instead of a scan of length $x$. Coupling two counts estimates $\ln(a/b)$ without $γ$, and a binary range reduction then bounds the standard error by $\sqrt{\ln 2/n}$ for every $x$ at fewer than $1.7$ draws per repetition on average. A classical deterministic series on the same reduction reaches the rounding floor with sixteen terms in the reported experiments, quantifying the gap between the two approaches. The purpose is pedagogical: the analysis of an algorithm becomes an estimator of the quantity that analysis produces, with exact variances, finite-sample error bounds, reproducible experiments, and machine-checked algorithm contracts and moment identities. The ingredients are classical; the contribution is their assembly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑