>>82
http://www.alglib.net/specialfunctions/distributions/chisquare.php
本は Numerical Recipes in C(++) とか。

>>83
相関係数の定義に必要なのは分散・共分散だけ。