title: How to do clustering using the matrix of correlation coefficients?
body: <p>I have a correlation coefficient matrix (n*n). How to do clustering using the correlation coefficient matrix?</p>
  
  <p>Can I use linkage and fcluster function in SciPy?</p>
  
  <p>Linkage function needs <code>n * m</code> matrix (according to tutorial), but I want to use n*n matrix.</p>
  
  <p>My code is</p>
  
  <pre><code>corre = mp_N.corr()    # mp_N is raw data (m*n matrix)  
  Z = linkage(corre, method='average')  # 'corre' is correlation coefficient matrix
  fcluster(Z,2,'distance')
  </code></pre>
  
  <p>Is this code right?
  If this code is wrong, how can I do clustering with correlation coefficient matrix?</p>