with exercises in GPower
April 03, 2024
Feedback
Help us improve this document
wilfried.cools@vub.be
at SQUARE
Ask us for help
we offer consultancy
on methodology, statistics and its communication
square.research.vub.be
If not possible in a meaningful way
use alternative justification
Avoid retrospective power analyses
→ OK for future study only
Hoenig, J., & Heisey, D. (2001). The Abuse of Power:
The Pervasive Fallacy of Power Calculations for Data Analysis. The American Statistician, 55, 19–24.
Note
?
)2
)4
).05
, so \(Z_{ \alpha /2}\) → -1.96).2
, so \(Z_ \beta\) → -0.84)
\(n = \frac{(Z_{\alpha/2}+Z_\beta)^2 * 2 * \sigma^2}{ \Delta^2} = \frac{(-1.96-0.84)^2 * 2 * 4^2}{2^2} = 62.79\)
GPower
reference
reference
~ reference example input
Determine =>
0-2
| / 4
= .5
.05
; two-tailed .8
1
(equally sized groups)
~ reference example output
128
)qt(.975,126)
Ha
(true) away from Ho
(null) 2/(4*sqrt(2))*sqrt(64)
Ha
from Ho
effect size
((standardized) signal)sample size
(information)Ho
and Ha
: bigger ncp less overlap
Ho
→ shift (location/shape)Ho
evaluated on Ha
push
with sample sizeHa
acts as \(\color{blue}{truth}\) assumed difference of e.g. .5 SD
Ha ~ t(ncp=2.828,df)
Ho
acts as \(\color{red}{benchmark}\): typically no difference, no relation
Ho ~ t(ncp=0,df)
using \(\alpha\)
\(n = \frac{(Z_{\alpha/2}+Z_\beta)^2 * 2 * \sigma^2}{d^2}\)
Inference (test) based on cut-off’s (density → AUC=1)
Type I error: incorrectly reject Ho
(false positive):
Ho
, error prob. \(\alpha\) controlledType II error: incorrectly fail to reject Ho
(false negative):
Ho
, error prob. \(\beta\) obtained from Ha
Ha
assumed known in a power analysespower = 1 - \(\beta\) = probability correct rejection (true positive)
infer=Ha | infer=Ho | sum | |
truth=Ho | \(\alpha\) | 1- \(\alpha\) | 1 |
truth=Ha | 1- \(\beta\) | \(\beta\) | 1 |
X-Y plot for range of values
~ reference example
Plot power instead of sample size
What is relation type I and II error ?
What would be difference between curves for \(\alpha\) = 0 ?
Ho
, known
Estimate / guestimate of minimal magnitude of interest
Typically standardized: signal to noise ratio
Part of non-centrality (as is sample size) → pushing away Ha
~ Practical relevance
d-family
(differences) and r-family
(associations)
Cohen, J. (1992).
A power primer. Psychological Bulletin, 112, 155–159.
Cohen, J. (1988).
Statistical power analysis for the behavioral sciences (2nd ed).
Famous Cohen conventions