Do-it-yourself Shuffling and the Number of Runs under Randomness

  • Smeeton N
  • Cox N
N/ACitations
Citations of this article
11Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

A common class of problem in statistical science is estimating, as a benchmark, the probability of some event under randomness. For example, in a sequence of events in which several outcomes are possible and the length of the sequence and number of outcomes of each type known, the number of runs gives an indication of whether the outcomes are random, clustered, or alternating. This note explains and illustrates a simple method of random shuffling that is often useful. We show how the conditional probability distribution of the number of runs may be derived easily in Stata, thus yielding p-values for testing the null hypothesis that the type of outcome is random. We also compare our direct approach with that using the simulate command.

Cite

CITATION STYLE

APA

Smeeton, N., & Cox, N. J. (2003). Do-it-yourself Shuffling and the Number of Runs under Randomness. The Stata Journal: Promoting Communications on Statistics and Stata, 3(3), 270–277. https://doi.org/10.1177/1536867x0300300304

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free