title: Use numba to speed up for loop
body: <p>From what I've read, numba can significantly speed up a python program. Could my program's time efficiency be increased using numba?</p>
  
  <pre><code>import numpy as np
  
  def f_big(A, k, std_A, std_k, mean_A=10, mean_k=0.2, hh=100):
      return ( 1 / (std_A * std_k * 2 * np.pi) ) * A * (hh/50) ** k * np.exp( -1*(k - mean_k)**2 / (2 * std_k **2 ) - (A - mean_A)**2 / (2 * std_A**2))
  
  outer_sum = 0
  dk = 0.000001
  for k in np.arange(dk,0.4, dk):
      inner_sum = 0
      for A in np.arange(dk, 20, dk):
          inner_sum += dk * f_big(A, k, 1e-5, 1e-5)
      outer_sum += inner_sum * dk
  
  print outer_sum
  </code></pre>