I’ve done a lot more in my Stats class now. Here are some more of my programs.
The first program is an expected value program (Named “Probs”). I found it super tedious to write a big, long equation for this, so while the code is relatively simple, it has helped me out a lot.
From up to 5 separate values/probabilities, you can find the expected value and standard deviation.
The second program is a Geometric CDF program (Named “GeomCDF”). This program is a little more complicated, but it allows you to:
1. Find the total probability of an event occuring at least once in a set of trials, given its single probability and the number of trials.
2. Find the minimum trials required for an event to occur with a specific probability (ex. what is the minimum amount of dice rolls I need to complete to have a six come up at least once, 50% of the time?)
