So I was learning statistics and when I do 1-Var Stats in the 83+ Series I can't seem to get the most repeated value in a sequence.

We call it "moda" in my language, which means "fashion", so not sure if you have a special name.

So I thought of making a TI-Basic program for it, but I have no idea of how to get the number of elements in a list nor how to do the thing actually.

I really have *no idea* of how to code it, do you guys have any idea?

How it'd look:


Code:

WHAT LIST?
1
THE MOST REPEATED VALUE IS 10


An example of L1 here would be:


Code:

10
10
9
8
7
9
10


Thanks a lot!
In English we call that mode. Weregoose has a mode calculator on his site:
http://weregoose.unitedti.org/#ModeCalculator
His is a pretty optimized version, and there are a few ways to go about it.

Quote:
I have no idea of how to get the number of elements in a list

That can be done with the dim( command.

Hope this helps.
Ah, mode I see thanks a lot, also thanks for the dim command and for weregoose's link.

Really helpful merth Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement