![](/img/trans.png)
[英]The distribution of p-values is not uniform when applying t-test to random coin flips from Python's random.randint(0,1)
理論上,p 值在 null 假設下均勻分布。 因此,當我使用 Python 的random.randint(0,1)將其應用於一些隨機硬幣翻轉模擬時,我希望 G 檢驗或卡方檢驗的 p 值能夠檢驗相等的比例以提供均勻分布的 p 值,這應該是無偏隨機硬幣,即伯努利 (0.5)。 同樣,如果 n*p 足夠 ...