Mixing Business Cards in a Box

Similar documents
Statistical Analysis of Nuel Tournaments Department of Statistics University of California, Berkeley

Medium Access Control via Nearest-Neighbor Interactions for Regular Wireless Networks

On Quasirandom Permutations

7.1 Chance Surprises, 7.2 Predicting the Future in an Uncertain World, 7.4 Down for the Count

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Permutation Tableaux and the Dashed Permutation Pattern 32 1

CSE101: Algorithm Design and Analysis. Ragesh Jaiswal, CSE, UCSD

Discrete probability and the laws of chance

Mathematics (Project Maths Phase 2)

Problem Set 2. Counting

Chapter 1. Probability

Chapter 1. Probability

Axiomatic Probability

4.12 Practice problems

Laboratory 1: Uncertainty Analysis

Combinatorics and Intuitive Probability

Techniques for Generating Sudoku Instances

Math 247: Continuous Random Variables: The Uniform Distribution (Section 6.1) and The Normal Distribution (Section 6.2)

Physics 253 Fundamental Physics Mechanic, September 9, Lab #2 Plotting with Excel: The Air Slide

Applied Statistics I

Polls, such as this last example are known as sample surveys.

Permutations with short monotone subsequences

SMT 2014 Advanced Topics Test Solutions February 15, 2014

Chapter 4 MASK Encryption: Results with Image Analysis

Section The Multiplication Principle and Permutations

STATISTICAL COUNTING TECHNIQUES

Touch Probe Cycles itnc 530

Slicing a Puzzle and Finding the Hidden Pieces

Section 6.1 #16. Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Building Optimal Statistical Models with the Parabolic Equation Method

Touch Probe Cycles TNC 426 TNC 430

6.042/18.062J Mathematics for Computer Science December 17, 2008 Tom Leighton and Marten van Dijk. Final Exam

UNEQUAL POWER ALLOCATION FOR JPEG TRANSMISSION OVER MIMO SYSTEMS. Muhammad F. Sabir, Robert W. Heath Jr. and Alan C. Bovik

Achieving Desirable Gameplay Objectives by Niched Evolution of Game Parameters

COUNTING AND PROBABILITY

Mathematics. Pre-Leaving Certificate Examination, Paper 2 Ordinary Level Time: 2 hours, 30 minutes. 300 marks L.19 NAME SCHOOL TEACHER

Lecture 13: Physical Randomness and the Local Uniformity Principle

Data Collection in Population Protocols with Non-uniformly Random Scheduler

Simulations. 1 The Concept

Sequential Multi-Channel Access Game in Distributed Cognitive Radio Networks

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

Dice Games and Stochastic Dynamic Programming

Chapter 2 Direct-Sequence Systems

Random Sequences for Choosing Base States and Rotations in Quantum Cryptography

Lesson A7 - Counting Techniques and Permutations. Learning Goals:

On the Approximation of Pressure Loss Components in Air Conditioning Ducts

Lossy Compression of Permutations

EECS 16A: SPRING 2015 FINAL

Lecture 3. Direct Sequence Spread Spectrum Systems. COMM 907:Spread Spectrum Communications

Name: 1. Match the word with the definition (1 point each - no partial credit!)

Perception of room size and the ability of self localization in a virtual environment. Loudspeaker experiment

Theory of Probability - Brett Bernstein

Effect of Oyster Stocking Density and Floating Bag Mesh Size on Commercial Oyster Production

STReight Gambling game

Topics to be covered

Near Optimal Joint Channel and Power Allocation Algorithms in Multicell Networks

University of Pittsburgh

Part I: The Swap Puzzle

Skip Lists S 3 S 2 S 1. 2/6/2016 7:04 AM Skip Lists 1

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

TenMarks Curriculum Alignment Guide: EngageNY/Eureka Math, Grade 7

ibingo Game Conditions

Activity Sheet #1 Presentation #617, Annin/Aguayo,

Creating an Agent of Doom: A Visual Reinforcement Learning Approach

Random Card Shuffling

Diamond ( ) (Black coloured) (Black coloured) (Red coloured) ILLUSTRATIVE EXAMPLES

Variable Step-Size LMS Adaptive Filters for CDMA Multiuser Detection

COMP 2804 solutions Assignment 4

######################################################################

A study of digital clock usage in 7-point matches in backgammon

Combinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013

MSI: Anatomy (of integers and permutations)

#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION

SEPTEMBER VOL. 38, NO. 9 ELECTRONIC DEFENSE SIMULTANEOUS SIGNAL ERRORS IN WIDEBAND IFM RECEIVERS WIDE, WIDER, WIDEST SYNTHETIC APERTURE ANTENNAS

Name Class Date. Introducing Probability Distributions

Contents 1 Introduction Optical Character Recognition Systems Soft Computing Techniques for Optical Character Recognition Systems

Image Extraction using Image Mining Technique

CHAPTER 01 PRESENTATION OF TECHNICAL DRAWING. Prepared by: Sio Sreymean

Creating Nice 2D-Diagrams

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Game Mechanics Minesweeper is a game in which the player must correctly deduce the positions of

CSE 21 Practice Final Exam Winter 2016

Week 1: Probability models and counting

JIGSAW ACTIVITY, TASK # Make sure your answer in written in the correct order. Highest powers of x should come first, down to the lowest powers.

All Levels. Solving the Rubik s Cube

Fractional Sampling Improves Performance of UMTS Code Acquisition

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

What Limits the Reproductive Success of Migratory Birds? Warbler Data Analysis (50 pts.)

Shuffle Traveling of Humanoid Robots

Using a table: regular fine micro. red. green. The number of pens possible is the number of cells in the table: 3 2.

Connectivity in Social Networks

MITOCW MITRES6_012S18_L26-06_300k

Random permutations avoiding some patterns

Series and Parallel Resistors

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

IDMA Technology and Comparison survey of Interleavers

Analysis of structural effects formation in fancy yarn

Comprehensive scheme for subpixel variable block-size motion estimation

Prognostic Modeling for Electrical Treeing in Solid Insulation using Pulse Sequence Analysis

Permutation Patterns and RNA Secondary Structure Prediction

Transcription:

Mixing Business Cards in a Box I. Abstract... 2 II. Introduction... 2 III. Experiment... 2 1. Materials... 2 2. Mixing Procedure... 3 3. Data collection... 3 IV. Theory... 4 V. Statistics of the Data... 4 1. Staying together... 5 2. Distance moved... 5 3. Length of the longest increasing subsequence in the post-order.... 6 4. Staying in top half... 6 5. Final position of the top card... 7 6. Final position of the bottom card... 7 7. Kendall s Tau:... 8 8. Spearman correlation coefficient.... 8 VI. Analysis... 8 VII. Further Discussion... 9 VIII.Conclusion... 9 1

Mixing Business Cards in a Box Jiangzhen Yu Advisor: David Aldous I. Abstract How long does it take to physically mix cards in a box into a random permutation? II. Introduction Imagine you want to run a lottery with a number of names, and you do this by writing names business cards, putting them in a box, and then shaking it for a certain amount of time. Then reach in and draw out the cards. For fairness of the lottery, you hope that cards are now in a random order. In practice, however, depends on how many cards are there in total, it might need a really long time to mix all the cards. Therefore, we conduct some physical experiments to estimate how the number of shakes needed to mix grows with the number of cards. Throughout the following analysis, let: n := number of cards in the box; p(i) := the final position of the card that started at position i. III. Experiment 1. Materials i. Business card (89*51mm, coated paper) [Figure 1] ii. Cardboard box [Figure 2] Outside dimension (length width height): 310 235 242 mm. Inside dimension (length width height): 298 222 230 mm. 1 1 Therefore, theoretically, this box can fit around 9060 business cards. 2

Figure 1 Figure 2 2. Mixing Procedure i. Label the cards sequentially from 1 to n and put them in increasing order into the right bottom corner of the box. ii. Since the bottom of the box has dimension equals 310 * 235 mm, when shaking it, restrict to a rectangular area with each side equals to three times of the length corresponding side of the box (i.e. 930 * 705mm). iii. Move the box forward and back, from left to right and then rotate along the side of length equals 310 mm. The movement in each direction is repeated with a certain amount of times. iv. Gather all the cards together to the right bottom corner again by tilting up the left upper corner of the box and shake it against the table 10 times. 2 v. Draw the cards out of the box and record their post-orders. 3. Data collection i. Dataset 1: Take 100 cards (total height around 37 mm, total weight 300g), use the method suggested above, with 10, 20, 40, 60 times of shaking in each direction, and record the post-order of the cards. Repeat each experiment 10 times. ii. Dataset 2: Take 200 cards (total height around 74 mm, total weight 600g), use the 2 In this way, drawing the card out of the box is predetermined once the random shaking process has been done, leaving shaking procedure the box in step3 the random factor in the whole experiment. 3

method suggested above, with 20, 40, 60 3 times of shaking in each direction, and record the post-order of the cards. Repeat each experiment 10 times. IV. Theory This random mixing process could be modeled as a Markov process. Consider each permutation as a state in the Markov chain, then there are totally n! states in the state space. Since, theoretically, we can get from any state to any other state, the chain is irreducible. Therefore, all states are positive recurrent and there must exist a stationary distribution among the states. If the mixing process is unbiased, then the stationary distribution should be the uniform distribution, by which we would be able to conclude that the card would finally be in random order. As the number of cards increases from 100 to 200, there will be more states in the Markov process, so we would expect the time it takes for the distribution to converge to be longer. V. Statistics of the Data In order to assess whether a given permutation is random, we can evaluate the sequence from several aspects, including the number of consecutive pairs, the number of top-half cards that are still in the top-half, the correlation between starting position and final position, etc. The following 8 statistics is provided to see whether the stationary distribution is uniformly distributed. The expectation values are calculated based on uniform distribution. 3 Due to the time sake, 10 times shaking is skipped for n = 200. 4

n!1 1. Staying together: 1{p i + 1 = p i + 1} i!1 2. Distance moved: p(i) i n i!1 5

3. Length of the longest increasing subsequence in the post-order n/2 4. Staying in top half: 1{p i n/2} i!1 6

5. Final position of the top card: p(1) 6. Final position of the bottom card: p(n) 7

n i!1 n j!i!1 7. Kendall s Tau: 1{p i < p(j)} 8. Spearman correlation coefficient: The usual correlation applied to pairs (i, p(i)). VI. Analysis We can see from the previous plots that the distribution of the post-order do seem to converge to the expected uniform distribution. Some statistics, such as number of cards staying together, converge really quickly as time increases. The final position of 8

the top and bottom card is not a robust measure of the randomness of data and we can hardly see any pattern from those plots. It is not surprising as it involves only one data in each experiment and the number of experiment is limited. Another result could be seen from the plot is that the convergence rate to the stationary distribution decreases as the number of states increases, which confirm our prediction. It also makes sense physically as the number of cards doubles, the volume of the cards also doubles, so the space in the box for the cards to move randomly is reduced. In n = 100 case, when shaking time is 60, the distribution is already close to the uniform distribution, whereas more shakings are needed in n = 200 case to reach the stationary distribution. VII. Further Discussion Beside the number of cards and the shaking time, there are, of course, other factors, such as the size of the box or the texture of the card, could also determine whether the card would be in the random ordering. In practice, since these experiments are conducted by human beings, the settings of each experiment, including the velocity to move the box, the force being used to shake the box and the condition of the cards (whether they are brand new or have been worn out), are not exactly the same. VIII. Conclusion The mixing method provided in this experiment is likely to put cards in to a random order provided shaking times in each direction is large enough. Therefore, if we have 100 candidates for the lottery, following this mixing procedure with shaking times equals to 60 in each direction would put the cards close to a uniform distribution. If we have around 200 people in the lottery, then more shaking time is needed in order to make the lottery a fair game. 9