| 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 |
Matching Birthdays
What are the odds that two or more persons in a group of 25 people will have a birthday on the same day?
REPEAT 1000
GENERATE 30 1,365 A
generate 30 "birthdays", each represented by a number from 1-365
MULTIPLES A >= 2 J
how many duplicates, triplicates, quadruplicates, etc.?
SCORE J Z
keep score
END
COUNT Z >= 1 K
how often were one or more birthdays replicated?
DIVIDE K 1000 KK
PRINT Z KK
HISTOGRAM Z