Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5493
| From | Jonas <coroa@online.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: average of the consecutive coin tosses |
| Date | 2011-10-07 09:01 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j6mf5v$7i9$1@smc.vnet.net> (permalink) |
| References | <j6jobf$lv7$1@smc.vnet.net> |
On Thu, Oct 06 2011, michael partensky wrote:
> tr = (flips = 1; (#/flips++) & /@ Accumulate[Table[toss, {1000}]]) // N);
>
Accumulate[RandomInteger[{0,1}, 1000]]/Range[1000] // N
should do the trick.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
average of the consecutive coin tosses michael partensky <partensky@gmail.com> - 2011-10-06 08:19 +0000 Re: average of the consecutive coin tosses Jonas <coroa@online.de> - 2011-10-07 09:01 +0000 Re: average of the consecutive coin tosses Peter Pein <petsie@dordos.net> - 2011-10-07 09:10 +0000 Re: average of the consecutive coin tosses Peter Pein <petsie@dordos.net> - 2011-10-07 09:11 +0000 Re: average of the consecutive coin tosses "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-08 18:49 +0000
csiph-web