Simulate dice/coin averages using TI-84 calculator?

  • Context: Undergrad 
  • Thread starter Thread starter moonman239
  • Start date Start date
  • Tags Tags
    Calculator Ti-84
Click For Summary
SUMMARY

This discussion focuses on simulating averages of six-sided dice rolls using a TI-84 calculator. A program is provided that generates a list of averages from 5000 samples of a specified size, utilizing the built-in random integer function. The code clears the home screen, prompts the user for sample size and number of samples, and calculates the mean for each sample, storing the results in List 1. The user intends to create a histogram to visualize these averages.

PREREQUISITES
  • Familiarity with TI-84 calculator programming
  • Understanding of random number generation using randInt function
  • Basic knowledge of statistical means and averages
  • Ability to create and interpret histograms
NEXT STEPS
  • Explore advanced TI-84 programming techniques for data visualization
  • Learn how to create histograms on the TI-84 calculator
  • Investigate statistical analysis methods for larger datasets
  • Study the implications of sample size on statistical accuracy
USEFUL FOR

Students, educators, and hobbyists interested in statistics, data analysis, and programming on the TI-84 calculator will benefit from this discussion.

moonman239
Messages
276
Reaction score
0
I want to create a histogram that shows the averages of 5000 samples of 500 dice each. How do I do this?
 
Physics news on Phys.org
Never mind that. I created a program that generates a list of averages for a six-sided dice. I will post the code as soon as the calculator's done running a simulation. Maybe I'll even post a shot of the histogram (which is not in the program.)

Feel free to do whatever you want with the code.
 
As promised, here is the code I used to simulate the means of samples of 6-sided dice.

:ClrHome
:Output(1,1,"HI")
:Input "SIZE",S
:Input "SAMPLENUM",N
:For(I,1,N)
:mean(randInt(1,6,S)) -> L1(I)
:Disp(N-1)
:End

For you non-coders, this program will first clear the home screen of basically whatever you were looking at before you hit the "PRGM" button. Then it will say "Hi." Then it will ask for the sample size. Then it will ask for the number of samples. Then it will take one sample, calculate the mean, then store the mean in the first row of list 1. Then it will take another sample, calculate the average, then store the mean in the next row of list 1. It will keep taking samples, calculating the means, and storing the means in list 1 until it has taken as many samples as you wanted it to take.
 

Similar threads

Replies
4
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
6K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
22K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K