Math Question

Started by SacDuc, December 21, 2010, 12:59:11 PM

Previous topic - Next topic

SacDuc



I suck at math so please pardon if I have my terminology all messed up.

Let's say you have an event that you believe is a 99:1 shot. How many independent trials would you have to run to be 95% sure that there is actually a 1% chance of this event happening?

Is there a formula where you could plug in odds of something happening (e.g. - 3:1 or 25%) the percentage of accuracy you need to confirm those odds to (presuming you only get perfect accuracy with an infinite number of trials) and get the number of trials you need to run.

Let me know if I need to clarify.

Thanks.

sac
HATERS GONNA HATE.

derby

well, technically, you could run the same 99:1 trial 100 times and get the same result every time.

-- derby

'07 Suz GSX-R750

Retired rides: '05 Duc Monster S4R, '99 Yam YZF-R1, '98 Hon CBR600F3, '97 Suz GSX-R750, '96 Hon CBR600F3, '94 Hon CBR600F2, '91 Hon Hawk GT, '91 Yam YSR-50, '87 Yam YSR-50

click here for info about my avatar

il d00d

I am not a math nerd, but remembering back to my statistic class probability always assumes an infinite number of "tries" -  if the probability of something happening is 10:1, in infinite amount of tries, this should be the actual outcome.  If you flipped a coin 10 times you might come up heads seven times, tails three, but the head to tail ratio would change the more you flipped the coin.  So, are you asking how many times, given a probability, you would have to try something to have the outcome come within 95% of the probability?  If so, I think that is a standard deviation problem, and I will be damned if I can remember how to do those.

SacDuc

Quote from: derby on December 21, 2010, 01:07:35 PM
well, technically, you could run the same 99:1 trial 100 times and get the same result every time.




Yes you could. But if you did run 100 trials of a 99:1 shot, how accurate are the results? That's the question.


sac
HATERS GONNA HATE.

Monster Dave

#4
Your question:

Quote from: Sắc Dục on December 21, 2010, 12:59:11 PM

I suck at math so please pardon if I have my terminology all messed up.

Let's say you have an event that you believe is a 99:1 shot. How many independent trials would you have to run to be 95% sure that there is actually a 1% chance of this event happening?

Is there a formula where you could plug in odds of something happening (e.g. - 3:1 or 25%) the percentage of accuracy you need to confirm those odds to (presuming you only get perfect accuracy with an infinite number of trials) and get the number of trials you need to run.

Let me know if I need to clarify.

Thanks.

sac

What I read:

I suck at math so please pardon if I have my terminology all messed up.

Let's say you have an event that you believe is a 99:1 shot. How many blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

blah blah blah blah blah blah blah

Thanks.








[laugh]

Explanation:

I saw "math" and the start of a word problem......


......my brain just shut down.  [laugh]

SacDuc

Quote from: il d00d on December 21, 2010, 01:11:38 PM
I am not a math nerd, but remembering back to my statistic class probability always assumes an infinite number of "tries" -  if the probability of something happening is 10:1, in infinite amount of tries, this should be the actual outcome.  If you flipped a coin 10 times you might come up heads seven times, tails three, but the head to tail ratio would change the more you flipped the coin.  So, are you asking how many times, given a probability, you would have to try something to have the outcome come within 95% of the probability?  If so, I think that is a standard deviation problem, and I will be damned if I can remember how to do those.


This is exactly what I am asking. It is indeed a standard deviation problem. Which is something I know make the beast with two backs all about.

sac
HATERS GONNA HATE.

zooom

THE ANSWER IS 42




nuff said...
99 Cagiva Gran Canyon-"FOR SALE", PM for details.
98 Monster 900(trackpregnant dog-soon to be made my Fiancee's upgrade streetbike)
2010 KTM 990 SM-T

SacDuc

HATERS GONNA HATE.

akmnstr

As you have written your question you really cannot come up with an answer.  However if you were to change it slightly and say you would like to 99% certain of the outcome + or - 1% (or any amount you choose) then you could do a trial, use the outcome of that trial to do a power analysis (it would take to long to explain) and then you would have an estimate with an upper and lower limit.  

On the other hand, you might need to take a stats class.  
"you may all go to hell, and I will go to Texas!!" Davey Crockett & AKmnstr

"An American monkey, after getting drunk on brandy, would never touch it again, and thus is much wiser than most men."
Charles Darwin

"I don't know what people expect when they meet me. They seem to be afraid that I'm going to piss in the potted palm and slap them on the ass." Marlon Brando

Rameses


The 95% certainty that you're referring to is known as the confidence level.

You're talking about a data set with an infinite population, since there is no finite limit to how many times the test can be repeated.

In order to calculate your sample size, you need one more parameter.  Confidence interval.

Confidence interval is a margin of error on your 1% chance.  Because there isn't a finite data set, you can never be 95% sure that the chance of the expected result is 1%.  You can only be 95% sure that the expected result is between 0% and 2% (which would be a confidence interval of 2%).

I think I remembered all of that right.  It's been a long time.


SacDuc

Quote from: akmnstr on December 21, 2010, 01:36:51 PM
As you have written your question you really cannot come up with an answer.  However if you were to change it slightly and say you would like to 99% certain of the outcome + or - 1% (or any amount you choose) then you could do a trial, use the outcome of that trial to do a power analysis (it would take to long to explain) and then you would have an estimate with an upper and lower limit.  

On the other hand, you might need to take a stats class.  


But I don't want to take a stats class. I build houses for a living. I have no practical use for this knowledge. This is just the shit I think about when I'm awake at 3am. And no, I wasn't high.

Is this a valid question:

I ran 100,000 trials and 90,000 came up x and 10,000 came up y. How sure can I be that the ratio of x to y is actually 9:1?

Show you work.


sac
HATERS GONNA HATE.

SacDuc

Quote from: Rameses on December 21, 2010, 01:42:44 PM
The 95% certainty that you're referring to is known as the confidence level.

You're talking about a data set with an infinite population, since there is no finite limit to how many times the test can be repeated.

In order to calculate your sample size, you need one more parameter.  Confidence interval.

Confidence interval is a margin of error on your 1% chance.  Because there isn't a finite data set, you can never be 95% sure that the chance of the expected result is 1%.  You can only be 95% sure that the expected result is between 0% and 2% (which would be a confidence interval of 2%).

I think I remembered all of that right.  It's been a long time.



Okay. So how do you calculate how many trials it takes to get to a 95% confidence level?

sac
HATERS GONNA HATE.

akmnstr

I forgot to mention.  Don't forget about Type 1 and Type 2 error.  










just messing with ya
"you may all go to hell, and I will go to Texas!!" Davey Crockett & AKmnstr

"An American monkey, after getting drunk on brandy, would never touch it again, and thus is much wiser than most men."
Charles Darwin

"I don't know what people expect when they meet me. They seem to be afraid that I'm going to piss in the potted palm and slap them on the ass." Marlon Brando

Monster Dave


akmnstr

#14
Quote from: Sắc Dục on December 21, 2010, 01:47:21 PM

But I don't want to take a stats class. I build houses for a living. I have no practical use for this knowledge. This is just the shit I think about when I'm awake at 3am. And no, I wasn't high.

Is this a valid question:

I ran 100,000 trials and 90,000 came up x and 10,000 came up y. How sure can I be that the ratio of x to y is actually 9:1?

Show you work.



sac

From what you did you can be certain that the ratio of your sample is 9:1.  If you took 10,000 samples of 10 each you could then average them and calculate a confidence interval around that average and that could be used to describe the population that you are taking your samples from.  
"you may all go to hell, and I will go to Texas!!" Davey Crockett & AKmnstr

"An American monkey, after getting drunk on brandy, would never touch it again, and thus is much wiser than most men."
Charles Darwin

"I don't know what people expect when they meet me. They seem to be afraid that I'm going to piss in the potted palm and slap them on the ass." Marlon Brando