title: How to take the average value of respective elements in arrays
body: <p>I have a chunk of code that runs 1000 times and produces 1000 covariance matrices. How do I calculate the average value for each element in the matrices and then print that average matrix?</p>
  
  <pre><code>params_avg1=[]
  pcov1avg=[]
  i=1000
  for n in range(i):
      y3=y2+np.random.normal(loc=0.0,scale=.1*y2)
      popt1,pcov1=optimize.curve_fit(fluxmeasureMW,bands,y3)
      params_avg1.append(popt1)
      pcov1avg.append(pcov1) #returns an array of 1000 3x3 covariance matrices
  </code></pre>