added functions to compute null significance and delta chi squared