Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 8:52 pm, Mark Dickinson wrote: > On Mar 27, 3:00 pm, joy99 wrote: > > > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > > are writing in Python as, > > variable1=2 > > variable2=3 > > result=pow(variable1,variable2) > > > In my first problem p(x) a list of floa

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 3:00 pm, joy99 wrote: > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > are writing in Python as, > variable1=2 > variable2=3 > result=pow(variable1,variable2) > > In my first problem p(x) a list of float/decimals and f(x) is another > such. > Here, > variable1=

Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 4:36 pm, Mark Dickinson wrote: > On Mar 27, 11:07 am, joy99 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() t

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 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 the

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 wrote: > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L(f;p)=Ðp(x)f(x) > > My question is python provides two functions, > (a)     pow for power. > (b)     reduce(

Re: Some questions on pow and random

2011-03-27 Thread Jason Swails
2011/3/27 joy99 > Dear Group, > > I have two questions one related to pow() and other is related to > random. > My questions are as below: > > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L