power
Notes are primarily taken from the textbook Mathematical Statistics and Data Analysis by John Rice 3rd edition
Definition
The power of a test is the probability of rejecting the null hypothesis when it is false.
Case of two-sample t test and using normal distribution approximation
For a two-sample t test, power depends on
The real difference △=∣μx−μy∣
Population standard deviation σ
Suppose that σ,α,△ are all given and both samples are size n, then we can get the varaince of mean difference as
Var(Xˉ−Yˉ)=σ2(n1+n1)=n2σ2 The two tailed test at level αis now based on the standard normal (approximating t with normal distribution):
Z=σ2/nXˉ−Yˉ So the rejection region is ∣Z∣>z(α/2) or Xˉ−Yˉ>z(α/2)σ2/n
The power of this test is the probability that the test statistics falls in the rejection region under null hypothesis, which is :
P(σ2/nXˉ−Yˉ>z(α/2))=P(Xˉ−Yˉ>z(α/2)σ2/n)=P(Xˉ−Yˉ>z(α/2)σ2/n)+P(Xˉ−Yˉ<−z(α/2)σ2/n)=P(σ2/n(Xˉ−Yˉ)−△>σ2/nz(α/2)σ2/n−△)+P(Xˉ−Yˉ<−z(α/2)σ2/n)=1−Φ(z(α/2)−σ△n/2)+P(Xˉ−Yˉ<−z(α/2)σ2/n)=1−Φ(z(α/2)−σ△n/2)+Φ(−z(α/2)−σ△n/2) Last updated