title: How to solve for roots given a summation of a function of an unknown and a variable?[Scipy][Root-finding]
body: <p>I am trying to solve for the following equation, however, there is very little documentation on the SciPy reference guide so I am not sure how to go about doing it. </p>
  
  <p>I have an array of 10 uniform random variables, let's call it X.</p>
  
  <p>I have the following function which takes a parameter theta and a uniform RV from the X's and returns their product raised to the power of e:</p>
  
  <pre><code>def f(x_i, theta):
  
      return math.exp(x * theta)
  </code></pre>
  
  <p>I am trying to find theta such that this equation holds: </p>
  
  <p><a href="https://i.stack.imgur.com/tiK04.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tiK04.png" alt="enter image description here"></a></p>
  
  <p>ok you can move the 20 to the other side of the equation so that it is 0, but still I am not sure how to optimize for this quantity given the summation? </p>
  
  <p>Any help would be appreciated! Thank you.</p>