esmtools.testing.ttest_ind_from_stats¶
-
esmtools.testing.
ttest_ind_from_stats
(mean1, std1, nobs1, mean2, std2, nobs2, equal_var=True)[source]¶ Parallelize scipy.stats.ttest_ind_from_stats and make dask-compatible.
Parameters: - mean2 (mean1,) – The means of samples 1 and 2.
- std2 (std1,) – The standard deviations of samples 1 and 2.
- nobs2 (nobs1,) – The number of observations for samples 1 and 2.
- equal_var (bool, optional) – If True (default), perform a standard independent 2 sample test that assumes equal population variances. If False, perform Welch’s t-test, which does not assume equal population variance.
Returns: The calculated t-statistics. pvalue (float or array): The two-tailed p-value.
Return type: statistic (float or array)