sigtest: Significance Testing

Description Usage Arguments Details Value Author(s) References Examples

Description

This function uses Kendall's tau and Rising sequences to determine how many times to shuffle a an ordinary deck of 52 playing cards.

Usage

1
sigtest(nreps)

Arguments

nreps

Number of experiment repetitions (should be at least 30/Central Limit Theorem)

Details

According to the Bayer & Diaconis paper, after 7 shuffles there is no benefit to shuffling any more. This simulation shows that using Kendall's tau to show this doesn't work because the variance of the Kendall's distance is too large. However, if one looks at rising sequences, the variability is smaller therefore it is possible to show the Bayer & Diaconis result.

Value

Plots confidence intervals for each method. The print method returns the p-values from two sample t-test for the sequential interval comparisons (i.e. intervals: 3-4,4-5,5-6,6-7,7-8,8-9 and 9-10).

Author(s)

Kyle Caudle

References

Bayer, D., & Diaconis, P. (1992). Trailing the dovetail shuffle to its lair. The Annals of Applied Probability, 294-313.

Examples

1
sigtest(15)

shuffleCI documentation built on May 2, 2019, 5:11 a.m.

Related to sigtest in shuffleCI...