Re: [R] Offtopic, HT vs. HH in coin flips

2009-09-01 Thread Ted Harding
On 31-Aug-09 19:16:33, Erik Iverson wrote: > Dear R-help, > Could someone please try to explain this paradox to me? What is > more likely to show up first in a string of coin tosses, "Heads > then Tails", or "Heads then Heads"? > >##generate 2500 strings of random coin flips > ht <- replicate(2

Re: [R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread David M Smith
O Software Inc - Spotfire Division > wdunlap tibco.com > > > -Original Message- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Iverson > > Sent: Monday, August 31, 2009 1:35 PM > > To: Erik Iverson; r-help@r-pr

Re: [R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread William Dunlap
ivision wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Iverson > Sent: Monday, August 31, 2009 1:35 PM > To: Erik Iverson; r-help@r-project.org > Subject: Re: [R] Offtopic, HT vs. HH in

Re: [R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread Erik Iverson
http://www.mit.edu/~emin/writings/coinGame.html Best, Erik -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Iverson Sent: Monday, August 31, 2009 2:17 PM To: r-help@r-project.org Subject: [R] Offtopic, HT vs. HH in coin fl

Re: [R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread David Winsemius
Case starting with H: Pr= 0.5 H first H second Subcase 1a: Pr= 0.5 * 0.5 = 0.25 H first T second... leads to TH evenually Subcase 1b: Pr = 0.5 * 0.5 = 0.25 === Case T first: Pr = 0.5 all subcases lead to TH first -- David. On Aug 31, 2009, at 3:16 PM, Erik Iverson wrot

Re: [R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread Greg Snow
-help-boun...@r- > project.org] On Behalf Of Erik Iverson > Sent: Monday, August 31, 2009 1:17 PM > To: r-help@r-project.org > Subject: [R] Offtopic, HT vs. HH in coin flips > > Dear R-help, > > Could someone please try to explain this paradox to me? What is more > likely to show u

[R] Offtopic, HT vs. HH in coin flips

2009-08-31 Thread Erik Iverson
Dear R-help, Could someone please try to explain this paradox to me? What is more likely to show up first in a string of coin tosses, "Heads then Tails", or "Heads then Heads"? ##generate 2500 strings of random coin flips ht <- replicate(2500, paste(sample(c("H", "T"), 100, r