Inference 8 of 8
On this page

Inference

6.7 Equivalence Test

Chapter 7 of 7 33 min read

The equivalence test is done to test whether data from different populations can be considered similar. It can also be used to evaluate the equivalence between two procedures, both for binary data and continuous data.

The description of the methodology is separated by topics:

  • Binary data:

    – Non-inferiority test;

    – Superiority test;

    – Equivalence test.

  • Continuous data:

    – Equivalence test: equal variances;

    – Equivalence test: different variances.

6.7.1 Binary Data

In this section, equivalence tests for binary data are described. For these there are three possible tests, namely the test of non-inferiority, superiority and equivalence. They aim to compare whether an alternative procedure is almost as “good” (not much worse), equivalent or even superior to a reference (or compendial) procedure.

In the equivalence test scenario, it is constructed using the procedure TOST Two One-Sided Tests (DJ Schuirmann, 1987), which consists of applying two tests $t$ unilateral, thus making it possible to conclude in favor or not of the equivalence between two procedures.

Non-inferiority test

Non-inferiority tests are hypothesis tests in which the null and alternative hypotheses are arranged to test whether a procedure is about as good (or not much worse) than the reference (or compendial) procedure. In this case, we are interested in showing that a new methodology is almost as “good” as the compendial methodology.

This section is based on the United States Pharmacopeia standard, which defines the hypothesis of non-inferiority as the proportion of positive results for the alternative procedure $(P_A)$ minus the proportion of positive results for the traditional procedure $(P_C)$, in relation to a non-inferiority tolerance margin $\Delta \sim (>0)$. It is worth mentioning that the Action software uses the default values $P_A = 0,5$ and $P_C = 0,7$ for the non-inferiority test, according to the United States Pharmacopeia standard.

The non-inferiority hypothesis is given by: $$H_0: P_A - P_C \leq - \Delta \quad \hbox{e} \quad H_1: P_A - P_C > - \Delta$$

Thus, the non-inferiority test can be written in the form:

$$ \frac{P_A}{P_C} \leq R \quad \text{e} \quad \frac{P_A}{P_C} > R,$$ in which $R = \frac{P_C - \Delta}{P_C}$, $\Delta > 0$ and $R \leq 1$, note that $R$ It’s a ratio of proportions. From the test formulated through proportion ratios, the following hypotheses are obtained for the non-inferiority test

$$H_0: P_A - RP_C \leq 0 \quad \text{e} \quad H_1: P_A - RP_C > 0$$

Under the null hypothesis, the test statistic is given by $$Z_{obs} = \frac{\hat{P}_A - R\hat{P}_C}{\sqrt{V}} $$

Se $Z_{obs} \geq z_{\alpha}$ the hypothesis is rejected $H_0$, thus concluding in favor of non-inferiority. It has to $z_{\alpha}$ is the upper quantile of the standard normal distribution and $V$ corresponds to the maximum likelihood estimator for the variance under the null hypothesis, $H_0$.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z \ > \ Z_{obs})$$

Se $\hbox{p-valor} \leq \alpha$ the null hypothesis is rejected, thus concluding in favor of non-inferiority. Regarding the calculation of the confidence interval, it is given by $$ IC( P_{a} - P_{c}; 1 - \alpha) = \left ( \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V}) ; 1 \right ) $$

It is worth mentioning that there is a confidence interval for the proportion ratio, so the $IC \in (-1, 1)$ and also, there is only the lower limit, $LI$, the confidence interval, that is, $$ LI = \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V}) $$

The United States Pharmacopeia suggests using a non-inferiority margin, $\Delta$, from $0,2$. The USP also requires that the power of the test is at least 80%, so the sample size must be calculated based on this. As suggested by USP, for qualitative microbiological non-inferiority tests, the sample size is at least 75 samples for each method and microorganism.

Table 6.7.1 presents a description of the parameters used in the non-inferiority test.

Description of Parameters
$N_A$ Alternative method sample size
$N_C$ Traditional method sample size
$X_A$ Alternative sample
$X_C$ Traditional sample
$P_A$ Proportion for the alternative method
$P_C$ Proportion for the traditional method
$\hat{P}_A$ $\cfrac{X_A}{N_A}$
$\hat{P}_C$ $\cfrac{X_C}{N_C}$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $\cfrac{P_C - \Delta}{P_C}$
$a$ $1 + \theta = 2$
$b$ $-\left[ R (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$
$c$ $R (\hat{P_A} + \theta \hat{P_C})$
$\tilde{P}_A$ $\cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a}$
$\tilde{P}_C$ $\cfrac{\tilde{P}_A}{R}$
$V$ $\cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C}$
$Z$ $\cfrac{(\hat{P}_A - R \hat{P}_C)}{\sqrt{V}}$

Table 6.7.1: Description of the parameters used in the non-inferiority test.

Superiority test

Superiority tests are hypothesis tests in which the null and alternative hypotheses are organized to test whether an alternative procedure is superior to a reference (or compendial) procedure. In this case, we are interested in showing that a new methodology is as “good” as the compendial methodology.

Superiority hypothesis testing is defined as the proportion of positive results for the alternative procedure ($P_A$) minus the proportion of positive results for the traditional procedure ($P_C$), in relation to a margin of superiority $\Delta ~(>0)$. It is worth mentioning that the Action software uses the default values $P_A = 0,7$ and $P_C = 0,5$ for the superiority test. The superiority hypothesis is given by: $$H_0: P_A - P_C \leq \Delta \quad \text{e} \quad H_1: P_A - P_C > \Delta$$

Thus, the superiority test can be written in the form: $$ \frac{P_A}{P_C} \leq R \quad \text{e} \quad \frac{P_A}{P_C} > R,$$ in which $R = \frac{P_C + \Delta}{P_C}$, $\Delta > 0$ and $R \geq 1$, note that $R$ It’s a ratio of proportions. From the test formulated through proportion ratios, the following hypotheses are obtained for the superiority test

$$H_0: P_A - RP_C \leq 0 \quad \text{e} \quad H_1: P_A - RP_C > 0$$

Under the null hypothesis, the test statistic is given by: $$Z_{obs} = \frac{\hat{P}_A - R\hat{P}_C}{\sqrt{V}} $$

Se $Z_{obs} > z_{\alpha}$ the hypothesis is rejected $H_0$, thus, we conclude in favor of superiority. It has to $z_{\alpha}$ is the upper quantile of the standard normal distribution.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z > Z_{obs})$$

Se $\hbox{p-valor} \ < \ \alpha$ the null hypothesis is rejected, thus concluding in favor of superiority.

Regarding the calculation of the confidence interval, it is given by: $$ IC( P_{a} - P_{c}; 1 - \alpha) = \left (-1; \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V}) \right ) $$

It is worth mentioning that there is a confidence interval for the proportion ratio, so the $IC \in (-1, 1)$ and also, there is only the upper limit of the confidence interval, that is, $$ LS = \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V}) $$

Table 6.7.2 presents a description of the parameters.

Description of Parameters
$N_A$ Alternative method sample size
$N_C$ Traditional method sample size
$X_A$ Alternative sample
$X_C$ Traditional sample
$P_A$ Proportion for the alternative method
$P_C$ Proportion for the traditional method
$\hat{P}_A$ $\cfrac{X_A}{N_A}$
$\hat{P}_C$ $\cfrac{X_C}{N_C}$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $\cfrac{P_C + \Delta}{P_C}$
$a$ $1 + \theta = 2$
$b$ $-\left[ R (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$
$c$ $R (\hat{P_A} + \theta \hat{P_C})$
$\tilde{P}_A$ $\cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a}$
$\tilde{P}_C$ $\cfrac{\tilde{P}_A}{R}$
$V$ $\cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C}$
$Z$ $\cfrac{(\hat{P}_A - R \hat{P}_C)}{\sqrt{V}}$

Table 6.7.2: Description of the parameters used in the superiority test.

Equivalence Test

Equivalence tests are hypothesis tests in which the null and alternative hypotheses are organized to test whether an alternative procedure is equivalent in relation to a reference (or compendial) procedure. In this scenario, we are interested in showing that a new methodology is equivalent to the compendial methodology.

Equivalence hypothesis testing is defined as the proportion of positive results for the alternative procedure ($P_A$) minus the proportion of positive results for the traditional procedure ($P_C$), in relation to an equivalence margin ($-\Delta, \Delta$). It is worth mentioning that for the equivalence test, the Action software uses as default $P_A = 0,5$ and $P_C = 0,7$. The equivalence hypothesis is given by: $$H_0: P_A - P_C \leq - \Delta \quad \text{ou} \quad P_A - P_C \geq \Delta \quad \text{e} \quad H_1: - \Delta < P_A - P_C < \Delta $$

The above hypothesis test can be decomposed into: $$H_{01} : P_A - P_C \leq - \Delta \quad \text{e} \quad H_{11}: P_A - P_C > - \Delta$$ and $$H_{02}: P_A - P_C \geq \Delta \quad \text{e} \quad H_{12}: P_A - P_C < \Delta$$

The equivalence test is decomposed using the TOST Two One-Sided Test procedure, which consists of decomposing the equivalence test into two one-sided tests.

Under the null hypotheses, the test statistics are given by: $$Z_{0i} = \frac{\hat{P}_A - R_{i}\hat{P}_C}{\sqrt{V}}, $$ in which $i = 1,2$ refer to the null hypotheses $H_{01}$ and $H_{02}$. It has to $R_{i}$ is given according to the hypothesis to which it refers, being given by $R_{1} = \frac{P_C - \Delta}{P_C}$, $R_{1} \leq 1$ when you test $H_{01}$ and $R_{2} = \frac{P_A + \Delta}{P_A}$, $R_{2} \geq 1$ when you test $H_{02}$.

Se $Z_{01} \geq z_{\alpha}$ the hypothesis is rejected $H_{01}$ and if $Z_{02} \geq - z_{\alpha}$ the hypothesis is rejected $H_{02}$. In which $z_{\alpha}$ is the upper quantile of the standard normal distribution and $- z_{\alpha}$ is the lower quantile of the standard normal distribution. Thus, it is concluded in favor of equivalence if the hypotheses $H_{01}$ and $H_{02}$ are rejected simultaneously.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z_{1} \ > \ Z_{01}) + P(Z_{2} \ < \ Z_{02}) $$

Se $\hbox{p-valor} \ < \ \alpha$ the null hypothesis is rejected, thus concluding in favor of equivalence. Regarding the calculation of the confidence interval, it is given by $$ IC( P_{a} - P_{c}; 1 - \alpha) = \left ( \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V}) ; \quad \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V}) \right ) $$

Below, Table 6.7.3 is presented, with a description of the parameters for applying the equivalence test. It should be noted that the proportion ratio $R$ depends on the hypothesis to be tested, that is, how much there is:

  • $H_{01} : P_A - P_C \leq - \Delta$, adopt $R_{1} = \cfrac{P_C - \Delta}{P_C}$

  • $H_{02}: P_A - P_C \geq \Delta$, adopt $R_{2} = \cfrac{P_A + \Delta}{P_A}$

In Table 6.7.3, it is noted $R_{i}, i = 1, 2$, respectively for the hypotheses $H_{01}$ and $H_{02}$.

Description of Parameters
$N_A$ Alternative method sample size
$N_C$ Traditional method sample size
$X_A$ Alternative sample
$X_C$ Traditional sample
$P_A$ Proportion for the alternative method
$P_C$ Proportion for the traditional method
$\hat{P}_A$ $\cfrac{X_A}{N_A}$
$\hat{P}_C$ $\cfrac{X_C}{N_C}$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $R_{i}$
$a$ $1 + \theta = 2$
$b$ $-\left[ R_{i} (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$
$c$ $R_{i} (\hat{P_A} + \theta \hat{P_C})$
$\tilde{P}_A$ $\cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a}$
$\tilde{P}_C$ $\cfrac{\tilde{P}_A}{R_{i}}$
$V$ $\cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R_{i}^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C}$
$Z$ $\cfrac{(\hat{P}_A - R_{i} \hat{P}_C)}{\sqrt{V}}$

Table 6.7.3: Description of the parameters used in the equivalence test.

6.7.2 Continuous Data

In this section, the equivalence test for continuous data is described. As presented in section 6.7.1, equivalence tests are tests in which hypotheses are organized to test whether two independent sets of data are equivalent, that is, in the pharmaceutical setting, hypotheses are organized to test whether two procedures are pharmaceutically equivalent.

Denoting:

  • $X_{a}$: sample of the alternative procedure;

  • $X_{c}$: sample of the compendial procedure.

The equivalence test hypothesis for continuous data is given by:

$$H_{0}: | \mu_{a} - \mu_{c} | \geq \Delta \quad \text{vs} \quad H_{1}: | \mu_{a} - \mu_{c} | < \Delta $$

Which can also be written in the form:

$$ H_{0}: \mu_{a} - \mu_{c} \leq - \Delta \quad \text{ou} \quad \mu_{a} - \mu_{c} \geq \Delta \quad \text{vs} \quad H_{1}: - \Delta < \mu_{a} - \mu_{c} < \Delta $$

The hypotheses given above can be decomposed into two hypothesis tests to $H_{0}$ and $H_{1}$, through the *TOST* procedure (DJ Schuirmann, 1987), that is, they can be decomposed into two unilateral hypothesis tests. Thus the hypotheses are given by: $$ H_{01}: \mu_{a} - \mu_{c} \leq - \Delta \quad \text{vs} \quad H_{11}: \mu_{a} - \mu_{c} > - \Delta $$ and $$ H_{02}: \mu_{a} - \mu_{c} \geq \Delta \quad \text{vs} \quad H_{12}: \mu_{a} - \mu_{c} < \Delta $$

Where:

  • $\mu_{a}$ is the population mean of the alternative procedure;

  • $\mu_{c}$ is the population mean of the compendial (or reference) procedure;

  • $\Delta$ is the margin of tolerance (or equivalence), being $\Delta > 0$.

The TOST test procedure consists of rejecting both hypotheses $H_{01}$ and $H_{02}$. Under the assumption of normality of populations, that is, $X_{a} \sim (\mu_{a}, \sigma_{a}^2)$ and $X_{c} \sim (\mu_{c}, \sigma_{c}^2)$ and small sample size, a test is used $t$ for comparing means.

Under the null hypothesis, the test statistic is given by:

$$T = \frac{ \mid \bar{x}_{a} - \bar{x}_{c} \mid - \Delta}{ s_{d} } \tag{7.1}$$

Or even

$$T_{1} = \frac{( \bar{x}_{a} - \bar{x}_{c} ) + \Delta}{s_{d} } \quad \text{e} \quad T_{2} = \frac{ \Delta - ( \bar{x}_{a} - \bar{x}_{c} ) }{ s_{d} } \tag{7.2}$$

In which

  • $\bar{x}_a$ is the sample mean of the alternative procedure;

  • $\bar{x}_c$ is the sample mean of the compendial procedure;

  • $s_{d}$ is the sample standard deviation.

It has to $T_{1}$ refers to the hypothesis $H_{01}$ and $T_{2}$ refers to the hypothesis $H_{02}$. Therefore, through *TOST* it is concluded in favor of equivalence if $T_{1} \geq t_{(\nu, 1 - \alpha)}$ and $T_{2} \geq t_{(\nu, 1 - \alpha)}$, in which $\alpha$ is the level of significance and $\nu$ the degrees of freedom.

It is worth mentioning that the Action Stat software uses the test statistics given by equation 7.2.

In relation to population variance, the variances can be equal ($\sigma^2_{a} = \sigma^2_{c}$) or different ($\sigma^2_{a} \neq \sigma^2_{c}$), both of which are unknown. Where:

  • $\sigma^2_{a}$ is the population variance of the alternative procedure;

  • $\sigma^2_{c}$ is the population variance of the compendial procedure.

Therefore, the equivalence test for continuous data depends on population variances. Below, the test statistics for both cases described are presented.

Equal variances

If the variances are equal, we have $s_{d}$ is given by:

$$ s_{d} = s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}} $$

In which $s_{p}$ is:

$$s_{p} = \sqrt{\frac{(n_{a} - 1)s^{2}_{a} + (n_{c} - 1)s^{2}_{c}}{n_{a} + n_{c} - 2}}$$

Where:

  • $n_{a}$ is the sample size of the alternative procedure;

  • $n_{c}$ is the sample size of the compendial procedure;

  • $s_{p}$ is the pooled standard deviation;

  • $s_{a}^2$ is the sampling variance of the alternative procedure;

  • $s_{c}^2$ is the sampling variance of the compendial procedure.

Thus, under the null hypotheses, the test statistic is given by:

$$ T_{1} = \frac{( \bar{x}_{a} - \bar{x}_{c} ) + \Delta }{ s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}} } \quad \text{e} \quad T_{2} = \frac{\Delta - ( \bar{x}_{a} - \bar{x}_{c} ) }{ s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}} } \tag{7.3} $$

Se $T_{1} \geq t_{(\nu, 1 - \alpha)}$ and $T_{2} \geq t_{(\nu, 1 - \alpha)}$, the null hypotheses are rejected, that is, it is rejected that the procedures are not equivalent. In which $t_{(\nu, 1 - \alpha)}$ is the upper quantile of the distribution $t$ of Student, with $\nu = n_{a} + n_{c} - 2$ degrees of freedom. Therefore, we conclude in favor of equivalence between the procedures.

Different variations

If the variances are different, we have to $s_{d}$ is given by: $$ s_{d} = \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}} $$

Where:

  • $n_{a}$ is the sample size of the alternative procedure;

  • $n_{c}$ is the sample size of the compendial procedure;

  • $s_{a}^2$ is the sampling variance of the alternative procedure;

  • $s_{c}^2$ is the sampling variance of the compendial procedure.

Thus, under the null hypothesis, the test statistic is given by: $$ T_{1} = \frac{( \bar{x}_{a} - \bar{x}_{c} ) + \Delta }{ \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}}} \quad \text{e} \quad T_{2} = \frac{\Delta - ( \bar{x}_{a} - \bar{x}_{c} ) }{ \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}}} \tag{7.4}$$

Se $T_{1} \geq t_{(\nu, 1 - \alpha)}$ and $T_{2} \geq t_{(\nu, 1 - \alpha)}$, the null hypotheses are rejected, that is, it is rejected that the procedures are not equivalent. Therefore, we conclude in favor of equivalence between the procedures. In which $t_{(\nu, 1 - \alpha)}$ is the upper quantile of the distribution $t$ of Student, with $\nu$ degrees of freedom, being $\nu$ given by:

$$ \nu = \frac{ (\frac{s_{a}^2}{n_{a}} + \frac{s_{c}^2}{n_{c}})^2 }{ \frac{(\frac{s_{a}^2}{n_{a}})^2}{(n_{a} - 1) } + \frac{(\frac{s_{c}^2}{n_{c}})^2}{(n_{c} - 1)} } $$

After calculating the test statistics, you can calculate the $p-valor$ this one. Which is given by: $$ \hbox{p-valor} = P(t_{(\nu; 1 - \alpha)} > T_{1}) + P(t_{(\nu; 1 - \alpha)} > T_{2}) \tag{7.5}$$

Se $\hbox{p-valor} \leq \alpha$, the null hypothesis is rejected, that is, it is rejected $H_{01}$ and $H_{02}$, it is then concluded that the procedures are equivalent to the level of significance $\alpha$.

The confidence interval for the test is given by: $$IC(\mu_{a} - \mu_{c}; 1 - 2 \times \alpha) = \left(( \mu_{a} - \mu_{c} ) - t_{(\nu, 1 - \alpha)} \times s_{d}; \quad (\mu_{a} - \mu_{c} ) + t_{(\nu, 1 - \alpha)} \times s_{d} \right) \tag{7.6} $$

In which $s_{d}$ is given according to the equality or inequality of population variances. In this way, the lower limit $LI$ and the upper limit $LS$ of the confidence interval are:

  • $LI = ( \mu_{a} - \mu_{c} ) - t_{(\nu, 1 - \alpha)} \times s_{d} $

  • $LS = ( \mu_{a} - \mu_{c} ) + t_{(\nu, 1 - \alpha)} \times s_{d} $

Se $ LI \ > \ - \Delta $ and $LS \ < \ \Delta$, the null hypothesis is rejected, thus it is concluded that the procedures are equivalent.

6.7.3 Applications

The methodologies relating to equivalence tests for binary data and continuous data are applied below, as described in the protocol. The aim is to evaluate whether a given alternative procedure is non-inferior, equivalent and superior to a reference procedure. Five examples are presented, applying the non-inferiority, superiority and equivalence tests to binary data, as well as the equivalence test to continuous data, in cases with equal and different variances.

Binary data: non-inferiority test

Next, the non-inferiority test is presented. In this example we want to test whether a new methodology is non-inferior to the compendial methodology. To do this, the proportion of positive results for both methods is evaluated. Summary data is given in Table 6.7.4 below.

Results Alternative Compedia
Positive 105 133
Sterile 45 17
Total 150 150

Table 6.7.4: Summary data for the non-inferiority test.

The test hypotheses are given by $$H_0: P_A - P_C \leq - \Delta \quad \text{e} \quad H_1: P_A - P_C > - \Delta$$

As suggested by USP, it is adopted $\Delta = 0,2$. Calculating the parameters according to Table 6.7.1, the following quantities are obtained:

$$ \hat{P}_A = \cfrac{X_A}{N_A} = \cfrac{105}{150} = 0,7 \quad \text{e} \quad \hat{P}_C = \cfrac{X_C}{N_C} = \cfrac{133}{150} = 0,886 $$

It also has to $$ R = \cfrac{P_C - \Delta}{P_C} = \cfrac{0,7 - 0,2}{0,7} = 0,7142857 $$

$b = -\left[ R (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$

$ \quad = -\left[ 0,7142857 (1 + 1 \times 0,886) + 1 + 0,7 \right] $

$ \quad = -3,047143$

$$ c = R (\hat{P_A} + \theta \hat{P_C}) = 0,7142857 (0,7 + 1 \times 0,886) = 1,1333 $$

Then, $$ \tilde{P}_A = \cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a} = \cfrac{ \left[3,047 - \sqrt{(-3,047)^2 - 4 \times 2 \times 1,1333} \right]}{4} = 0,64429 $$ and $$ \tilde{P}_C = \cfrac{\tilde{P}_A}{R} = \cfrac{0,64429}{0,71428} = 0,902012 $$

The variance estimate is given by

$ V = \cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C} = $

$ \quad = \cfrac{0,64429 (1 - 0,64429)}{150} + 0,5102041 ~ \cfrac{0,902012 (1 - 0,902012)}{150} = $

$ \quad = 0,001828494 $

Under the null hypothesis, the test statistic is given by $$ Z = \cfrac{(\hat{P}_A - R \hat{P}_C)}{\sqrt{V}} = \cfrac{(0,7 - (0,71428 \times 0,886))}{0,04276} = 1,559 $$

Adopting a significance level of $5\char37$, we obtain $z_{\alpha} = 1,644854$. How $Z \leq z_{\alpha}$ The null hypothesis is not rejected, thus it is concluded that the alternative method is inferior to the compendial method.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z \ > \ Z_{obs}) = 0,059$$

Se $\hbox{p-valor} \ > \ \alpha$ The null hypothesis is not rejected, thus concluding against non-inferiority. Regarding the calculation of the confidence interval, it is given by $$ IC( P_{a} - P_{c}; 1 - \alpha) = \left ( \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V}) ; 1 \right ) $$

It is worth mentioning that there is a confidence interval for the proportion ratio, so the $IC \in (-1, 1)$ and also, there is only the lower limit, $LI$, the confidence interval, that is,

$LI = \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V})$

$ \qquad = \max(-1; -0,186 - 1,644854 \times \sqrt{0,001828494})$

$ \qquad = \max(-1; -0,26150165 ) = -0,26150165 $

Below is Table 6.7.5, which consists of a summary of the values obtained for the non-inferiority test.

Description of Parameters
$N_A = 150$ Alternative method sample size
$N_C=150$ Traditional method sample size
$X_A = 105$ Alternative sample
$X_C = 133$ Traditional sample
$P_A = 0,5$ Proportion for the alternative method
$P_C = 0,7$ Proportion for the traditional method
$\hat{P}_A $ $ 0,7 $
$\hat{P}_C$ $ 0,886$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $ 0,7142857$
$a$ $1 + \theta = 2$
$b$ $ -3,047143 $
$c$ $1,1333$
$\tilde{P}_A$ $0,64429$
$\tilde{P}_C$ $0,902012$
$V$ $0,001828494$
$Z$ $1,559$

Table 6.7.5: Results obtained for the non-inferiority test.

The results obtained using the Action Stat non-inferiority test tool are presented below.

Quantity Estimated Proportion
Positive 133 0.8867
Sterile 17 0.1133
Total 150 1

Table 6.7.7: Compendial Method Results

Quantity Estimated Proportion
Positive 105 0.7
Sterile 45 0.3
Total 150 1

Table 6.7.8: Alternative Method Results

Value
$\theta$ 1
Ratio of Proportions ($R$) 0.7143
to 2
b -3.0476
c 1.1333
$\tilde{p}_a$ 0.6443
$\tilde{p}_c$ 0.902
Variance ($V$) 0.0018
Root($V$) 0.0428
$\hat{p}_a - R \ast \hat{p}_c$ 0.0667

Table 6.7.9: Test Parameters - $H_0: P_a - P_c <= - \Delta$

Value
Significance level 0.05
Standard Normal Quantile - Non-inferiority 1.6449
P-Value 0.0595

Table 6.7.10: Rejection Criteria

Value
Confidence Level 0.95
Lower Limit -0.2615

Table 6.7.11: Confidence Interval

Figura6.7.1.svg

Figure 6.7.1: Bar chart of Alternative and Compedial Methods

Binary data: superiority test

Next, the superiority test is presented. In this example, we want to test whether a new methodology is superior to the compendial methodology. To do this, the proportion of positive results for both methods is evaluated. Summary data is given in Table 6.7.12 below.

Results Alternative Compedia
Positive 133 105
Sterile 17 45
Total 150 150

Table 6.7.12: Summary data for the non-inferiority test.

The test hypotheses are given by $$H_0: P_A - P_C \leq \Delta \quad \text{e} \quad H_1: P_A - P_C > \Delta$$

As suggested by USP, it is adopted $\Delta = 0,2$. Calculating the parameters according to Table 6.7.2, the following quantities are obtained: $$ \hat{P}_A = \cfrac{X_A}{N_A} = \cfrac{133}{150} = 0,887 \quad \text{e} \quad \hat{P}_C = \cfrac{X_C}{N_C} = \cfrac{105}{150} = 0,7 $$

It also has to $$R = \cfrac{P_C + \Delta}{P_C} = \cfrac{0,5 + 0,2}{0,5} = 1,4 $$

$b = -\left[ R (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right] $

$ \quad = -\left[ 1,4 (1 + 1 \times 0,7) + 1 + 0,886 \right] $

$ \quad = -4,266667 $

$$ c = R (\hat{P_A} + \theta \hat{P_C}) = 1,4 (0,886 + 1 \times 0,7) = 2,221333$$

Then,

$ \tilde{P}_A = \cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a} $

$ \qquad = \cfrac{ \left[4,266667 - \sqrt{(-4,266667)^2 - 4 \times 2 \times 2,221333} \right]}{4} = 0,9020121 $

and $$ \tilde{P}_C = \cfrac{\tilde{P}_A}{R} = \cfrac{0,825946}{1,4} = 0,644294 $$

The variance estimate is given by

$V = \cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C}$

$ \quad = \cfrac{0,9020121 (1 - 0,9020121)}{150} + 1,96 ~ \cfrac{0,644294 (1 - 0,644294)}{150}$

$ \quad = 0,003584$

Under the null hypothesis, the test statistic is given by $$ Z = \cfrac{(\hat{P}_A - R \hat{P}_C)}{\sqrt{V}} = \cfrac{(0,886 - (1,4 \times 0,7))}{0,0035841} = -1,559057 $$

Adopting a significance level of $5\char37$, we obtain $z_{\alpha} = 1,644854$. How $Z \leq z_{\alpha}$ The null hypothesis is not rejected, thus it is concluded that the alternative method is not superior to the compendial method.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z \ > \ Z_{obs}) = 0,940508 $$

How $\hbox{p-valor} \ > \ \alpha$ The null hypothesis is not rejected, thus concluding against superiority. Regarding the calculation of the confidence interval, it is given by $$ IC( P_{a} - P_{c}; 1 - \alpha) = \left (-1; \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V}) \right ) $$

It is worth mentioning that there is a confidence interval for the proportion ratio, so the $IC \in (-1, 1)$ and also, there is only the upper limit, $LS$, the confidence interval, that is,

$LS = \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V})$

$\qquad = \min(1; 0,1866667 + 1,644854 \times \sqrt{0,003584})$

$\qquad = \min(1; 0,2615016 ) = 0,2615016$

Below is Table 6.7.13, which consists of a summary of the values obtained for the superiority test.

Description of Parameters
$N_A = 150$ Alternative method sample size
$N_C=150$ Traditional method sample size
$X_A = 133$ Alternative sample
$X_C = 105$ Traditional sample
$P_A = 0,7$ Proportion for the alternative method
$P_C = 0,5$ Proportion for the traditional method
$\hat{P}_A $ $ 0,88 $
$\hat{P}_C$ $ 0,7$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $ 1,4$
$a$ $1 + \theta = 2$
$b$ $ -4,266667 $
$c$ $ 2,221333 $
$\tilde{P}_A$ $ 0,9020121 $
$\tilde{P}_C$ $ 0,644294 $
$V$ $ 0,003584 $
$Z$ $ -1,559057 $

Table 6.7.13: Results obtained for the superiority test.

The results obtained using the Action Stat superiority test tool are presented below.

Quantity Estimated Proportion
Positive 105
Sterile 45
Total 150

Table 6.7.14: Compendial Method Results

Quantity Estimated Proportion
Positive 133
Sterile 17
Total 150

Table 6.7.15: Alternative Method Results

Value
$\theta$ 1
Ratio of Proportions ($R$) 1.4
to 2
b -4.2667
c 2.2213
$\tilde{p}_a$ 0.902
$\tilde{p}_c$ 0.6443
Variance ($V$) 0.0036
Root($V$) 0.0599
$\hat{p}_a - R \ast \hat{p}_c$ -0.0933

Table 6.7.16: Test Parameters - $H_0: P_a - P_c <= \Delta$

Value
Significance level 0.05
Standard Normal Quantile - Superiority 1.6449
P-Value 0.9405

Table 6.7.17: Rejection Criteria

Value
Confidence Level 0.95
Upper Limit 0.2615

Table 6.7.18: Confidence Interval

Figura6.7.2.svg

Figure 6.7.2: Bar chart of Alternative and Compedial Methods

Binary data: equivalence test

Next, the equivalence test is presented. In this example we want to test whether a new methodology is equivalent to the compendial methodology. To do this, the proportion of positive results for both methods is evaluated. Summary data is given in Table 6.7.19 below.

Results Alternative Compedia
Positive 105 133
Sterile 45 17
Total 150 150

Table 6.7.19: Summary data for the equivalence test.

The test hypotheses are given by $$H_{01} : P_A - P_C \leq - \Delta \quad \text{e} \quad H_{11}: P_A - P_C > - \Delta$$ and $$H_{02}: P_A - P_C \geq \Delta \quad \text{e} \quad H_{12}: P_A - P_C < \Delta$$

As suggested by USP, it is adopted $\Delta = 0,2$. Calculating the parameters according to Table 6.7.19, the following quantities are obtained: $$ \hat{P}_A = \cfrac{X_A}{N_A} = \cfrac{105}{150} = 0,7 \quad \text{e} \quad \hat{P}_C = \cfrac{X_C}{N_C} = \cfrac{133}{150} = 0,886 $$

It should be noted that Action Stat uses the TOST procedure for the equivalence test. Calculating the parameters according to the hypotheses, we obtain, for the hypothesis $H_{01}$: $$R_{1} = \cfrac{P_C - \Delta}{P_C} = \cfrac{0,7 - 0,2}{0,7} = 0,7142857 $$

$ b = -\left[ R_{1} (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$

$\quad = -\left[ 0,7142857 (1 + 1 \times 0,886) + 1 + 0,7 \right] = -3,047143 $

$$ c = R_{1} (\hat{P_A} + \theta \hat{P_C}) = 0,7142857 (0,7 + 1 \times 0,886) = 1,1333$$

Then, $$ \tilde{P}_A = \cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a} = \cfrac{ \left[3,047 - \sqrt{(-3,047)^2 - 4 \times 2 \times 1,1333} \right]}{4} = 0,64429 $$ and $$ \tilde{P}_C = \cfrac{\tilde{P}_A}{R_{1}} = \cfrac{0,64429}{0,71428} = 0,902012 $$

$V = \cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R_{1}^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C} =$

$ \quad = \cfrac{0,64429 (1 - 0,64429)}{150} + 0,5102041 ~ \cfrac{0,902012 (1 - 0,902012)}{150} =$

$\quad = 0,001828494$

Under the null hypothesis $H_{01}$, the test statistic is given by $$ Z_{01} = \cfrac{(\hat{P}_A - R_{1} \hat{P}_C)}{\sqrt{V}} = \cfrac{(0,7 - (0,71428 \times 0,886))}{0,04276} = 1,559 $$

Calculating the parameters for the hypothesis $H_{02}$, we obtain: $$R_{2} = \cfrac{P_A + \Delta}{P_A} = \cfrac{0,5 + 0,2}{0,5} = 1,4 $$

$ b = -\left[ R_{2} (1 + \theta \hat{P}_C) + \theta + \hat{P}_A\right]$

$\quad = -\left[ 1,4 (1 + 1 \times 0,886) + 1 + 0,7 \right] $

$\quad = -4,341333 $

$$ c = R_{2} (\hat{P_A} + \theta \hat{P_C}) = 1,4 (0,7 + 1 \times 0,886) = 2,221333$$

Then,

$\tilde{P}_A = \cfrac{ \left[- b - \sqrt{b^2 - 4 a c} \right]}{2a} $

$ \quad = \cfrac{ \left[4,341333 - \sqrt{(-4,341333)^2 - 4 \times 2 \times 2,221333} \right]}{4} = 0,825946$

and

$$ \tilde{P}_C = \cfrac{\tilde{P}_A}{R_{2}} = \cfrac{0,825946}{1,4} = 0,589961 $$

The variance estimate is given by

$ V = \cfrac{\tilde{P}_A (1 - \tilde{P}_A)}{N_A} + R_{2}^2 ~ \cfrac{\tilde{P}_C (1 - \tilde{P}_C)}{N_C} = $

$ \quad = \cfrac{0,825946 (1 - 0,825946)}{150} + 1,96 ~ \cfrac{0,589961 (1 - 0,589961)}{150} = $

$ \quad = 0,0041193 $

Under the null hypothesis, the test statistic is given by $$ Z_{02} = \cfrac{(\hat{P}_A - R_{2} \hat{P}_C)}{\sqrt{V}} = \cfrac{(0,7 - (1,4 \times 0,886))}{0,064181} = -8,4343657 $$

How $Z_{01} < z_{\alpha}$ the hypothesis is not rejected $H_{01}$ and how $Z_{02} < - z_{\alpha}$ the hypothesis is not rejected $H_{02}$. In which $z_{\alpha} = 1,644854 $ is the upper quantile of the standard normal distribution and $- z_{\alpha} =- 1,644854$ is the lower quantile of the standard normal distribution. Thus, it is concluded against the equivalence of procedures, as the hypotheses $H_{01}$ and $H_{02}$ were not rejected simultaneously, that is, it is concluded at the significance level of $5\char37$ that the alternative method is not equivalent to the traditional method.

The calculation of $\hbox{p-valor}$ is given by $$\hbox{p-valor} = P(Z_{1} \ > \ Z_{01}) + P(Z_{2} \ < \ Z_{02}) = 0,059 $$

Se $\hbox{p-valor} \ > \ \alpha$ The null hypothesis is not rejected, thus concluding in favor of non-equivalence. Regarding the calculation of the confidence interval, it is given by

$IC( P_{a} - P_{c}; 1 - \alpha) = \left ( \max(-1; \hat{P_A} - \hat{P_C} - z_{\alpha} \times \sqrt{V}); \quad \min(1; \hat{P_A} - \hat{P_C} + z_{\alpha} \times \sqrt{V}) \right ) $

$= \left ( \max(-1; -0,186 - 1,644854 \times \sqrt{0,001828494}) ; \quad \min(1; 0,1866667 + 1,644854 \times \sqrt{0,0041193}) \right) $

$= \left ( \max(-1; -0,26150165 ); \quad \min(1; -0,11183168 ) \right ) $

$= (-0,26150165; -0,11183168)$

Below are Tables 6.7.20 and 6.7.21, which consist of a summary of the values obtained for the equivalence test, in which Table 6.7.20 refers to the hypothesis $H_{01}$ and Table 6.7.21 refers to the hypothesis $H_{02}$.

Description of Parameters
$N_A = 150$ Alternative method sample size
$N_C=150$ Traditional method sample size
$X_A = 105$ Alternative sample
$X_C = 133$ Traditional sample
$P_A = 0,5$ Proportion for the alternative method
$P_C = 0,7$ Proportion for the traditional method
$\hat{P}_A $ $ 0,7 $
$\hat{P}_C$ $ 0,886$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $ 0,7142857$
$a$ $1 + \theta = 2$
$b$ $ -3,047143 $
$c$ $1,1333$
$\tilde{P}_A$ $0,64429$
$\tilde{P}_C$ $0,902012$
$V$ $0,001828494$
$Z$ $1,559$

Table 6.7.20: Results obtained for the equivalence test in relation to the hypothesis $H_{01}$.

Description of Parameters
$N_A = 150$ Alternative method sample size
$N_C=150$ Traditional method sample size
$X_A = 105$ Alternative sample
$X_C = 133$ Traditional sample
$P_A = 0,5$ Proportion for the alternative method
$P_C = 0,7$ Proportion for the traditional method
$\hat{P}_A $ $ 0,7 $
$\hat{P}_C$ $ 0,886$
$\theta$ $\cfrac{N_C}{N_A} = 1$
$R$ $ 1,4$
$a$ $1 + \theta = 2$
$b$ $ -4,341333 $
$c$ $2,221333$
$\tilde{P}_A$ $0,825946$
$\tilde{P}_C$ $0,589961 $
$V$ $0,0041193 $
$Z$ $-8,4343657$

Table 6.7.21: Results obtained for the equivalence test in relation to the hypothesis $H_{02}$.

The results obtained from Action Stat are presented below.

Quantity Estimated Proportion
Positive 133 0.8867
Sterile 17 0.1133
Total 150 1

Table 6.7.22: Compendial Method Results

Quantity Estimated Proportion
Positive 105 0.7
Sterile 45 0.3
Total 150 1

Table 6.7.23: Alternative Method Results

Value
$\theta$ 1
Ratio of Proportions ($R$) 0.7143
to 2
b -3.0476
c 1.1333
$\tilde{p}_a$ 0.6443
$\tilde{p}_a$ 0.902
Variance ($V$) 0.0018
Root($V$) 0.0428
$\hat{p}_a-R \ast \hat{p}_c$ 0.0667

Table 6.7.24: Test Parameters - $H_0: P_a - P_c <= - \Delta$

Value
$\theta$ 1
Ratio of Proportions ($R$) 1.4
to 2
b -4.3413
c 2.2213
$\tilde{p}_a$ 0.8259
$\tilde{p}_a$ 0.59
Variance ($V$) 0.0041
Root($V$) 0,0642
$\hat{p}_a-R \ast \hat{p}_c$ -0.5413

Table 6.7.25: Test Parameters - $H_0: P_a - P_c >= - \Delta$

Value
Significance level 0.05
Standard Normal Quantile - Non-inferiority 1.6449
Standard Normal Quantile - Superiority -1.6449
P-Value 0.0595

Table 6.7.26: Rejection Criteria

Value
Confidence Level 0.95
Lower Limit -0.2615
Upper Limit -0.1118

Table 6.7.27: Confidence Interval

Figura6.7.3.svg

Figure 6.7.3: Bar chart of Alternative and Compedial Methods

Continuous data: equal variances

Next, the equivalence test for continuous data is presented, in the case where there are equal variances. It is desired to test the equivalence of two laboratories in the concentration of a given medicine, for this purpose samples were collected $10$ medications from each laboratory.

Data Factor
100,5449 A
99,67155 A
99,32921 A
100,0855 A
100,2163 A
100,0495 A
100,0238 A
99,28651 A
100,1467 A
99,72407 A
102,0206 B
101,0006 B
101,8330 B
101,7111 B
101,7244 B
98,65855 B
100,3181 B
100,9711 B
99,16993 B
100,7830 B

Table 6.7.28: Data for the equivalence test for continuous data with equal variances.

From Table 6.7.28, it is clear that $A$ refers to the laboratory $1$ and $C$ refers to the laboratory $2$. In this example, the equivalence margin is adopted $\Delta = 1$. You want to test: $$ H_{0}: \mu_{a} - \mu_{c} \leq - \Delta \quad \text{ou} \quad \mu_{a} - \mu_{c} \geq \Delta \quad \text{vs} \quad H_{1}: - \Delta < \mu_{a} - \mu_{c} < \Delta $$

Therefore, using Table 6.7.28, we obtain:

  • $n_{a} = 10$ is the sample size for the laboratory $1$;

  • $n_{c} = 10$ is the sample size for the laboratory $2$;

  • $\Delta = 1$ is the equivalence margin.

First, the standard deviation associated with the data and the test is calculated, thus, as there are equal variances, the standard deviation is given by:

$$s_{d} = s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}}$$

By calculating the grouped standard deviation we obtain

$ s_{p} = \sqrt{\dfrac{(n_{a} - 1)s^{2}_{a} + (n_{c} - 1)s^{2}_{c}}{n_{a} + n_{c} - 2}} $

$ \quad = \sqrt{\dfrac{(10 - 1)\times 0,1592881 + (10 - 1)\times 1,309213}{10 + 10 - 2}} = 0,8568842 $

Consequently, there is

$$ s_{d} = s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}} = 0,8568842 \times \sqrt{\frac{1}{10} + \frac{1}{10}} = 0,3832102 $$

Under the null hypotheses, we have the test statistics:

$$T_{1} = \dfrac{( \bar{x}_{a} - \bar{x}_{c} ) + \Delta }{ s_{p} \sqrt{\dfrac{1}{n_{a}} + \frac{1}{n_{c}}} } = \dfrac{( 99,90779 - 100.819 ) + 1}{0,8568842 \sqrt{\frac{1}{10} + \frac{1}{10}} } = 0,2316379 \tag{7.7}$$

$$T_{2} = \dfrac{\Delta - ( \bar{x}_{a} - \bar{x}_{c} ) }{ s_{p} \sqrt{\frac{1}{n_{a}} + \frac{1}{n_{c}}} } = \dfrac{1 - ( 99,90779 - 100,819 ) }{0,8568842 \sqrt{\frac{1}{10} + \frac{1}{10}} } = 4,987429 \tag{7.8}$$

Adopting a significance level of $5\char37$, we obtain $t_{(\nu, 1 - \alpha)} = t_{(18, 0,95)} = 1,734064$, in which $\nu = n_{a} + n_{c} - 2 = 18$. It has to $T_{1} \leq t_{(18, 0,95)}$, so the hypothesis cannot be rejected $H_{01}$ and $T_{2} \geq t_{(18, 0,95)}$, therefore the hypothesis is rejected $H_{02}$. Therefore, as both hypotheses are not rejected $H_{01}$ and $H_{02}$ Taken together, the hypothesis that the laboratories are not equivalent is not rejected.

Calculating the confidence interval we obtain

  • $LI = ( \bar{x}_{a} - \bar{x}_{c} ) - t_{(v, 1 - \alpha)} \times s_{d} = (99,90779 - 100,819 ) - 1,734064 \times 0,3832102 = -1,5985 $

  • $LS = ( \bar{x}_{a} - \bar{x}_{c} ) + t_{(v, 1 - \alpha)} \times s_{d} = ( 99,90779 - 100,819 ) + 1,734064 \times 0,3832102 = -0,2239$

Logo $IC_{\mu_{a} - \mu_{c}, 1-(2\alpha)} = (-1,575721; -0,2466989)$. It should be noted that the procedure for obtaining the confidence interval is at the significance level $\alpha$, then there is a $IC (1 - (2 \alpha)) $ $\times 100\char37$.

How $ LI \ > \ - 1 $ and $LS \ < \ 1$, the null hypothesis is not rejected, thus it is concluded that the laboratories are not equivalent.

After calculating the confidence interval, the $\hbox{p-valor}$ for the test, which is given by:

$$\hbox{p-valor} = P(T_{1} > t_{(\nu; 1 - \alpha)}) + P(T_{2} > t_{(\nu; 1 - \alpha)}) = 0,4097726$$

How the $\hbox{p-valor} \ > \ \alpha$, the null hypothesis is not rejected. Therefore, it is concluded that laboratories are not equivalent to the level of significance $\alpha = 5\char37$.

The results obtained using the equivalence test tool for continuous data from Action Stat are presented below.

Values
Degrees of Freedom 11.1581
P-value 0.4107
Average - A 99.9078
Average - B 100.819
Standard Deviation - A 0.3991
Standard Deviation - B 1.1442
Sample Size - A 10
Sample Size - B 10
Confidence Level 0.95
Lower Limit -1.5985
Upper Limit -0.2239
Equivalence margin 1
Test Statistics 1 - $H_{01}: m_1-m_2 \leq -d$ 0.2316
Test Statistics 2 - $H_{02}: m_1-m_2 \geq d$ 4.9874

Table 6.7.29: Results obtained by the Action Stat software

Figura6.7.4.svg

Figure 6.7.4: Confidence Interval for the equivalence test

Continuous data: different variances

Next, the equivalence test for continuous data is presented, in the case where there are different variances. Data for the equivalence test for continuous data with different variances.

Torque Factor
18,8546077741739 A
6,98941806467814 A
14,8409521529361 A
8,15373813742441 A
15,9085222929569 A
21,1846587737283 A
14,3510843546642 A
25,5527578380754 A
10,9673807642822 A
10,0796131534572 A
16,4586796193723 C
17,9584727209347 C
15,4057263261248 C
15,8071977805526 C
16,4735547815596 C
19,8252196602517 C
16,5474171787359 C
18,2033810016129 C
19,132896973666 C
17,2772796628425 C
19,8351269157496 C
21,0858116172996 C
16,2548203231691 C

Table 6.7.30: Data for the equivalence test for continuous data with different variances

From Table 6.7.30, it is clear that $A$ refers to the procedure $A$ and $B$ refers to the procedure $B$. In this example, the equivalence margin is adopted $\Delta = 2$. You want to test:

$$ H_{0}: \mu_{a} - \mu_{c} \leq - \Delta \quad \text{ou} \quad \mu_{a} - \mu_{c} \geq \Delta \quad \text{vs} \quad H_{1}: - \Delta < \mu_{a} - \mu_{c} < \Delta $$

Therefore, using Table 6.7.30, we obtain:

  • $n_{a} = 10$ is the sample size referring to the procedure $A$;

  • $n_{c} = 13$ is the sample size referring to the procedure $C$;

  • $\bar{x}_{a} = 14,6883$ is the sample mean for the procedure $A$;

  • $\bar{x}_{c} = 17,7127$ is the sample mean for the procedure $C$;

  • $s_{a}^2 = 35,1424$ is the sampling variance of the procedure $A$;

  • $s_{c}^2 = 3,1998$ is the sampling variance of the procedure $C$;

  • $\Delta = 2$ is the equivalence margin.

First, the standard deviation associated with the data and the test is calculated, thus, as there are different variances, the standard deviation is given by:

$$s_{d} = \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}} = \sqrt{\frac{35,1424}{10} + \frac{3,1998}{13}} = 1,93917 $$

Under the null hypotheses, we have the test statistics:

$$T_{1} = \frac{( \bar{x}_{a} - \bar{x}_{c} ) + \Delta }{ \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}} } = \frac{( 14,6883- 17,7127 ) + 2 }{ 1,93917} = -1,0440 \tag{7.9}$$

and

$$T_{2} = \frac{\Delta - ( \bar{x}_{a} - \bar{x}_{c} ) }{ \sqrt{\frac{s^{2}_{a}}{n_{a}} + \frac{s^{2}_{c}}{n_{c}}} } = \frac{ 2 - ( 14,6883- 17,7127 ) }{1,93917 } = 2,0754 \tag{7.10}$$

Adopting a significance level of $5%$, we obtain $t_{(\nu, 1 - \alpha)} = t_{(10,2671, 0,95)} = 1,807688$, in which

$$ \nu = \dfrac{ (\frac{s_{a}^2}{n_{a}} + \frac{s_{c}^2}{n_{c}})^2 }{ \frac{(\frac{s_{a}^2}{n_{a}})^2}{(n_{a} - 1) } + \frac{(\frac{s_{c}^2}{n_{c}})^2}{(n_{c} - 1)} } = \dfrac{ (3,760379)^2 }{ \frac{12,34989}{(10 - 1) } + \frac{0,06058367}{(13 - 1)} } = 10,2671 $$

Therefore, we have to $T_{1} < t_{(10,2671, 0,95)}$, not rejecting the hypothesis $H_{01}$ and $T_{2} > t_{(42,86455, 0,95)}$, rejecting the hypothesis $H_{02}$. In this way, as only the hypothesis $H_{02}$, the null hypothesis is not rejected, that is, it is assumed that the procedures are not equivalent.

Calculating the confidence interval we obtain

  • $ LI = ( \bar{x}_{a} - \bar{x}_{c} ) - t_{(v, 1 - \alpha)} \times s_{e} = ( 14,6883 - 17,7127) - 1,807688 \times 1,93917 = -6,529814 $

  • $ LS = ( \bar{x}_{a} - \bar{x}_{c} ) + t_{(v, 1 - \alpha)} \times s_{e} = ( 14,6883 - 17,7127) + 1,807688 \times 1,93917 = 0,4810143 $

Logo $IC_{\mu_{a} - \mu_{c}, 1-(2\alpha)} = (-6,529814; 0,4810143)$. How $ LI \ < \ - 2 $ and $LS \ < \ 2$, the null hypothesis is not rejected, thus it is concluded that the procedures are not equivalent.

After calculating the confidence interval, the $\hbox{p-valor}$ for the test, which is given by:

$$\hbox{p-valor} = P(T_{1} > t_{(\nu; 1 - \alpha)}) + P(T_{2} > t_{(\nu; 1 - \alpha)}) = 0,8718$$

How the $\hbox{p-valor} \ > \ \alpha$, the null hypothesis is not rejected. Therefore, it is concluded that the procedures are not equivalent to the level of significance $\alpha = 5\char37$.

The results obtained using the equivalence test tool for continuous data from Action Stat are presented below.

Values
Degrees of Freedom 10.2671
P-value 0.8718
Average - A 14.6883
Average - B 17.7127
Standard Deviation - A 5.9281
Standard Deviation - B 1.7888
Sample Size - A 10
Sample Size - B 13
Confidence Level 0.95
Lower Limit -6.5299
Upper Limit 0.481
Equivalence margin 1
Test Statistics 1 - $H_{01}: m_1-m_2 \leq -d$ -1.044
Test Statistics 2 - $H_{02}: m_1-m_2 \geq d$ 2.0754

Table 6.7.31: Results obtained by the Action Stat software

Figura6.7.5.svg

Figure 6.7.5: Confidence Interval for the equivalence test

↑