Texas United States
Member #200,551
August 28, 2019
177 Posts
Offline
In Megamillions there are 70 numbers in the main lotto pool (not counting the Megaball). 5 numbers are drawn from this pool in each game. Consider 50 random game draws. What is the probability that at least one number (ball) will (a) never occur in the 50 draws, and (b) occur in at least 10 game draws?
Texas United States
Member #200,551
August 28, 2019
177 Posts
Offline
Here are the probabilities for question (a), at least one ball does not occur in multiple game draws. "N" is the number of game draws. For 50 draws the probability is 84.01%. As you can see, the probability distribution has a long tail, and is thus very right-skewed.
us
Member #226,805
November 8, 2022
1,741 Posts
Offline
The mathematics and reasoning used to arrive at the answer is more interesting to me than just the answer.
What IDE do you use for Python? Though I mostly analyze in Matlab, I dabble in Python to help verify analysis of the NZ whistleblower data in regards to excess deaths and Covid shots. For Python, the IDE I currently use is VSCode with the Python, PyLance, and Git extensions.
Texas United States
Member #200,551
August 28, 2019
177 Posts
Offline
Quote: Originally posted by Wavepack on Dec 6, 2023
The mathematics and reasoning used to arrive at the answer is more interesting to me than just the answer.
What IDE do you use for Python? Though I mostly analyze in Matlab, I dabble in Python to help verify analysis of the NZ whistleblower data in regards to excess deaths and Covid shots. For Python, the IDE I currently use is VSCode with the Python, PyLance, and Git extensions.
I usually use VScode, but I have Anaconda installed, so all the pursuant data science packages with Anaconda (e.g. Numpy, Scipy, Pandas, etc.) are available by import. I also have a few packages that are not available with conda install, so I use PIP instead.
For this particular problem I did not code a Python app, rather I just used an Excel spreadsheet. Certainly you could write a Python app if you want.
Here's the algorithm for calculating the probability for problem (a). I put problem (b) out there, but I'm finding it's much harder to solve.
Philadelphia, PA United States
Member #153,765
March 24, 2014
12,489 Posts
Offline
Frequency, you mean pattern. According to someone I know of , this person knows someone else that has won over $5 million and knows which numbers in the pattern that will hit.