Re: How to simulate random samples from crooked coin toss?

*To*: mathgroup at smc.vnet.net*Subject*: [mg58541] Re: How to simulate random samples from crooked coin toss?*From*: Bill Rowe <readnewsciv at earthlink.net>*Date*: Wed, 6 Jul 2005 03:11:26 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

On 7/5/05 at 1:57 AM, dbikle at gmail.com (DAN BIKLE) wrote: >I want to simulate 100 tosses of a crooked coin where probability >of Heads is 0.6 and Tails is 0.4. The most straight forward way to do this would be to use the BinomialDistribution function in the Statistics`DiscreteDistributions` package. As follows: <<Statistics` Random[BinomialDistribution[100,0.6]] which returns the number of heads that might occur with 100 tosses of a coin with a 0.6 probability of heads. Or if you didn't want to use the add on packages Count[#>0.4&/@Table[Random[],{100}], True] will accomplish the same thing -- To reply via email subtract one hundred and four