Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in.
Post a replyTopic review (newest first)
Hi;
Hi Bobby,
Hi phrontister;
Hi Bobby, Code:In[1]:= Timing[sum = 0; c = 0; s = Table[0, {1000}];
N[While[c < 100000, t = 199; ss = s;
Do[ss[[RandomInteger[{1, 1000}]]] = 1, {t}]
While[Count[ss, 1] < 200, ss[[RandomInteger[{1, 1000}]]] = 1;t++];
sum = sum + t; c++]; sum/c]]
Out[1]= {270.985, 223.00152}So, again, just a touch > 223.
Hi phrontister;
Hi phrontister
Hi Bobby and stefy,
To get the sd we would have to run the simulation many times and use the formula. But by inspection you can see the dispersion is going to be small.
Oh. Okay.
I do not know. But looking at the data the values are very close.
How small?
Yes, it is quite small.
Standard deviation?
Yes, it looks fine to me. The sd is very small on this problem.
Did you see the edited post 19? |