Introduction and literature review

ANOVA

Analysis of variance (ANOVA) is concerned with analyzing variation in the means of several independent populations which developed by Ronald Fisher. The most important point in traditional ANOVA is a test about the significance of the difference among population means. This test permits the user to conclude whether the differences among the means of several populations are too deviated to be attributed to the sampling error or not [7]. The basic formulas of classical ANOVA model can be referred to any statistical book [1, 10, 19], but the classical ANOVA has been briefly reviewed in “Classical ANOVA” of this manuscript from [21].

In many applied sciences like geology, astrology, economics, medical sciences, engineering and environmental sciences, there exist actual cases where imprecise quantities can be assigned to experimental results. In such practical cases, non-precise numbers are suitable models to formalize and handle such imprecise quantities, which is the justification for require to fuzzy sets in ANOVA. The previous related works on fuzzy ANOVA are listed in the next subsection.

Fuzzy ANOVA

During the past three decades, several scientific works have been published in different fields of ANOVA using fuzzy set theory. These fields are as follow: one-way ANOVA testing procedure based on normal fuzzy random variables (FRVs) [18], asymptotic bootstrap ANOVA test for FRVs by one-sample [17], providing ANOVA method for the functional data in Hilbert space [2], asymptotic bootstrap ANOVA test for simple FRVs on the basis of multi-sample [7, 8], an optimization method for one-way ANOVA problem by the cuts of FRVs when observations are imprecise [29], investigating on one-way fuzzy ANOVA and comparing it with a regression model [4], processing method for ANOVA for the vague data using the moment correction [15], providing one-way ANOVA for triangular fuzzy numbers on the basis of the extension principle [21], developing one-way ANOVA for the closed interval observations [9], providing R package ‘SAFD’ for ANOVA test based on defuzzification of the FRVs [16], extending the classical ANOVA test statistics to investigate on fuzzy means of imprecise observation by bootstrap approach [25], providing ANOVA test based on least squares approach for FRVs [12], and proposing a decision-rule approach to test fuzzy hypotheses in ANOVA considering triangular imprecise observation and vague hypotheses [13].

Unlike these studies, another simple method for one-way ANOVA, as a meaningful extension on the classical ANOVA, is presented in this paper where the observations are symmetric triangular or normal fuzzy numbers. The proposed ANOVA method is on the basis of a distance between symmetric fuzzy numbers which is easy to be used by professional clients.

The organization of this paper is as follows. After introducing symmetric triangular and normal fuzzy numbers, some arithmetic operations for imprecise numbers are reviewed in “Preliminaries”. In “Classical ANOVA”, classical ANOVA is briefly explained from [21]. In “Analysis of variance based on fuzzy observations”, a new method for ANOVA test for fuzzy observations is provided and discussed. In “Fast computation formulas”, several fast computable formulas are presented for symmetric triangular and normal fuzzy data. A case study on several brands of soap is presented in “A case study on the process of soap production” which is revealing the ideas of this paper. Conclusion part is given in the final section.

Preliminaries

In this section, we review briefly some definitions which will be referred through this paper. Let X be a universal set and \(F(X)=\left\{ {A|A:X\rightarrow [0,1]} \right\} \). Any \(A\in F(X)\) is called a fuzzy set on X. In particular, let F(R) be the set of fuzzy numbers on R (the set of real numbers). The \(\alpha \)-cut of A is the crisp set given by \(A_\alpha =\{x\in X| A(x)\ge \alpha \}\), for any\(\alpha \in (0,1]\).

Definition 2.1

  1. (i)

    An especial case of fuzzy numbers called symmetric triangular fuzzy number (STFN) is defined by

    $$\begin{aligned} \widetilde{T}(x)=\left\{ {\begin{array}{l} {(x-a+s_a )}/{s_a } \quad {\text {if}} \, a-s_a \le x<a \\ (a+{s_a -x)}/{s_a } \quad {\text {if}} \, a\le x<a+s_a \\ 0 \quad {\text {elsewhere,}} \\ \end{array}} \right. \end{aligned}$$
    (1)

    and it is denoted with \(T(a,s_a )\).

  2. (ii)

    Another especial case of fuzzy numbers called normal fuzzy number (NFN) is defined by

    $$\begin{aligned} \widetilde{N}(x)=\exp \left[ {-\left( {\frac{x-a}{s_a }} \right) ^{2}} \right] ,\hbox { } x\in R, s_a >0 \end{aligned}$$
    (2)

    and it is shown with \(N(a,s_a )\). Here, \(a\in R\) and \(s_a \in R^{+}\) are named the core/mean and the spread of STFNs and NFNs, respectively. Moreover, \(F_T (R)\) and \(F_N (R)\) denote the sets of all STFNs and NFNs on R [23].

The following distance will be used through Sect. 4 to solve the problem of testing ANOVA based on fuzzy observations.

Definition 2.2

[23, 29] For any \(\tilde{A}, \tilde{B}\in F(R)\),

$$\begin{aligned} \tilde{A} \ominus \tilde{B}=\left\{ {\int _{ 0}^{ 1} { g(\alpha ) \left[ {\tilde{A}_\alpha (-)\tilde{B}_\alpha } \right] ^{2} {\text {d}}\alpha } } \right\} ^{\frac{1}{2}} \end{aligned}$$
(3)

is called the distance of \(\tilde{A}\) and \(\tilde{B}\) where

$$\begin{aligned} \tilde{A}_\alpha (-)\tilde{B}_\alpha= & {} \left\{ \left[ {a_1 (\alpha )-b_1 (\alpha )} \right] ^{2}\right. \nonumber \\&\left. +\left[ {a_2 (\alpha )-b_2 (\alpha )} \right] ^{2} \right\} ^{\frac{1}{2}} \text {for any} \alpha \in (0,1] \end{aligned}$$
(4)

measured the distance between \(\tilde{A}_\alpha =\left[ {a_1 (\alpha ),a_2 (\alpha )} \right] \) and \(\tilde{B}_\alpha =\left[ {b_1 (\alpha ), b_2 (\alpha )} \right] \), and g is a non-decreasing function on [0,1] with properties \(g(0)=0\) and \(\int _{ 0}^{ 1} {g(\alpha ) d\alpha } =\frac{1}{2}\) (for instance \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\) where \(m=1,2,3,\ldots )\).

Remark 2.1

Definition 2.2 is an extended version of the absolute deviation between two real numbers. Since, for two real numbers a and b by indicator functions \(I_{\{a\}} \) and \(I_{\{b\}} \) we have

More details of Definition 2.2 is presented in [23].

Theorem 2.1

The distance between two STFNs \(\tilde{A}=T(a,s_a )\in F_T (R)\) and \(\tilde{B}=T(b,s_b ) \quad \in F_T (R)\) is

$$\begin{aligned} \tilde{A}\ominus \tilde{B}=\left\{ {(a-b)^{2}+\frac{2}{(m+2)(m+3)}(s_a -s_b )^{2}} \right\} ^{\frac{1}{2}}, \end{aligned}$$
(5)

where the weighted function is \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\), for \(m=1,2,3,\ldots \).

Proof

For any \(\alpha \in (0,1]\),

\(\tilde{A}_\alpha =\left[ {a-s_a (1-\alpha ) , a+s_a (1-\alpha )} \right] \) and \(\tilde{B}_\alpha =[ b-s_b (1-\alpha ) , b+s_b (1-\alpha ) ]\).

Hence, according to Definition 2.2,

and so, using \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\) in Definition 2.2, it can be calculated that

for \(m=1,2,3,\ldots .\) \(\square \)

Theorem 2.2

The distance between two NFNs \(\tilde{A}=N(a,s_a )\in F_N (R)\) and \(\tilde{B}=N(b,s_b ) \in F_N (R)\) is

$$\begin{aligned} \tilde{A}\ominus \tilde{B}=\left\{ {(a-b)^{2}+\frac{1}{m+1}\left( {s_a -s_b } \right) ^{2}} \right\} ^{\frac{1}{2}}, \end{aligned}$$
(6)

where the weighted function is \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\), for \(m=1,2,3,\ldots \).

Proof

One can obtain \(\tilde{A}_\alpha =[ a-s_a \sqrt{-\ln \alpha },a+s_a \sqrt{-\ln \alpha } ]\) and \(\tilde{B}_\alpha =\left[ {b-s_b \sqrt{-\ln \alpha },} \right. \quad \left. {b+s_b \sqrt{-\ln \alpha }} \right] \), for any \(\alpha \in (0,1]\). Therefore, considering Definition 2.2,

Hence, using \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\), \(m=1,2,3,\ldots \) in Definition 2.2, it can be concluded that

\( =(a-b)^{2}+\frac{1}{(m+1)}(s_a -s_b )^{2}.\) \(\square \)

Remark 2.2

Note that in some cases the integral used in Definition 2.2 leads to an improper integral as appeared in the proof of Theorem 2.2.

Classical ANOVA

Although the classical ANOVA model can be referred to many statistical books as well as well-known references, e.g., see [1, 10, 19], but for a short introduction and review the methodology of ANOVA we propose “Classical ANOVA” from [21] since the considered notations are same here. So, we only present some classical formulas in Table 1 known as ANOVA table. To test whether the factor level means \(\mu _i \)’s are the same in quantity or not, the classical ANOVA has been contemplate to accept/reject hypothesis “H \(_{0 }\): \(\mu _1 =\mu _2 ={\cdots }=\mu _r \)”, against “\(H_{1 }\): not all \(\mu _i \)’s are equal”, based on observed random samples [11].

Table 1 Details of ANOVA

Analysis of variance based on fuzzy observations

Quantities of continuous variables are not precise numbers and a more appropriate way to describing them is using imprecise/fuzzy numbers [24, 26, 27]. To explain such situation, one can see several applied examples from references [11, 14, 28]. It must be noted that in this section, only the observed amounts of precise random variables can be regarded as imprecise numbers while the model for observed values is still precise as follows

$$\begin{aligned} Y_{ij} =\mu _i +\varepsilon _{ij} , \text {for}\, i=1,\ldots ,r \, \text {and}\, j=1,\ldots ,n_i . \end{aligned}$$
(7)

Note that a similar idea is used in [6, 11, 27] and in a such situation, observations and recorded data can be looked as STFNs \(\tilde{y}_{ij} =T(y_{ij} ,s_{y_{ij} } )\) or NFNs \(\tilde{y}_{ij} =N(y_{ij} ,s_{y_{ij} } )\), where \(\tilde{y}_{ij} \) is interpreted as “approximately \(y_{ij} \)”, for \(i=1,\ldots ,r\) and \(j=1,\ldots ,n_i .\)

Considering above discussion, in this section and hereafter, it is assumed that we are concerned with a classical analysis of variance, where the whole components of the problem such as random variables, hypothesis and parameters of populations are crisp as are introduced in “Classical ANOVA”. Therefore, the considered ANOVA model is \(Y_{ij} =\mu _i +\varepsilon _{ij} \), where \(\varepsilon _{ij} \sim N(0,\sigma ^{2})\) and so \(Y_{ij}^{\prime }\hbox {s}\) are ordinary random variables. But, just one point that will departed from classical ANOVA assumptions in the model (7) is that the sampled observations are fuzzy numbers rather than being real numbers and nothing else is altered in the prior testing ANOVA.

Regarding the introduced distance between two fuzzy numbers in Definition 2.2, the observed values of the statistics SST, SSTR, SSE, MSTR, MSE and F can be calculated by the following extended formulas based on fuzzy observations:

$$\begin{aligned} \widetilde{\text {sst}}=\sum _{i=1}^r {\sum _{j=1}^{n_i } {\left( {\tilde{y}_{ij}\ominus \overline{\tilde{y}_{..} } } \right) ^{2}} } , \end{aligned}$$
(8)
$$\begin{aligned} \widetilde{\text {sstr}}=\sum _{i=1}^r {n_i \left( {\overline{\tilde{y}_{_{i.} } } \ominus \overline{\tilde{y}_{..} } } \right) ^{2}} \end{aligned}$$
(9)

and

$$\begin{aligned} \widetilde{\text {sse}}=\sum _{i=1}^r {\sum _{j=1}^{n_i } {\left( {\tilde{y}_{ij} \ominus \overline{\tilde{y}_{i.} } } \right) ^{2}} } . \end{aligned}$$
(10)

In testing ANOVA based on fuzzy numbers, the observed amount of the test statistic is precisely computable by

$$\begin{aligned} \tilde{f}=\frac{\widetilde{\text {mstr}}}{\widetilde{\text {mse}}}=\frac{(n_t -r) \widetilde{\text {sstr}}}{(r-1) \widetilde{\text {sse}}}, \end{aligned}$$
(11)

in which \(\widetilde{\text {mstr}}=\frac{\widetilde{\text {sstr}}}{r-1}\) and \(\widetilde{\text {mse}}=\frac{\widetilde{\text {sse}}}{n_t -r}\) are respectively treatment mean square and the mean of squares.

Remark 4.1

The major problem in testing ANOVA is calculating the sum of squares of fuzzy observations. In this paper, we have used a logical defuzzification in Eqs. (810), since:

  1. (i)

    Although the square of a LR fuzzy number can be computed by extension principle, the result is not necessarily in the class of LR fuzzy numbers too [23]. Hence, one is faced with calculating the membership function of the addition of fuzzy numbers, with not necessarily the same shape functions, based on the Zadeh’s extension principle.

  2. (ii)

    Calculation of \(\widetilde{\text {sst}}\), \(\widetilde{\text {sstr}}\) and \(\widetilde{\text {sse}}\) by Zadeh’s extension principle, will lead us to a very vague observed statistic at the end of computations, since usually the experimenter is faced to \(\sum _{i=1}^r {n_i } \) fuzzy numbers in any testing ANOVA. In other words, as \(\sum _{i=1}^r {n_i } \) increases, then the support of \(\widetilde{\text {sst}}\), \(\widetilde{\text {sstr}}\) and \(\widetilde{\text {sse}}\) become larger and this means the vagueness of the observed fisher statistic. For instance, see the observed fisher statistic in Sect. 8.2 of [21] which is obtained via Zadeh’s extension principle approach.

  3. (iii)

    Following (ii), the truth level of decision making can be low in many applied situations. See definition “the fuzziness of the decision” from [11].

The decision rule Let \(\tilde{f}\) be the observed value of the test statistic and \(F_{1-\alpha ;r-1,n_t -r} \) be the \(\alpha \)th quantile of the fisher distribution with \(r-1\) and \(n_t -r\) degrees of freedom. At the given significance level \(\alpha \), \(H_{0}\) is accepted if \(\tilde{f}\le F_{1-\alpha ;r-1,n_t -r} \); otherwise \(H_{1}\) is accepted.

Remark 4.2

Considering Remark 2.1, if the observed data for test are real numbers \(y_{ij} \) which can be formulated by indicator functions \(I_{\{y_{ij} \}} \) for \(i = 1,\ldots ,r\) and \(j = 1,\ldots ,n_i \), then all the introduced extended statistics in Eqs. (8)–(11) coincide to statistics of classical ANOVA.

The rejection region in testing ANOVA is \(F>F_{1-\alpha ; r-1,n_t -r} \) and so under hypothesis \(H_0 \) the error probability is

$$\begin{aligned} P\left( {F>F_{1-\alpha ; r-1,n_t -r} } \right) =\alpha , \end{aligned}$$

where \(F_{1-\alpha ;r-1,n_t -r} \) is \(\alpha \)th quantile of F distribution. Therefore, in testing ANOVA based on fuzzy numbers, the p-value can be calculated by

\(p{\text {-value}}=P\left( {F>\tilde{f}} \right) \)

in which \(\tilde{f}\) is introduced by (11) as the observed amount of test statistic on the basis of fuzzy observations.

Fast computation formulas

ANOVA for symmetric triangular fuzzy observations

In this subsection, we assume all observations are STFNs. Then the observed values of statistics are obtained by the following theorems in testing ANOVA on the basis of STFNs.

Theorem 5.1

Based on symmetric triangular fuzzy observations \(\tilde{y}_{ij} =T(y_{ij} ,s_{y_{ij} } ) \quad \in F_T (R)\), \(i=1,2,\ldots ,r, j=1,2,\ldots ,n_i \), the observed values of \(\widetilde{\text {sst}}\), \(\widetilde{sstr}\) and \(\widetilde{sse}\) in testing ANOVA are the following real numbers:

$$\begin{aligned} \widetilde{\text {sst}}=sst_y +\frac{2}{(m+2)(m+3)}{\text {sst}}_{s_y } , \end{aligned}$$
(12)
$$\begin{aligned} \widetilde{\text {sstr}}=sstr_y +\frac{2}{\left( {m+2} \right) \left( {m+3} \right) }{\text {sstr}}_{s_y } \end{aligned}$$
(13)

and

$$\begin{aligned} \widetilde{\text {sse}}={\text {sse}}_y +\frac{2}{\left( {m+2} \right) \left( {m+3} \right) }{\text {sse}}_{s_y } , \end{aligned}$$
(14)

where \({\text {sst}}_y =\sum \nolimits _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {(y_{ij} -\overline{y_{..} } )^{2}} } \), \({\text {sstr}}_y =\sum \nolimits _{i=1}^r {n_i (\overline{y_{i.} } -\overline{y_{..} } )^{2}} \) and \({\text {sse}}_y =\sum \nolimits _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {(y_{ij} -\overline{y_{i.} } )^{2}} } \) are the observed sum of squares for the mean values of \(\tilde{y}_{ij} {\prime }\hbox {s}\), and also \({\text {sst}}_{s_y } =\sum _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {(s_{y_{ij} } -\overline{s_{y_{..} } } )^{2}} } \), \({\text {sstr}}_{s_y } =\sum \nolimits _{i=1}^r {n_i (\overline{s_{y_{i.} } } -\overline{s_{y_{..} } } )^{2}} \) and \({\text {sse}}_{s_y } =\sum \nolimits _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {(s_{y_{ij} } -\overline{s_{y_{i.} } } )^{2}} } \) are the observed sum of squares for spreads of \(\tilde{y}_{ij} {\prime }\hbox {s}\).

Proof

From Eq. (8), Definition 2.2 and Theorem 2.1, we have

where \(\overline{y_{..} } =\frac{1}{n_t }\sum \nolimits _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {y_{ij} } } \), \(\overline{s_{y_{..} } } =\frac{1}{n_t }\sum \nolimits _{i=1}^r {\sum \nolimits _{j=1}^{n_i } {s_{y_{ij} } } } \) and \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}.\) One can similarly prove Eqs. (13) and (14), by considering \(\overline{y_{i.} } =\frac{1}{n_i }\sum \nolimits _{j=1}^{n_i } {y_{ij} } \) and \(\overline{s_{y_{i.} } } =\frac{1}{n_i }\sum _{j=1}^{n_i } {s_{y_{ij} } } \) for \(i=1,\ldots ,r\). \(\square \)

Theorem 5.2

Under the same assumption of Theorem 5.1, the observed amount of ANOVA test statistic is

$$\begin{aligned} \tilde{f}=\frac{\left( {m+2} \right) \left( {m+3} \right) {\text {mstr}}_y +2{\text {mstr}}_{s_y } }{\left( {m+2} \right) \left( {m+3} \right) {\text {mse}}_y +2mse_{s_y } } , \end{aligned}$$
(15)

in which \({\text {mstr}}_y =\frac{{\text {sstr}}_y }{r-1}\) and \({\text {mse}}_y =\frac{{\text {sse}}_y }{n_t -r}\) are the observed mean squares of the mean values of \(\tilde{y}_{ij} \)’s, and also, \({\text {mstr}}_{s_y } =\frac{{\text {sstr}}_{s_y } }{r-1}\) and \({\text {mse}}_{s_y } =\frac{{\text {sse}}_{s_y } }{n_t -r}\) are the observed mean squares of spreads of \(\tilde{y}_{ij} \)’s.

Proof

By Eqs. (13 and 14), mean squares can be obtained as

$$\begin{aligned} \widetilde{\text {mstr}}={\text {mstr}}_y +\frac{2}{\left( {m+2} \right) \left( {m+3} \right) }{\text {mstr}}_{s_y } \end{aligned}$$
(16)

and

$$\begin{aligned} \widetilde{\text {mse}}={\text {mse}}_y +\frac{2}{\left( {m+2} \right) \left( {m+3} \right) }{\text {mse}}_{s_y } . \end{aligned}$$
(17)

Therefore, Eq. (15) can be easily followed from \(\widetilde{f}=\frac{\widetilde{{\text {mstr}}}}{\widetilde{{\text {mse}}}}\). \(\square \)

ANOVA for normal fuzzy observations

In this subsection, we assume all observations are NFNs in testing ANOVA. Then the observed values of statistics in ANOVA model can be easily obtained by the following theorems.

Theorem 5.3

Based on normal fuzzy observations \(\tilde{y}_{ij} =N(y_{ij} ,s_{y_{ij} } )\in F_N (R)\), \(i = 1,2,\ldots ,r, \quad j = 1,2,\ldots ,n_i \), the observed values of \(\widetilde{sst}\), \(\widetilde{sstr}\) and \(\widetilde{\text {sse}}\) in testing ANOVA are the following real numbers:

$$\begin{aligned} \widetilde{\text {sst}}={\text {sst}}_y +\frac{1}{m+1}{\text {sst}}_{s_y } , \end{aligned}$$
(19)
$$\begin{aligned} \widetilde{\text {sstr}}={\text {sstr}}_y +\frac{1}{m+1}{\text {sstr}}_{s_y } \end{aligned}$$
(20)

and

$$\begin{aligned} \widetilde{\text {sse}}={\text {sse}}_y +\frac{1}{m+1}sse_{s_y } , \end{aligned}$$
(21)

where \({\text {sst}}_y \), \({\text {sstr}}_y \) and \({\text {sse}}_y \) are the observed sum of squares for the mean values of \(\tilde{y}_{ij} {\prime }\hbox {s}\), and also \({\text {sst}}_{s_y } \), \({\text {sstr}}_{s_y } \) and \({\text {sse}}_{s_y } \) are the observed sum of squares for spreads of \(\tilde{y}_{ij} {\prime }\hbox {s}\).

Proof

From Eq. (8) and Theorem 2.2, one can conclude that

$$\begin{aligned} \widetilde{{\text {sst}}}= & {} \sum _{i=1}^r {\sum _{j=1}^{n_i } {\left( {\tilde{y}_{ij}\ominus \overline{\tilde{y}_{..} } } \right) ^{2}} }\\= & {} \sum _{i=1}^r {\sum _{j=1}^{n_i } {\left[ {N(y_{ij} ,s_{y_{ij} } )\ominus N(\overline{y_{..} } ,\overline{s_{y_{..} } } )} \right] ^{2}} }\\= & {} \sum _{i=1}^r {\sum _{j=1}^{n_i } {\left[ {\left( {y_{ij} -\overline{y_{..} } } \right) ^{2}+\frac{1}{m+1}\left( {s_{y_{ij} } -\overline{s_{y_{..} } } } \right) ^{2}} \right] } }\\= & {} \sum _{i=1}^r {\sum _{j=1}^{n_i } {\left( {y_{ij} -\overline{y_{..} } } \right) ^{2}} } +\frac{1}{m+1}\sum _{i=1}^r {\sum _{j=1}^{n_i } {\left( {s_{y_{ij} } -\overline{s_{y_{..} } } } \right) ^{2}} }\\= & {} {\text {sst}}_y +\frac{1}{m+1}sst_{s_y } , \end{aligned}$$

by considering \(g(\alpha )=\frac{m+1}{2}\alpha ^{m}\), \(m=1,2,3,\ldots \) in Definition 2.2. Similarly, one can prove Eqs. (20) and (21). \(\square \)

Remark 5.1

As a result of Eq. (19) for ANOVA based on normal fuzzy observations, not only increasing \(sst_y \)can be caused the increase of \(\widetilde{{\text {sst}}}\), but also increasing \({\text {sst}}_{s_y } \)can be caused the increase of \(\widetilde{{\text {sst}}}\). Similar results can be presented on the basis of formulas (19) and (20) in ANOVA based on normal fuzzy numbers, and also on the basis of formulas (12)–(14) for ANOVA based on symmetric triangular fuzzy numbers.

Theorem 5.4

Under the same assumption of Theorem 5.3, the observed value of ANOVA test statistic is

$$\begin{aligned} \tilde{f}=\frac{(m+1){\text {mstr}}_y +{\text {mstr}}_{s_y } }{(m+1){\text {mse}}_y +{\text {mse}}_{s_y } } , \end{aligned}$$
(22)

in which \({\text {mstr}}_y \) and \({\text {mse}}_y \) are the observed mean squares of the mean values of \(\tilde{y}_{ij} {\prime }\hbox {s}\), and also, \(mstr_{s_y } \) and \({\text {mse}}_{s_y } \) are the observed mean squares of spreads of \(\tilde{y}_{ij} \)’s.

Proof

By Eqs. (11), (19) and (20), mean squares can be obtained as

$$\begin{aligned} \widetilde{\text {mstr}}={\text {mstr}}_y +\frac{{\text {mstr}}_{s_y } }{m+1} \end{aligned}$$
(23)

and

$$\begin{aligned} \widetilde{\text {mse}}={\text {mse}}_y +\frac{{\text {mse}}_{s_y } }{m+1}. \end{aligned}$$
(24)

Therefore, Eq. (22) can be easily followed from \(\widetilde{f}=\frac{\widetilde{\text {mstr}}}{\widetilde{\text {mse}}}\). \(\square \)

Remark 5.2

In ANOVA test based on STFNs and NFNs, all the introduced extended statistics in Eqs. (12)–(24) reduce to presented statistics in Sect. 3 of [21] for classical ANOVA, where spreads of \(\tilde{y}_{ij} {\prime }\hbox {s}\) are a fixed number for \(i = 1,\ldots ,r\) and \(j = 1,\ldots ,n_i \).

Remark 5.3

Testing ANOVA discussed here is different from Wu’s approach [28]. His ANOVA method constructed on the basis of the cuts of FRVs, optimistic and pessimistic degrees by optimization. Also, the presented work in [21] is based on extension principle which can lead user to a very fuzzy decision by a very vague fisher statistic in practice. The major advantages of the presented method in this paper are efficiency for large sampling data and its simplicity in use by clients in the real situations.

In the next section, the presented ANOVA method will be exemplified for fuzzy observations by a relevant study.

A case study on the process of soap production

The aim of this study is to investigate on the amount of solubility for three different kinds of soaps in tepid water. The treatment factor, soap, has been selected to have three levels: regular, deodorant, and moisturizing brands, from the same manufactory. This example is extracted from an experiment done by Suyapa Silvia [3] where the data are fuzzified. It must be stressed that the condition of the presented ANOVA test/problem in this paper is exactly same as the presented ANOVA test in [21], but their solutions are different. Therefore, we do not present the story of experiment process to shorten the length of paper and we refer the readers to Sect. 8.2 of [21] for more details about gathering data. Now, we are going to respond to this question: Is there a significant difference in the weight loss (between three kinds of soaps) because of dissolution in water when allowed to soak for the same time?

There are some unavoidable elements in the experiment reported by Suyapa Silvia [3], such as: (1) inability of the experimenter to cut exactly the same cubes with same weights, (2) limitation of digital laboratory scales of precision of 10 mg, and etc. Hence, a better plan to record the observations is to use STFNs where some of them are definitely non-positive. Therefore, in this real case, we rewrite the data by STFNs as in Table 2, to protect the unavoidable elements described in above. The spread of each observed symmetric triangular fuzzy number is considered as a function of its mean in Table 2. In other words fuzzy observations have been considered by STFNs \(\tilde{y}_{ij} =T(y_{ij} , s_{y_{ij} } )\), such that \(s_{y_{ij} } ={\left| {y_{ij} } \right| }/{10}\), for \(i = 1,2,\ldots ,r\) and \(j = 1,2,\ldots ,n_i \). Note that in this study some observations are not reported by positive STFNs.

Table 2 Weight loss for soaps
Table 3 Details of ANOVA for soap experiment

For the presented triangular fuzzy observations in Table 2, we wish to test whether the weight loss of three soaps are the same or not. In other words, we are going to test “\(H_0 :\mu _1 =\mu _2 =\mu _3 \)”, versus “\(H_1 :\)not all\(_{ }\mu _i \)’s are equal, for \( i=\)1, 2, 3”.

Considering Theorems 5.1 and 5.2, one can calculate the observed values of ANOVA statistics which are reported in Table 3, based on the given STFNs. For instance, the total sum of squares is calculated for \(m=1\) by Theorem 5.1 as follows

$$\begin{aligned} \widetilde{\text {sst}}= & {} {\text {sst}}_y +\frac{2}{(m+2)(m+3)}{\text {sst}}_{s_y } \\= & {} \sum \limits _{i=1}^3 {\sum \limits _{j=1}^4 {(y_{ij} -\overline{y_{..} } )^{2}} } +\frac{2}{3\times 4}\sum \limits _{i=1}^3 {\sum \limits _{j=1}^4 {(s_{y_{ij} } -\overline{s_{y_{..} } } )^{2}} } \\= & {} \left[ {(-0.30-1.552)^{2}+\cdots +(1.82-1.552)^{2}} \right] \\&+\frac{2}{3\times 4}\left[ {(0.03-0.164)^{2}+\cdots +(0.182-0.164)^{2}} \right] \\= & {} 16.817+\frac{2}{3\times 4}0.134=16.839. \\ \end{aligned}$$

And, also by Theorem 5.2 the observed value of ANOVA test statistic for \(m=1\) is equal to

$$\begin{aligned} \tilde{f}= & {} \frac{\left( {m+2} \right) \left( {m+3} \right) {\text {mstr}}_y +2{\text {mstr}}_{s_y } }{\left( {m+2} \right) \left( {m+3} \right) {\text {mse}}_y +2{\text {mse}}_{s_y } } \\= & {} \frac{(3\times 4\times 2.0155)+(2\times 0.016)}{(3\times 4\times 0.0772)+(2\times 556\times 10^{-6})} \\= & {} 21.103. \end{aligned}$$

By comparing the computed ANOVA test statistic, one can accept the alternative hypothesis \(H_1 \) at significance level 0.05. The critical value of ANOVA test is \(F_{1-\alpha ;r-1,n_t -r} =F_{0.95;2,9} =4.256\) and also the computed p-value\( =18\times 10^{-5}\)shows accuracy of \(H_1 \) strongly. Therefore, we conclude that there is a relation between soaps and weight loss based on recorded vague data in Table 2. One can see the solution of this applied case study, but by extension principle, in Sect. 8.2 of [21], which leads the decision maker to a very vague observed fisher statistic, and as presented in Remark 4.1, this matter can be caused lowering the truth level of decision.

Conclusions and future works

In most applied sciences, there are several situations for which non-precise values can be assigned to their experiments. Fuzzy/non-precise numbers are suitable models to formalize the observed values in such situations and the observed data could be presented by the notion of fuzzy sets to analyze the experiment. The main contribution of this article is extending ANOVA test for fuzzy observations based on a distance between symmetric fuzzy numbers. Several fast computing formulas obtained where the observations are STFNs or NFNs. When all observations are real numbers, the presented ANOVA method reduces to the classical ANOVA approach, since the vagueness of the observed statistics is removed and what remained are only the central points of the statistics, as one can see in Theorems 5.1, 5.3 and Remark 4.2. The proposed ANOVA approach is a meaningful generalization for the classical ANOVA. Efficiency in large sampling is the major advantage of this method, and also this method is easy to be used by professional clients who are familiar with ANOVA, which are some of contributions of the presented manuscript.

For future research work, one can try to use the same approach of this paper to extend other experimental designs such as random block design, Latin square design, etc., where the observations are fuzzy numbers rather than being real numbers. Another interesting topic for future works is to extend the results of this paper for trapezoidal fuzzy numbers and non-symmetric fuzzy numbers, or in general for LR fuzzy numbers.