Post Hoc Power Calculator

Calculate Your Study's Post Hoc Power

Use this tool to calculate the observed statistical power of your completed study based on the effect size, sample size, and significance level you used.

Select the type of statistical test performed in your study.
Enter Cohen's d (e.g., 0.5 for medium effect). Effect size must be a positive number.
The significance level (e.g., 0.05 for 5%). Alpha level must be between 0.001 and 0.5.
Total number of participants/observations across all groups. Sample size must be at least 4.

Calculation Results

Post Hoc Power: --%
Degrees of Freedom (df): --
Non-centrality Parameter (NCP): --
Critical Z-value: --
Formula Explanation: This calculator uses an approximation for the independent samples t-test. Power is estimated by determining the probability of observing an effect size at least as large as the critical value, assuming the observed effect size is the true effect. This involves calculating degrees of freedom, a non-centrality parameter, and a critical Z-value, then using the standard normal cumulative distribution function.

What is Post Hoc Power Calculation?

Post hoc power calculation, also known as observed power, is the process of calculating the statistical power of a study *after* the data has been collected and analyzed. Unlike a priori power analysis, which is performed before a study to determine the necessary sample size, post hoc power uses the observed effect size from the completed study to estimate power.

The statistical power of a test is the probability that it will correctly reject a false null hypothesis. In simpler terms, it's the likelihood of finding a statistically significant result when a real effect truly exists. A common target for power is 0.80 (80%).

Who Should Use Post Hoc Power Calculation?

Common Misunderstandings

A major misunderstanding is that high post hoc power "proves" a non-significant result is truly a null effect, or that low post hoc power automatically invalidates a study. This is often incorrect. Post hoc power is highly correlated with the p-value: a significant result will almost always have high observed power, and a non-significant result will almost always have low observed power. This makes its interpretation controversial. It's best used to understand the sensitivity of a study, not to re-interpret p-values.

Post Hoc Power Calculation Formula and Explanation

While various statistical tests have specific power formulas, the general principle for post hoc power calculation involves three key components: the observed effect size, the alpha level (significance level), and the sample size. For simplicity, our calculator primarily uses the approximation for an independent samples t-test, which is a common scenario.

The core idea is to determine the probability of detecting an effect of the observed magnitude, given the study's parameters. This involves calculating a non-centrality parameter (NCP), which quantifies how "shifted" the alternative hypothesis distribution is from the null hypothesis distribution, and comparing it to a critical value from the null distribution.

Variables Used in Post Hoc Power Calculation

Key Variables for Post Hoc Power Calculation
Variable Meaning Unit Typical Range
Power Probability of correctly detecting a true effect (rejecting a false null hypothesis) Percentage (%) 0 - 100% (often aims for ≥80%)
Observed Effect Size The magnitude of the effect observed in your study. Specific measure depends on the test (e.g., Cohen's d for t-tests, f for ANOVA, r for correlation, Cramer's V for Chi-Square). Unitless Varies greatly (e.g., Cohen's d: 0.2 small, 0.5 medium, 0.8 large)
Alpha Level (α) The significance level; the probability of making a Type I error (falsely rejecting a true null hypothesis). Decimal or Percentage (%) 0.01 - 0.10 (most common 0.05)
Total Sample Size (N) The total number of participants or observations in your study. Count Minimum 4 (for t-test) to thousands
Degrees of Freedom (df) The number of independent pieces of information used to estimate a parameter. Varies by test and sample size. Count Varies
Non-centrality Parameter (NCP) A measure of the expected effect size in the population, adjusted by sample size. Crucial for power calculations. Unitless Varies

Practical Examples

Let's illustrate how post hoc power calculation works with a couple of realistic scenarios using the Independent Samples T-Test approximation.

Example 1: A Study with a Medium Effect and Adequate Sample Size

In this example, the study had a good chance (nearly 80%) of detecting an effect of the observed magnitude, given the sample size and alpha level. This suggests that if a true effect of d=0.5 exists, a similar study would likely find it significant.

Example 2: A Study with a Small Effect and Limited Sample Size

Here, the post hoc power calculation reveals a very low power (15.3%). This indicates that even if a true small effect (d=0.2) existed, this study had a low probability of detecting it as statistically significant due to its limited sample size. A non-significant result in this scenario would be highly inconclusive regarding the presence or absence of a small effect.

How to Use This Post Hoc Power Calculator

Our post hoc power calculator is designed for ease of use, providing quick estimations for your research.

  1. Select Statistical Test Type: Choose the type of statistical test you performed. While the underlying calculation in this tool is an approximation for an Independent Samples T-Test, selecting the correct test type will dynamically update the helper text to guide you on the appropriate effect size measure (e.g., Cohen's d for t-test, f for ANOVA).
  2. Enter Observed Effect Size: Input the effect size observed in your study. This is crucial for post hoc power calculation. Refer to the helper text for the typical effect size measure for your chosen test. Ensure it's a positive value.
  3. Set Alpha Level (α): Enter your chosen significance level, typically 0.05.
  4. Input Total Sample Size (N): Provide the total number of participants or observations across all groups in your study.
  5. Enter Number of Groups (k): If you selected ANOVA or Chi-Square, an input field for the number of groups will appear. Enter the count of independent groups.
  6. Click "Calculate Power": The calculator will instantly display the post hoc power and intermediate values.
  7. Interpret Results: The primary result is the "Post Hoc Power" expressed as a percentage. Intermediate values like Degrees of Freedom, Non-centrality Parameter, and Critical Z-value provide further insight into the calculation.
  8. Copy Results: Use the "Copy Results" button to quickly save all calculated values and input parameters for your records.

Remember, this calculator provides an approximation. For highly precise power analyses, especially for complex designs or distributions not covered here, specialized statistical software is recommended.

Key Factors That Affect Post Hoc Power

Understanding the factors that influence post hoc power calculation is critical for interpreting your results and designing future studies. These factors determine the sensitivity of your statistical test.

Frequently Asked Questions (FAQ) about Post Hoc Power Calculation

Q1: Is post hoc power calculation controversial?

A: Yes, it is. Many statisticians argue against its routine use, especially to interpret non-significant results. This is because observed power is largely a re-expression of the p-value; a non-significant result will almost always yield low post hoc power, and a significant result will yield high post hoc power. It doesn't add new information to the p-value itself.

Q2: What is the difference between a priori and post hoc power analysis?

A: A priori power analysis is performed *before* a study to determine the necessary sample size to detect an effect of a specified size with a given power and alpha level. Post hoc power calculation is done *after* a study using the observed effect size and sample size to estimate the power achieved.

Q3: What is considered a "good" power level?

A: Traditionally, a power level of 0.80 (80%) is considered acceptable, meaning there's an 80% chance of detecting a true effect if it exists. However, the ideal power level can depend on the field of study, the cost of Type I vs. Type II errors, and the magnitude of the effect being sought.

Q4: Can I use post hoc power to justify non-significant results?

A: No. Using low post hoc power to explain away a non-significant result (e.g., "the effect wasn't significant, but our power was low") is generally considered circular reasoning and poor statistical practice. A non-significant result means the data are consistent with the null hypothesis, regardless of observed power.

Q5: How does the observed effect size relate to post hoc power?

A: There's a strong positive relationship. A larger observed effect size will always lead to higher post hoc power, assuming other factors like sample size and alpha level remain constant. This is because a stronger effect is easier to detect.

Q6: What if my observed effect size is very small, leading to low post hoc power?

A: A very small observed effect size, especially combined with a moderate sample size, will naturally result in low post hoc power. This suggests that your study might not have been adequately powered to detect such a small effect, or that the true effect is indeed very small or non-existent. It highlights the importance of considering effect sizes in addition to p-values.

Q7: What are the limitations of this calculator's post hoc power calculation?

A: This calculator uses approximations, primarily based on the independent samples t-test framework for simplicity due to the "no external libraries" constraint. While it provides a good estimate and illustrates the principles, it may not be as precise as specialized statistical software for all test types or complex designs. For specific tests like ANOVA or Chi-square, the provided effect size (Cohen's f, Cramer's V) will be used within the t-test approximation, which serves to illustrate the impact of effect size, but is not a true non-central F or Chi-square distribution calculation.

Q8: How does total sample size affect post hoc power?

A: All else being equal, increasing the total sample size will increase post hoc power. A larger sample provides more information, reduces the sampling error, and makes it easier to detect a true effect if one exists.

Power vs. Sample Size Chart

This chart illustrates how post hoc power (in percent) changes with increasing total sample size for two different observed effect sizes (Cohen's d) at an Alpha Level of 0.05. A larger sample size generally leads to higher power.