統計量あってるのにp値小さすぎて棄却されてる!
という事件が発生して調べてみるとalternative : None (deprecated), ‘less’, ‘two-sided’, or ‘greater’ということでp-valueは2倍する必要があるようです。 では実装を見ましょう。Whether to get the p-value for the one-sided hypothesis (‘less’ or ‘greater’) or for the two-sided hypothesis (‘two-sided’). Defaults to None, which results in a p-value half the size of the ‘two-sided’ p-value and a different U statistic. The default behavior is not the same as using ‘less’ or ‘greater’: it only exists for backward compatibility and is deprecated.
statistic < critical value
となれば![Rendered by QuickLaTeX.com H_0](https://research.miidas.jp/wp-content/ql-cache/quicklatex.com-a4fc152da9c0802275c766010d183a54_l3.png)