| Basic Commands |
Probability Puzzles |
Hypothesis Test, Count Data |
Hypothesis Test, Measured Data |
Confidence Interval, Count Data |
Confidence Interval, Measured Data |
Association / Correlation |
Regression |
Other Examples |
Shuffling Hats
Ex. 5-6 from Simon resampling text: What are the chances of hats being shuffled and then re-paired with original owner?
6 hats, 6 owners.
NUMBERS 1,6 a
The hats
NUMBERS 1,6 b
The owners
REPEAT 1000
SHUFFLE b c
shuffle the hats
SUBTRACT a c d
COUNT d =0 e
A 0 indicates the hat went with its original owner
SCORE e z
END
HISTOGRAM z
The x-axis indicates the number of hats that went back to their owners.