跳转到主要内容
Calcton

Runs Test Calculator

Free online runs test calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.

中文版:游程检验在线计算器

Runs Test Calculator
二值序列(0 和 1,逗号分隔,按时间顺序)

原理:游程检验(Wald-Wolfowitz 检验)把二值序列中连续相同的段记为一个游程。在「顺序随机」的原假设下,给定符号 1 与 0 的个数 n₁、n₂,游程数 R 的期望为 2n₁n₂/N + 1。游程太少说明数据成块聚集(有趋势),游程太多说明符号交替过密(有周期性),两者都破坏随机性。

步骤:① 按时间顺序输入 0/1 序列;② 点击计算;③ 读出游程数与双侧 p 值,p 小于显著性水平时拒绝随机性假设。

示例:序列 (1, 0, 1, 0, 1, 0, 1, 0) 游程数 R = 8、期望 μ = 5、z = 2.291287847478、p = 0.021946710262,交替过密非随机;(1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1) 游程数 R = 3、p = 0.021467119345,成块聚集非随机。

注意事项:序列必须按产生顺序输入,打乱顺序会改变结论;两个符号的个数都不能为零,且正态近似在 n₁、n₂ 都大于 20 时最准,小样本应查精确游程分布表;用于连续数据时可先把数据换成「高于中位数记 1、低于记 0」再做检验;p 值小只说明「非随机」,需要结合游程数相对期望的方向判断是聚集还是周期。

相关:正态分布计算器提供 z 统计量的分布背景;卡方检验计算器检验分组独立性;Mann-Whitney U 检验计算器比较两组而非顺序结构。

How to use the Runs Test Calculator

  1. Fill in the inputs with your own numbers — every field shows what it expects.
  2. The result updates instantly as you type; no "Calculate" click needed.
  3. Read the result card for the main figure, the step-by-step formula, and practical notes.

Frequently asked questions

Is the Runs Test Calculator free?

Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.

Is there a Chinese version of this tool?

Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.

References

Formulas and benchmarks used by this calculator follow these published sources.

  1. dlmf.nist.gov
  2. mathworld.wolfram.com
Kevin's profile

KevinContent LeadCalcton Editorial Team · Last updated 2026-10-07

Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.

Related calculators

More in this category: Math calculators

About math calculators

Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.

搜索计算器

搜索全站计算器、分类与页面,回车直达