changed calculations to be meaningful without variance set (assuming usual Bayesian statistics)
Merge branch 'chi_squared'
renamed variable dict -> dic, so as not to confuse with type "dict"
merged again, now need to fix chi-squared "format" (image/spectrum/signal)