IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v3y2003i3p270-277.html
   My bibliography  Save this article

Do-it-yourself shuffling and the number of runs under randomness

Author

Listed:
  • Nigel Smeeton

    (King's College, London)

  • Nicholas J. Cox

    (University of Durham, UK)

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. Copyright 2003 by StataCorp LP.

Suggested Citation

  • Nigel Smeeton & Nicholas J. Cox, 2003. "Do-it-yourself shuffling and the number of runs under randomness," Stata Journal, StataCorp LP, vol. 3(3), pages 270-277, September.
  • Handle: RePEc:tsj:stataj:v:3:y:2003:i:3:p:270-277
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/sjpdf.html?articlenum=st0044
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Samaniego de la Parra Brenda & Fernández Bujanda León, 2020. "Increasing the Cost of Informal Workers: Evidence from Mexico," Working Papers 2020-19, Banco de México.
    2. Ozier, Owen, 2012. "Perils of simulation : parallel streams and the case of stata's rnormal command," Policy Research Working Paper Series 6278, The World Bank.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:3:y:2003:i:3:p:270-277. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.