MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Statistical Analysis & Pattern Matching


data = Table[Random[Integer, {1, 6}], {1000}];
Sort[{#, Count[data, #]} & /@ Union[data], #2[[2]] < #1[[2]] &]
{{1, 177}, {4, 173}, {6, 170}, {5, 166}, {3, 158}, {2, 156}}

This dice throw simulation favoured 1 before 2 with ratio of 177
against 156,
or did it?


  • Prev by Date: Re: Map-like behaviour for functions of more than a single argument?
  • Next by Date: question about Split[...]
  • Previous by thread: Statistical Analysis & Pattern Matching
  • Next by thread: Re: Statistical Analysis & Pattern Matching