DCeppos/EloquentJavaScript — pull request #4 by DCeppos (2014-12-04 19:42:23+00:00)
Title: SquirrelMatrixCorrellation

These functions scan through properties in JOURNAL objects, to first build a matrix then find a correllation coefficient between events strings and the squirrel boolean. The construction of the matrix 'Table' is in the following form:

[ no event found, squirrel false ; event found, squirrel false ; no event found, squirrel true ; event found, squirrel true]

the phi function calculates the correllation coefficient between a given event and the squirrel boolean