In [ ]:
import numpy as np

In [6]:
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format = 'svg'

In [2]:
dout = np.array(range(1,20))

In [5]:
dout


Out[5]:
array([ 1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17,
       18, 19])

In [ ]:
(1-ps)**dout

In [9]:
def probIndependent(ps, dout):
    p0 = (1-ps)**dout
    p0
    lmb = ((1-ps)/ps)*(1-p0)(dout-(1-p0))

In [10]:
probIndependent(0.1, dout)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-10-ab90c29de901> in <module>()
----> 1 probIndependent(0.1, dout)

<ipython-input-9-b81f89793b13> in probIndependent(ps, dout)
      2     p0 = (1-ps)**dout
      3     p0
----> 4     lmb = ((1-ps)/ps)*(1-p0)(dout-(1-p0))

TypeError: 'numpy.ndarray' object is not callable

In [ ]: