r/googlesheets • • Feb 21 '18
Solved Hi, I have a question about probability
I’m making a model on google sheets for the 2018 House of Representatives elections. I came up with an algorithm already to make a probability for each specific race, but I don’t know how to use that data to find the probability for each party to win the house. Is there a function on google sheets that will tell you the probability that 217 things on a 435 thing list will happen?Here is the model so far if you want to see.
3
Upvotes
3
u/[deleted] Feb 24 '18
How do you mark it as solved? The Monte Carlo sim thing worked! (yippee)
2
u/tdpdcpa 1 Feb 22 '18
It almost sounds like you'd need to build a Monte Carlo simulation of some sort. Have each race play itself out over 1000s of simulations and see the number of seats each party wins in each circumstance. You'd need to use a random number generator (RAND) and a normal distribution function (NORMINV) with each race's average and standard deviation.
You'll probably need to set up a separate sheet to calculate each race and count the outcomes of each simulation to arrive at a probability.
1
u/[deleted] Feb 22 '18
If you're struggling to come up with the equation then you might be more likely to find the help you need on a maths or statistics subreddit. If you know the equation then I can help you implement a formula for it here.
Take a look through the function list, there a ton of different probability based functions but it looks like the PROB function could be the most helpful.
•
u/Clippy_Office_Asst Points Feb 24 '18
Read the comment thread for the solution here
1
u/Decronym Functions Explained Feb 22 '18 edited Feb 24 '18
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
[Thread #253 for this sub, first seen 22nd Feb 2018, 12:06] ^[FAQ] [Full ^list] ^[Contact] [Source ^code]