title: How to find correlation between two integer arrays in java
body: <p>I am searching a lot but could not find exactly what i need till now.
  I have two integer arrayas <code>int[] x</code> and <code>int[] y</code>. I want to find simple <em>linear correlation</em> between these two integer arrays and it should return the result as <code>double</code>. In java do you know any library function providing this or any code snippet?</p>