fairlens.metrics.resampling_p_value#
- resampling_p_value(t_obs, t_distribution, alternative='two-sided')[source]#
Compute a p-value using a resampled test statistic distribution.
- Parameters
t_obs (float) – Observed value of the test statistic.
t_distribution (pd.Series) – Samples of test statistic distribution under the null hypothesis.
alternative (str, optional) – Indicates the alternative hypothesis. One of “two-sided”, “greater”, “less”. Defaults to “two-sided”.
- Returns
The p-value under the null hypothesis.
- Return type
float