- Introduced by
- Rand R. Wilcox and colleagues
- Year
- 1990s–2000s
- Type
- Power and sample-size planning
- Family
- Classical statistics
What does it do?
Robust power analysis calculates the statistical power or the required sample size for hypothesis tests that rely on robust estimators, such as trimmed means and Winsorized variances, instead of the ordinary mean and standard deviation.
It is intended for planned analyses in which outliers, heavy tails or skewness are expected, because classical power formulas assume normality and a clean variance estimate.
The intuition behind the method
Classical power formulas assume normal data and use the ordinary sample variance. A few extreme observations can inflate that variance enough to hide a real difference, and heavy tails can make the t distribution a poor reference. Robust power analysis uses the same kinds of estimators that the planned test will use, namely trimmed means for location and Winsorized or MAD-based variances for spread, so the calculated power refers to the test you will actually run. The trade-off is that these estimators are less efficient than the mean when the data are in fact normal.
History
Robust methods for hypothesis testing, including trimmed-mean tests, were developed over several decades, and Rand R. Wilcox has been a leading contributor to their practical use; his book Introduction to Robust Estimation and Hypothesis Testing is a standard reference. Power and sample-size planning for such tests has been addressed in the literature, for example in approximate sample-size formulas for the two-sample trimmed-mean test with unequal variances by Luh and Guo (2010). The exact origin and date of robust power analysis as a distinct method are not firmly established, and the details of the cited formulas should be checked against the original publications before use.
When to use it
Choose robust power analysis when the planned analysis is a robust test, such as a trimmed-mean, rank-based or bootstrap procedure, or when pilot data, prior studies or knowledge of the measurement process suggest heavy tails, skewness or frequent outliers. It matters most in small to moderate samples, where a single extreme value can strongly change a classical variance estimate. Do not use it when the outcome is clearly normal and free of contamination, because classical formulas are simpler and more efficient in that case. Do not use it before the robust test is fixed, since the power formula is specific to the test and its estimator.
Limitations and considerations
- The trim proportion or robust estimator must be fixed before data collection, which requires prior knowledge of the outcome distribution.
- Closed-form power formulas are available only for some robust tests; for others, power must be estimated by simulation, which requires specifying the data-generating distribution and any contamination model.
- Under normality, robust estimators are less efficient than the mean, so the planned sample size may be somewhat larger than a classical plan would require.
- Reviewers may be less familiar with the approach and may ask for justification of the estimator and the trim proportion.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The power calculation uses the same estimators as the planned analysis, so the sample-size result and the test are consistent with each other.
- When outliers or heavy tails are expected, it avoids the variance inflation that can make a real difference appear undetectable under a classical calculation.
- It can be applied to trimmed-mean tests, rank-based tests and bootstrap procedures, although the method of calculation differs between them.
- Where no closed-form expression exists, simulation can estimate power for the exact test being planned.
Applications
- Planning a two-group trial in which the primary outcome is a skewed biomarker with occasional extreme assay values, and a trimmed-mean test is the intended analysis.
- Planning a study with Likert-type outcomes where a rank-based robust test is intended, and the power formula is chosen to match that test.
- Designing an education study in which test scores cluster near a floor or ceiling, so that a trimmed-mean analysis is planned.
- Setting the sample size for a manufacturing comparison in which measurement errors occasionally produce extreme values.
- Planning an environmental monitoring comparison in which sporadic extreme pollutant readings are expected.
How it works
How it works
Define the target effect as the difference between the trimmed population means, divided by a robust scale such as a Winsorized standard deviation. The trim proportion chosen here determines the estimator, so the same proportion must be used in the power calculation and in the planned analysis. A 20% trim is a common convention rather than a property of the data, and the choice should be justified before data collection. Use only one scale: either work with the raw trimmed-mean difference and a separate variance, or with the standardised difference, but not both.
Formula
\delta = \frac{\mu_{t,1} - \mu_{t,2}}{\sigma_w}Choose the robust test that will be applied, for example Yuen's two-sample test on trimmed means, a Wilcoxon-based rank test or a bootstrap t-test. Each procedure has its own power behaviour, so the planned test and the power calculation must refer to the same procedure. Rank-based tests do not use a trim proportion, so trimmed-mean formulas do not apply to them directly. State the assumptions of the calculation, such as independent observations, equal or unequal group variances, and planned group sizes.
Replace the ordinary sample variance with a Winsorized or median absolute deviation (MAD) based estimate. These estimates limit the influence of extreme observations on the spread, so the variance used in the calculation is less sensitive to a few contaminated values. The variance estimate should be of the same type as the one the chosen test uses, and its value should come from pilot data, prior studies or an assumed distribution.
Formula
\hat{\sigma}_{\text{robust}}^2 = \text{Winsorized or trimmed variance estimate}Power is the probability that the chosen robust test rejects H0 under the specified alternative, sample size, trim proportion and significance level; for a two-sided test the rejection region has both tails. It depends on the distribution of the test statistic under the alternative, which for robust tests is generally not an exact noncentral t. Where a good approximation exists for the planned test, it can be used. Otherwise estimate power by simulation: specify the data-generating distribution and any contamination proportion, fix the trim level and effect, generate many datasets (for example several thousand), apply the planned test to each, and record the proportion of rejections. R software such as the WRS2 package implements the robust tests themselves and can be used inside such a simulation.
Formula
1 - \beta = P\!\left(T > t_{\alpha,\nu} \mid \delta \neq 0\right)Find the smallest n that reaches the target power, commonly 0.80 or 0.90. The familiar closed-form expression (z_{α/2}+z_β)² σ² / Δ² is a normal-theory approximation for a mean difference and does not account for trimming or the effective sample size after trimming, so it should serve at most as a rough starting value. For trimmed-mean tests, use a sample-size formula designed for that test or, preferably, search over n by simulation with the exact planned procedure. Robust estimators are somewhat less efficient than the mean when the data are normal, so the required n may be modestly larger than a classical calculation for the same effect. If the data are non-normal, a classical calculation can understate the required n, which is the more serious error this approach guards against.
Formula
n = \left\lceil \frac{(z_{\alpha/2} + z_{\beta})^2 \sigma_{\text{robust}}^2}{\delta^2} \right\rceilCommon pitfalls
- Using a power calculation for a trimmed-mean test and then analysing the data with a standard t-test, or the reverse.
- Carrying a power result over to a different trim proportion or contamination pattern without recalculating it.
- Omitting the trim proportion, contamination model, significance level or software version from the protocol, which makes the calculation hard to reproduce.
- Treating the robust calculation as a replacement for inspecting the data: it plans for non-normality but does not show whether the assumed contamination is actually present.
Frequently asked questions
How is robust power analysis different from classical power analysis?
Classical power analysis uses the mean and standard deviation as location and scale parameters and assumes normality. Robust power analysis uses trimmed means and Winsorized variances, which match the estimators used in the planned robust test, and so gives a more accurate power estimate when data are non-normal or contaminated.
Do I need to choose a trim proportion before running the study?
Yes. The trim proportion sets both the robust estimator and the power formula, so it should be fixed before data collection and reported in the protocol. The 20% value mentioned on this page is a common convention; whether it suits a given study depends on the expected contamination, and the choice should be justified rather than assumed.
Can I perform robust power analysis by simulation?
Yes. For many robust tests, simulation is the practical route. You specify the assumed data distribution, including any contamination, the trim proportion and the effect size, simulate many datasets, and record the proportion that reject H0. The WRS2 package in R, named on this page, provides tools for this.
Will I need a larger sample size than with a classical approach?
Under true normality, the sample may need to be somewhat larger, because robust estimators are less efficient than the mean in that case. When data are non-normal, a classical calculation can understate the required sample size, leading to an underpowered study, which is the more serious risk.
What if I am unsure whether my data will be non-normal?
If prior data or subject-matter knowledge suggest that heavy tails or outliers are plausible, a robust calculation is the safer choice. The usual cost is a somewhat larger planned sample; the risk avoided is an underpowered study.
Related methods
Sources
Luh, W.-M., & Guo, J.-H. (2010). Approximate sample size formulas for the two-sample trimmed mean test with unequal variances. British Journal of Mathematical and Statistical Psychology, 63(1), 83–100.
Open publication referenceWilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.
ISBN: 978-0123869838