View Single Post
  #2  
Old 04-30-2012, 11:48 PM
MadBlaster MadBlaster is offline
Approved Member
 
Join Date: Oct 2010
Posts: 666
Default

Quote:
Originally Posted by WTE_Galway View Post
Actually you are both wrong.

For example, given a set of real numbers {1,2,3 ... 10000}

The string 123 occurs 11 times {123, 1123, 1230, 2123, 3123, 4123, 5123, 6123, 7123, 8123, 9123} as does the string 223 {223, 1223, 2223, 2230, 3223, 4223, 5223, 6223, 7223, 8223, 9223}.

Thus the probability is 1:1000 for 1000 real numbers but 11:10,000 for 10,000 real numbers.

The probability changes with sample size, getting larger as the set of reals being sampled gets larger.

You need to work out probabilities for a population rather than a sample.

You can of course manipulate the sample size to get aberrant results. For example the set of reals {1,2,3 ... 1200} has two elements containing the string 123 and only one element containing the string 223. This results from ad hoc manipulation of set size to get the results you want.

We should leave that sort of non-scientific ad hoc data manipulation to conspiracy theorists and climate change deniers
Correction. Your set {1,2,3 ... 10000} is actually a finite subset of Natural Numbers. Moreover, your subset excludes zero, but your derivations include zero??? Keep drinking the Kool-Aid son of Al Gore. Btw, it has recently been reported that the manpig got a D in the natural sciences class!

edit:
Well, I'll cut some slack about the zero. But raaaids function a= Math.GetRandomNumber(10) does it generate 0-9 or 1-10? I'm assuming 0-9.

Last edited by MadBlaster; 05-01-2012 at 12:01 AM.
Reply With Quote