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(2500,

[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, replace =

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

2009-08-31 Thread Greg Snow
] 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 up first in a string of coin tosses, Heads then Tails

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

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

2009-08-31 Thread Erik Iverson
] 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 flips 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

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

2009-08-31 Thread William Dunlap
-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 coin flips Part of my issue was that I

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

2009-08-31 Thread David M Smith
: 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 coin flips Part of my issue was that I was not answering my original