eradiate.test_tools.regression.SidakTTest¶
- class eradiate.test_tools.regression.SidakTTest(name, value, reference=None, *, variable='brf_srf', threshold, archive_dir, plot)[source]¶
Bases:
RegressionTestT-Test with Šidák correction factor¶
Implement a T-test, testing the significance of paired differences between a set of observations and a set of references. It considers both the observations and reference variance.
Paired tests are aggregated into one p-value using a Šidák correction. The test passes if the null hypothesis is accepted for at least 99.75% of the paired T-tests
- Parameters:
name (
str) – Test case name.value (
xarray.Dataset) – Simulation result. Must be specified as a dataset.reference (
xarray.Datasetor path-like, optional, default:None) – Reference data. Can be specified as an xarray dataset, a path to a NetCDF file or a path to a resource.variable (
str, default:brf_srf) – Tested variablethreshold (
float) – Test metric thresholdarchive_dir (path-like) – Path to output artefact storage directory. Relative paths are interpreted with respect to the current working directory.
plot (
bool) – Enable pyplot charts
- Fields:
name (
str) – Test case name.value (
xarray.Dataset) – Simulation result.reference (
xarray.DatasetorNone) – Reference data.variable (
str) – Tested variable.threshold (
float) – Test metric threshold.archive_dir (
pathlib.Path) – Path to output artefact storage directory.plot (
bool) – Enable pyplot charts.