Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #26 20120730 06:16:11
Re: An expectation problem:Yes, it is quite small. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #27 20120730 06:17:39
Re: An expectation problem:How small? The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #28 20120730 06:20:33
Re: An expectation problem:I do not know. But looking at the data the values are very close. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #29 20120730 06:24:25
Re: An expectation problem:Oh. Okay. The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #30 20120730 06:26:22
Re: An expectation problem: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. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #31 20120730 16:56:21
Re: An expectation problem:Hi Bobby and stefy, "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do."  Ted Nelson #32 20120730 17:52:40
Re: An expectation problem:Hi phrontister The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #33 20120730 21:11:39
Re: An expectation problem:Hi phrontister; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #34 20120730 23:44:11
Re: An expectation problem: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. Last edited by phrontister (20120804 18:23:22) "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do."  Ted Nelson #35 20120731 01:39:48
Re: An expectation problem:Hi phrontister; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #36 20120731 01:48:34
Re: An expectation problem:Hi Bobby, "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do."  Ted Nelson #37 20120731 01:55:30
Re: An expectation problem:Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #38 20130902 23:04:06
Re: An expectation problem:J: Code:sim =: monad define cnt =: 0 a =: y$0 while. (+/a) < 200 do. a =: 1 (?y)} a cnt =: cnt + 1 end. return. cnt ) (+/%#) (sim "0) 1000$1000 NB. (sim&+) also works ≈ 223.024 "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #39 20130902 23:11:25
Re: An expectation problem:Hi gAr; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #40 20130902 23:58:45
Re: An expectation problem:Hi bobbym, Code:(6!:2) '%. (+/%#) (sim "0) 10000$1000' NB. gets the running time "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #41 20130903 00:27:07
Re: An expectation problem:Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #42 20130903 00:34:51
Re: An expectation problem:What's the time taken by the mathematica code? "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #43 20130903 00:59:47
Re: An expectation problem:Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #44 20130903 01:10:47
Re: An expectation problem:That's okay, he has mentioned his time for simulation. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #45 20130903 01:16:10
Re: An expectation problem:His code will do about 30 seconds but it is procedural and does not make use of the faster functional paradigm. Also it is not compiled. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #46 20130903 01:19:27
Re: An expectation problem:That's right. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #47 20131209 03:41:39
Re: An expectation problem:Loopless J code, about 30x faster: Code:sim =: 3 : '1+{.I.200=+/\~:?1000#1000' (+/%#)(sim "0) 100000#0 "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." 