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

dc.creatorSmeeton, Nigel
dc.creatorCox, Nicholas J.
dc.date2017-04-01T14:01:12Z
dc.date.accessioned2026-07-09T05:47:24Z
dc.descriptionA 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.
dc.identifierOther:st0044
dc.identifierdoi:10.22004/ag.econ.116095
dc.identifierhttps://ageconsearch.umn.edu/record/116095/files/sjart_st0044.pdf
dc.identifierhttp://ageconsearch.umn.edu/record/116095
dc.identifier.urihttp://hdl.handle.net/123456789/568397
dc.languageeng
dc.publisher
dc.sourcehttp://ageconsearch.umn.edu/record/116095
dc.titleDo-it-yourself shuffling and the number of runs under randomness
dc.typeText

Archivos