Some questions on pow and random

Mark Dickinson dickinsm at gmail.com
Sun Mar 27 07:36:24 EDT 2011


On Mar 27, 11:07 am, joy99 <subhakolkata1... at gmail.com> wrote:

> (b) Suppose we have two distributions p(x1) and p(x2), of the Model M,
> the E of EM algorithm, without going into much technical details is,
> P0(x1,x2), P1(x1,x2) ....
>
> Now I am taking random.random() to generate both x1 and x2 and trying
> to multiply them, is it fine? Or should I take anything else?

Sorry, it's unclear to me what you're asking here.  Can you rephrase
this as a question about Python's random.random() function?

If you're asking whether it's okay to regard your generated x1 and x2
as independent, then the answer is yes.

--
Mark




More information about the Python-list mailing list