(12C Platinum) Statistical significance calculator
|
04-13-2023, 10:06 AM
(This post was last modified: 04-18-2023 01:40 PM by Tritonio.)
Post: #1
|
|||
|
|||
(12C Platinum) Statistical significance calculator
I translated a program that I had made for a few Casios (https://community.casiocalc.org/topic/81...-3650p-ii/) to the Platinum.
Register 1 is the total number of experiments. Register 2 is the probability of an experiment randomly succeeding. Register 3 is the number if experiments that succeeded. Running it with the above will tell you the your confidence that the number of successful experiments is irregular and not explained just by luck. Putting a zero on register 3 will instead find how many experiments would need to succeed so that you could be at least 99% sure that it's not by luck. Code: 001 RCL 3 It's my first program on the Platinum so it can probably be improved a lot. I can think of two improvements that I didn't have time to do. First, there is a big overlap between the case where register 3 was zero and the case where it wasn't. A good chunk of the code is the same so it could probably be reused and instead keep a flag that has the initial value of register 3 to decide what to do after we go out of the big shared code chunk. If you see the program in the Casio forum you'll notice that the long formula exists almost identical in two places. That that shared code I'm talking about. Second, I'm calculating combinations using n!. That means that the program won't support more than 69 total experiments (register 1) as the n! will overflow for that number. But if you expand the combinations formula and actually calculate the fraction with loops you can go MUCH higher than that without overflowing. But that would need much more code. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C Platinum) Statistical significance calculator - Tritonio - 04-13-2023 10:06 AM
RE: (12C Platinum) Statistical significance calculator - Tritonio - 05-10-2023, 11:00 PM
|
User(s) browsing this thread: 2 Guest(s)