AlphadiTab - Tool overview

Separation sharpness

Power indicates the probability with which a statistical test detects an actually existing effect.

It is used to assess whether the existing data base is sufficient to reliably detect relevant differences, variances, or changes in rates.

Unlike the classical hypothesis test, power does not focus on the decision between the alternative hypothesis and the null hypothesis, but rather on how powerful the test is under the given assumptions:

  • high power → a relevant effect is detected with high probability
  • low power → an existing effect may remain undetected despite investigation

Important: When calculating power, data summarized in AlphadiTab is entered. Therefore, raw data is not required, but metrics such as sample size, mean, standard deviation, or number of events.

In product development, a new tomato sauce formulation is being tested. The goal is to determine whether the viscosity of the new formulation differs on average from the previous formulation.

For this purpose, viscosity measurements are conducted on samples of the old formulation and the new formulation.

Using the t-test (2 samples), it was checked whether the observed difference in means is statistically significant or can be explained by random variation.

The calculated p-value is significantly above the significance level of 0.05, so the null hypothesis is retained. Based on this test, no significant difference between the average viscosity of the old and new formulation is found. With the calculation of the power, we now want to assess how reliably an actual difference can be detected.

For this, we need to determine which difference in mean viscosity we want to detect. The key is which difference is practically relevant. In this example, a difference in means of 0.5 MPa is to be detected. This difference corresponds to the effect. We can take the sample size and standard deviation from the conducted test. The standard deviation was rounded to 5.5; the less favorable of the two standard deviations is used here.

Interpretation of the results:

The power is 0.059. This corresponds to a β-error of 94.1%. Under these conditions, the test cannot reliably detect an actual difference of 0.5 MPa. From the power curve, it is evident that an effect of about 5 MPa can be detected with this test with approximately 80% power. The β-error would then be about 20%.

Explanations of the graphic:

  • The curve shows the power for different effects (differences)
  • The point represents the current input.

The following are the considerations and steps necessary to calculate the power for various statistical tests.

Preparation

  1. Select the appropriate test (e.g., t-test, F-test, test of proportions, or ANOVA).
  2. Determine which difference, variance ratio, or change in proportions is practically relevant.
  3. Set the significance level (usually α = 0.05).
  4. Determine the desired power or beta error.
  5. Determine the direction of the hypothesis (two-sided, greater, or less), if the method supports this choice.

AlphadiTab Usage in AlphadiTab

  1. In the Analyze Phase, select the Power tool.
  2. Select the appropriate type of test, e.g., t-test, F-test, test of proportions, or ANOVA.
  3. Enter the summarized metrics into the input fields.
  4. Conduct the analysis by “Create New”.

Interpretation

  1. Check if the calculated power is sufficiently high.
  2. In practice, 80% or 90% power is often used as a guideline.
  3. If the power is low, check whether a larger sample size or a more focused study design is necessary.

Important: Power is not a retrospective confirmation of a p-value. It describes how likely a test is to detect an assumed effect under the chosen inputs.

Test types

  • t-Test: Sensitivity for comparing means.
  • F-Test: Sensitivity for comparing variances or dispersions.
  • Test of proportions: Sensitivity for comparing ratios or binary events.
  • ANOVA: Sensitivity for comparing means from two or more groups.
  • Test on variances: Sensitivity for comparing variances or dispersions for two or more samples, optionally non-parametric.
Direction (Type of hypothesis)

In hypothesis tests with 2 samples, the direction for the alternative hypothesis can be selected.

Direction: Two-sided

Choose two-sided if a difference is to be detected without specifying a particular direction.

  • This setting is useful when both higher and lower values would be relevant.

Example:

Is the average delivery time different between two processes?

Direction: Greater

Choose greater if an effect is only relevant in the direction of higher values.

  • This setting is useful, for example, if it is to be tested whether a success rate increases.

Example:

Is the sales rate higher with a new sales approach than before?

Direction: Smaller

Choose smaller if an effect is only relevant in the direction of lower values.

  • This setting is useful, for example, if it is to be tested whether a processing time or defect rate decreases.

Example:

Is the average processing time after an optimization lower than before?

Appropriate Test Type
The discrimination can only be meaningfully calculated if the test type matches the question.
Why is this important? The required inputs and interpretation differ depending on the test type.
When the precision of an existing study is not to be evaluated, but the required sample size is to be planned
When raw data is to be analyzed and a p-value is to be calculated
t-test, F-test, test of proportions, or ANOVA

Filling quantity tomato sauce – Machine A vs. Machine B

In production, several filling machines are used. It should be assessed whether the available data is sufficient to reliably detect a difference between Machine A and Machine B.

t-Test:

Differences in means: Is the power sufficient to detect a difference of 5 ml in the average filling quantity?

Interpretation

For the t-test, the power shows the probability with which a difference in the average filling quantity is detected. The power is 1.000. Thus, the test can detect the assumed difference with very high probability under the chosen inputs. The β-error is correspondingly close to 0%.

 

F-Test:

Differences in variances: Is the power sufficient to detect a doubling of the variance of the filling quantity?

Interpretation

For the F-test, the power shows the probability with which a difference in variance is detected. The power is 0.91389. A doubling of the standard deviation can thus be detected with approximately 91.4% power. The β-error is approximately 8.6%.

Response time of the IT helpdesk vs. location ANOVA

In the IT service desk, tickets are processed at multiple locations. Response times are regularly evaluated to identify differences in service quality.

In the example of IT tickets, data from three locations is available. The sensitivity is used to assess whether a difference of 5 minutes in response time would be detected with the ANOVA.

Interpretation of the results

The test setup is suitable for detecting a difference of 5 minutes with three levels and a standard deviation of 4. The sensitivity is sufficiently high; the β-error is correspondingly low.

Test of Proportions - Loss Rate by Sales Approach

In sales, two sales approaches are compared. It should be assessed whether the existing offer numbers are sufficient to reliably detect a relevant change in the loss rate. The test of proportions showed that the sales methods do not differ significantly.

Now, using the power calculation, it should be determined whether a change from 35% to 30% would be detected.

Interpretation

The power indicates the probability with which the test detects a relevant change in the loss rate. The power is low at 0.11703. This corresponds to a β-error of approximately 88.3%. The fact that no significant difference could be detected with the test of proportions may be due to the fact that too few offers were evaluated.

Delivery time after logistics center

In the logistics department, customer orders are picked and shipped. To increase efficiency, new forklifts have been introduced.

It should be investigated whether an improvement in delivery time by 1 day can be detected with a one-tailed t-test. The variation in delivery time is estimated at 2.5 days. 30 measurements are to be taken.

Interpretation

The power is 81.775%. Thus, a difference of 1 day can be detected with approximately 81.8% power. The β error is approximately 18.2%. A power of at least 80% is often used as a guideline. Nevertheless, it should be determined in advance what minimum power should be achieved.

Supplier Comparison

In purchasing, components are sourced from multiple suppliers. It should be assessed whether the existing tests are sufficient to detect a 1.5-fold difference in the standard deviation between suppliers. There are 50 data sets per supplier.

Interpretation

The sensitivity helps to assess whether the existing number of deliveries is sufficient to reliably detect relevant supplier differences. With low sensitivity, the β-error would be high; an actually existing difference could then remain undetected.

Forecast deviation

In production planning, demand forecasts are created for different planning periods. To assess the quality of the forecast, the forecast deviation is calculated.

It should be assessed whether the existing sample is sufficient to detect differences between short-term and long-term planning horizons with a t-test. A difference of 2% should be detected. The standard deviation is known from previous analyses and is 0.9%. For each horizon, 10 forecasts should be created and compared.

Interpretation

With the t-test, a difference of 2% can be reliably detected if the standard deviation is 0.9%. The power is 99.68%. The β error is therefore approximately 0.32%.

Discriminatory Power / Power: Probability with which a test detects an actually existing effect.

Effect: Practically relevant difference, e.g., mean difference, variance ratio, or change in odds.

n = Sample size: Number of observations, parts, offers, or trials within a group.

α = Significance level: Preset probability of error with which the null hypothesis is incorrectly rejected.

β = Type II error: Probability of not detecting an actually existing effect.

Power = 1 - β: Counter-probability to Type II error.

x̄ = Sample mean: Average value of the collected measurement data.

s = Sample standard deviation: Measure of the dispersion of the data around the mean.

p̂ = Sample proportion: Proportion of events in a sample; calculated as events / number of trials.

Event: The case of interest in a proportion analysis, e.g., leaking, lost, on time, or passed.

Factor: Categorical influencing variable in ANOVA, e.g., logistics center, supplier, or formulation.

Groups / Levels: Manifestations of the factor, e.g., Center A, Center B, and Center C.

Two-sided: It is checked whether a difference can be detected in both directions.

Greater: It is checked whether an effect can be detected in the direction of greater values.

Smaller: It is checked whether an effect can be detected in the direction of smaller values.

The following formulas describe the calculation logic of the discrimination power used in the tool. The required distribution and quantile functions are not implemented manually but are evaluated using the statistical libraries CenterSpace NMath and – as specified – Numerics.NET.

Basic Principle

The discrimination power, also called power, describes the probability that a statistical test will detect an actually existing effect.

Power = 1 − β
Notation
α = Significance level, i.e., the probability of a Type I error
β = Type II error, i.e., the probability of not detecting an actually existing effect
Power = Probability of detecting the assumed effect with the test

A high discrimination power means that an existing effect is detected with high probability. A low discrimination power means that the β error is correspondingly larger.

t-Test for Two Samples

In the t-test for two samples, the probability of detecting an assumed difference between two means is calculated. The tool assumes equally sized samples.

Δ = μ1 − μ2

The non-centrality parameter is:

λ = (Δ·√(n/2)) / σ

The degrees of freedom are:

v = 2n − 2
Notation
Δ = Assumed difference of means
n = Sample size per group
σ = Assumed common standard deviation
v = Degrees of freedom
λ = Non-centrality parameter

For the calculation, quantiles of the central t-distribution and the distribution function of the non-central t-distribution are used. These functions are evaluated using CenterSpace NMath. Ft,v,λ(x) denotes the distribution function of the non-central t-distribution.

H₁: μ1 > μ2
Power = 1 − Ft,v,λ(t1−α,v)
One-sided: greater
H₁: μ1 < μ2
Power = Ft,v,λ(tα,v)
One-sided: smaller
H₁: μ1 ≠ μ2
Power = Ft,v,λ(tα/2,v) + 1 − Ft,v,λ(t1−α/2,v)
Two-sided

F-Test for Two Variances

In the F-test, the discrimination power for an assumed difference between the variances of two groups is determined. The tool uses the ratio of standard deviations as input:

ρ = σ1 / σ2

For the calculation, the ratio of variances is formed:

ρ² = σ1² / σ2²

For equally sized samples, the following degrees of freedom apply:

k1 = n − 1     k2 = n − 1
Notation
ρ = Ratio of standard deviations
n = Sample size per group
k₁, k₂ = Degrees of freedom of the F-distribution

The required quantiles and distribution functions of the F-distribution are evaluated using CenterSpace NMath. Fk1,k2(x) denotes the distribution function of the F-distribution.

H₁: σ1/σ2 > 1
Power = 1 − Fk1,k2 (F1−α,k1,k2 / ρ²)
One-sided: greater
H₁: σ1/σ2 < 1
Power = Fk1,k2 (Fα,k1,k2 / ρ²)
One-sided: smaller
H₁: σ1/σ2 ≠ 1
Power = Fk1,k2 (Fα/2,k1,k2 / ρ²) + 1 − Fk1,k2 (F1−α/2,k1,k2 / ρ²)
Two-sided

Levene's Test for Two Variances

For the power calculation of Levene's test, the tool uses an approximation based on the ratio of standard deviations.

ρ = σ1 / σ2

The degrees of freedom of the used t-distribution are:

d = n1 + n2 − 2

The critical t-value is determined using the quantile function of the t-distribution:

tkrit = t1−α/2,d

Additionally, the calculation uses the following auxiliary quantities:

θ = √((ρ² + n₁/n₂) / (n₁·ρ²/n₂ + 1))

c = √(π/2 − 1)

SE = c·√(ρ²/n₁ + 1/n₂)

From this, the two z-values are determined:

z₁ = tkrit/θ − (ρ−1)/SE

z₂ = −tkrit/θ − (ρ−1)/SE

The power is then determined using the standard normal distribution. The t- and normal distribution functions are evaluated using CenterSpace NMath.

Power = 1 − Φ(z₁) + Φ(z₂)
Notation
Φ = Distribution function of the standard normal distribution
ρ = Ratio of standard deviations
n₁, n₂ = Sample sizes
SE = Standard error of the approximation

Test of Proportions for Two Samples

In the test of proportions, the probability of detecting an actual difference between two proportions is calculated.

p₁ = Comparison proportion     p₂ = Base proportion

The difference in proportions is:

d = p₁ − p₂

The common proportion for the calculation under the null hypothesis is:

pc = (p₁ + p₂) / 2

The standard error under the null hypothesis is:

SE₀ = √(2·pc (1−pc) / n)

The standard error under the alternative hypothesis is:

SE₁ = √( p₁(1−p₁)/n + p₂(1−p₂)/n )

The quantiles and the distribution function of the standard normal distribution are evaluated using CenterSpace NMath.

H₁: p₁ > p₂
Power = Φ((d − z1−α·SE₀) / SE₁)
One-sided: greater
H₁: p₁ < p₂
Power = 1 − Φ((d + z1−α·SE₀) / SE₁)
One-sided: smaller
H₁: p₁ ≠ p₂
Power = 1 − Φ((d + z1−α/2·SE₀) / SE₁) + Φ((d − z1−α/2·SE₀) / SE₁)
Two-sided

One-Way ANOVA

The one-way ANOVA tests whether the means of several groups differ.

H₀: μ₁ = μ₂ = … = μk
H₁: At least one group mean differs.

In the tool, the maximum difference between group means is used as the effect:

Δ = max(μi) − min(μi)

For the calculation of the non-centrality parameter, it is assumed that two groups form the maximum distance Δ. The non-centrality parameter used in the tool is:

λ = (n·Δ²) / (2σ²)

The degrees of freedom are:

df₁ = k − 1     df₂ = k(n−1)

The critical F-quantile is determined using CenterSpace NMath:

Fcrit = F1−α,df1,df2

For the evaluation of the non-central F-distribution, the tool Numerics.NET is used.

Power = 1 − Fdf1,df2,λ (Fcrit)
Notation
k = Number of groups
n = Sample size per group
Δ = Assumed maximum difference between group means
σ = Standard deviation within groups
λ = Non-centrality parameter

One-sample t-test

In the one-sample t-test, the power is calculated for a given effect, a sample size, and an assumed standard deviation.

The non-centrality parameter is:

λ = (Δ·√n) / σ

The degrees of freedom are:

v = n − 1
Notation
Δ = Entered effect
n = Sample size
σ = Assumed standard deviation
λ = Non-centrality parameter

The required quantiles of the t-distribution and the distribution function of the non-central t-distribution are evaluated using CenterSpace NMath.

H₁: Δ > 0
Power = 1 − Ft,v,λ (t1−α,v)
One-sided: greater
H₁: Δ < 0
Power = Ft,v,λ (tα,v)
One-sided: smaller
H₁: Δ ≠ 0
Power = Ft,v,λ (tα/2,v) + 1 − Ft,v,λ (t1−α/2,v)
Two-sided

One-sample variance test

In the one-sample variance test, the power is determined for an assumed ratio between the actual standard deviation and the hypothetical standard deviation.

r = σ / σ₀

The squared ratio is used for the calculation:

r² = σ² / σ₀²

The degrees of freedom of the chi-square distribution are:

v = n − 1

The required quantiles and distribution functions of the chi-square distribution are evaluated using CenterSpace NMath.

H₁: σ > σ₀
Power = 1 − Fχ²,v (χ²1−α,v / r²)
One-sided: greater
H₁: σ < σ₀
Power = Fχ²,v (χ²α,v / r²)
One-sided: smaller
H₁: σ ≠ σ₀
Power = Fχ²,v (χ²α/2,v / r²) + 1 − Fχ²,v (χ²1−α/2,v / r²)
Two-sided

One-sample proportion test

In the proportion test, the power is calculated for an actual comparison proportion p against a hypothetical proportion p₀.

d = p − p₀

The standard error under the null hypothesis is:

SE₀ = √(p₀(1−p₀) / n)

The standard error under the alternative hypothesis is:

SE₁ = √(p(1−p) / n)

The required quantiles and distribution functions of the standard normal distribution are evaluated using CenterSpace NMath.

H₁: p > p₀
Power = Φ((d − z1−α·SE₀) / SE₁)
One-sided: greater
H₁: p < p₀
Power = Φ((−d − z1−α·SE₀) / SE₁)
One-sided: smaller
H₁: p ≠ p₀
Power = Φ((d − z1−α/2·SE₀) / SE₁) + Φ((−d − z1−α/2·SE₀) / SE₁)
Two-sided
Cart
Separation sharpness German Separation sharpness English Separation sharpness Spanish Separation sharpness Italian Separation sharpness French Separation sharpness Polish Separation sharpness Portuguese