private double sumSquaredDiffs ( ) { double mean = getArithmeticMean ( ) ; double squaredDiffs = 0 ; for ( int i = 0 ; i < getSize ( ) ; i ++ ) { double diff = mean - dataSet [ i ] ; squaredDiffs += ( diff * diff ) ; } return squaredDiffs ; }
Helper method for variance calculations .