Skip to content
Prev 351534 / 398500 Next

Combining multiple probability weights for the sample() function.

On 6/3/2015 11:26 AM, Boris Steipe wrote:
Ben,

If I correctly understand your requirements, you can't do what you are 
asking.  If you only have the eight possibilities that you list, then to 
get letters 1 and two to match 50% of the time you must select row 1 
with probability=.25 and row 5 with probability=.25.  To have the first 
and third letters match 50% of the time you must select rows 2 and 4 
each with probability=.25.  Those probabilities sum to 1, so you can 
never select any of the other rows.

Am I missing something?

Dan