Testing random

Jussi Piitulainen jpiitula at ling.helsinki.fi
Sun Jun 7 15:08:46 EDT 2015


Thomas 'PointedEars' Lahn writes:
> Chris Angelico wrote:
>
>> Huh. Do you want to explain how, mathematically, I am wrong, or do
>> you want to join the RUE in my ignore list?
>
> I already did; you have overlooked it.  In a nutshell, the probability
> of
>
>   1 1 1 1 1 1 1 1 1 1 1

There is one way to get those numbers in some order.

(11! / 11! = 1)

> is *the same* as that of
>
>   1 2 3 4 5 6 7 8 9 1 2

There are almost ten million ways to get those numbers in some order.

(11! / 2! / 2! = 9979200)

> and the same as that of
>
>   8 3 6 3 1 2 6 8 2 1 6.

There are more than four hundred thousand ways to get those numbers in
some order.

(11! / 2! / 2! / 2! / 3! / 2! = 415800)



More information about the Python-list mailing list