Abstract

A complex stochastic Boolean system (CSBS) is a complex system depending on an arbitrarily large number of random Boolean variables. CSBSs arise in many different areas of science and engineering. A proper mathematical model for the analysis of such systems is based on the intrinsic order: a partial order relation defined on the set of all binary -tuples of 0s and 1s. The intrinsic order enables one to compare the occurrence probabilities of two given binary -tuples with no need to compute them, simply looking at the relative positions of their 0s and 1s. Regarding the analysis of CSBSs, the intrinsic order reduces the complexity of the problem from exponential ( binary -tuples) to linear ( Boolean variables). In this paper, using the intrinsic ordering, we compare the occurrence probabilities of any two binary -tuples having the same number of 1-bits (i.e., the same Hamming weight). Our results can be applied to any CSBS with mutually independent Boolean variables.

1. Introduction

This paper deals with the mathematical modeling of a special kind of complex systems, namely, those depending on an arbitrary number of random Boolean variables. That is, the basic variables of the system are assumed to be stochastic and they only take two possible values, or , with probabilities where the values will be referred to as the basic probabilities or parameters of the system.

We call such a system a complex stochastic Boolean system (CSBS). These systems can be found in many different scientific or engineering areas like mechanical engineering, meteorology and climatology, nuclear physics, complex systems analysis, operations research, and so forth. CSBSs also arise very often when analyzing system safety in reliability engineering and risk analysis; see, for example, [13].

Each one of the possible outcomes associated with a CSBS is given by a binary -tuple (or bitstring of length ) , and it has its own occurrence probability .

Throughout this paper, the Boolean variables of the CSBS are assumed to be mutually independent, so that the occurrence probability of a given binary string of length can be easily computed as that is, is the product of factors if , if .

As an example of CSBS, we can consider a technical system like the accumulator system of a pressured water reactor in a nuclear power plant, taken from [4]. This technical system depends on mutually independent basic components . Assuming that if component fails, otherwise; then the failure and working probabilities of component will be , , respectively. The probability of failure of each basic component is given, so that all basic probabilities are known.

Thus, this accumulator system can be considered as a CSBS where each one of its system binary states (i.e., binary 83-tuple ) describes the current situation of its basic components (failing or working). For instance, the binary -tuple represents the system state for which the first components fail, while the last components work. Moreover, the occurrence probability of the binary state can be immediately computed using (2) as follows:

Real-world CSBSs arising in many different engineering areas, like the above-mentioned accumulator system, are typically analyzed in many works dealing with system safety and reliability theory. In this context, let us mention that formula (2) for computing the binary -tuple probabilities associated with a CSBS on -independent Boolean variables (basic components) can be seen as a particular case of Theorem 1 in [5]. In that theorem, the author considers a coherent or noncoherent component system with dependent or independent failures and proves that the reliability/unreliability function in the system is a multilinear function of the vector of all conditional component (success/failure) probabilities. Let us recall that a system is said to be coherent if its structure (Boolean) function satisfies [5] and if are such that for all , and for some , then

Moreover, we must highlight that the assumption of independent failures (an essential hypothesis for formula (2) and for the results presented in our paper), while being classical and advantageous from a calculation point of view, is a bit restrictive for realistic applications. In this respect, in [6] one can find an illustration of the issues when realistic systems are addressed.

The behavior of a CSBS is determined by the ordering between the current values of the associated binary -tuple probabilities . Due to the exponential complexity of the problem, computing all these probabilities—by using (2)—and ordering them in decreasing or increasing order of their values is only possible in practice for small values of the number of basic variables. However, for large values of , it is necessary to use alternative procedures to compare the binary string probabilities. For this purpose, a simple, positional criterion to order binary -tuple probabilities is used. The so-called intrinsic order criterion (IOC) enables one to compare (to order) the occurrence probabilities , of two given binary -tuples , without the need to compute them, simply looking at the relative positions of their s and s. IOC was first described in [7], and it naturally leads to a partial order relation on the set of all the binary strings of length . The so-called intrinsic order provides a unified approach for the analysis and modeling of CSBSs.

The most useful representation of a CSBS is the intrinsic order graph: a symmetric directed graph on vertices, displaying all the binary -tuples from top to bottom in decreasing order of their occurrence probabilities.

In this context, the main goal of this paper is to compare the occurrence probabilities of two binary strings with the same length and containing the same number of -bits. Our results will be derived from IOC, as well as from other properties of the intrinsic ordering, and they will be illustrated with the intrinsic order graph.

For this purpose, this paper has been organized as follows. Section 2 contains all the background about the intrinsic order relation, required to make this paper self-contained. Section 3 is devoted to present our new results concerning the comparison between the occurrence probabilities of two binary strings with the same number of -bits. Finally, conclusions are presented in Section 4.

2. Preliminaries

Let us start this section with some basic concepts and notations which will be used in the rest of the paper.

Definition 1. Let and let be a binary -tuple. Then we have the following.(i)The decimal equivalent of will be denoted by (to avoid confusion with the 10th component of the binary vector ); that is, In what follows, we indistinctly denote the -tuple by its binary representation or by its decimal representation , and we use the symbol “” to denote the conversion between both representations; that is, (ii)The Hamming weight (or simply the weight) of is the number of -bits in ; that is, (iii)The complementary -tuple of is the -tuple obtained by changing all its s to s and vice versa; that is,
Note that two binary -tuples are complementary if and only if they sum up to . Then, using the decimal numbering, the complementary -tuple of a binary -tuple is given by

Example 2. Let and . Then (i);(ii);(iii);.

2.1. The Intrinsic Order Criterion

According to (2), the ordering between two given binary string probabilities and depends, in general, on the parameters , as the following simple example shows.

Example 3. Let , , and . Using (2), we have

However, assuming a simple (but not restrictive in practice) hypothesis on the parameters , we can assure that for some pairs of binary -tuples, the ordering between their occurrence probabilities is independent of the basic probabilities . More precisely, as mentioned in Section 1, to overcome the exponential complexity in the problem of computing and sorting the binary string probabilities, the following simple positional criterion has been introduced in [7].

Theorem 4 (the intrinsic order theorem). Let . Let be mutually independent stochastic Boolean variables whose parameters satisfy Then the probability of the binary -tuple is (intrinsically) less than or equal to the probability of the binary -tuple (here, “intrinsically” means: for all set satisfying (13)) if and only if either the matrix has no columns or for each column in there exists (at least) one corresponding preceding column (IOC).

Remark 5. In the following, we assume that the parameters always satisfy condition (13). Note that this hypothesis is not restrictive for practical applications because for any index such that , we only need to consider the variable , instead of . Next, we order the new Boolean variables in increasing order of their probabilities. This reduces the complexity in sorting tasks from exponential (ordering binary -tuple probabilities) to linear (ordering Boolean variable probabilities).

Remark 6. The column preceding each column is not required to be necessarily placed at the immediately previous position, but just at previous position.

Remark 7. The term “corresponding,” used in Theorem 4, has the following meaning: for each two columns in matrix there must exist (at least) two different columns preceding each other. Formally, there must exist (at least) one injective precedence map from the set of columns of onto the set of its columns that assigns to each column a column preceding it. In other words, for each column in matrix , the number of preceding columns must be strictly greater than the number of preceding columns.

The matrix condition IOC, stated by Theorem 4, is called the intrinsic order criterion because it is independent of the basic probabilities , and it only depends on the relative positions of the bits in the binary -tuples and to be compared. Theorem 4 naturally leads to the following partial order relation on the set ; see [7]. The so-called intrinsic order will be denoted by “”, and when we will say that is intrinsically less than or equal to .

Definition 8. For all, From now on, the partially ordered set (poset, for short) will be denoted by .

Example 9. For , we have and because the matrices do not satisfy IOC (Remark 7). Thus, and are incomparable by intrinsic order; that is, the ordering between the two probabilities and depends on the current values of parameters , as Example 3 has shown.

Example 10. For , we have because matrix satisfies IOC (Remark 6). Thus, for all s.t. (13),

Example 11. For , we have because matrix satisfies IOC (Remark 6). Thus, for all s.t. (13),

Example 12. For all , the binary -tuples are the maximum and minimum elements, respectively, in the poset . Indeed, for every binary -tuple , both matrices satisfy IOC, since they have no columns! Thus, for all binary -tuples , and for all s.t. (13),

Many different properties of the intrinsic order relation can be derived from its simple matrix description IOC. For the purpose of this paper, it suffices to recall here the following necessary (but not sufficient) condition for intrinsic order.

Note that if , then there must exist (at least) one injective precedence map from the set of columns of onto the set of its columns (Remark 7). Then in matrix the number of columns must be less than or equal to the number of columns. But this is equivalent to saying that the number of -bits in must be less than or equal to the number of -bits in . That is

Corollary 13. The intrinsic order respects the Hamming weight. More precisely, for all, ,

The converse of Corollary 13 is false, as the following two simple counterexamples (indeed, the simplest ones that one can find) show.(i)For , , and , we have since matrix does not satisfy IOC.(ii)For and for , , we have (see Example 9)

2.2. The Intrinsic Order Graph

To finish this section, we present the graphical representation of the poset . As it is well known, the usual representation for a poset is its Hasse diagram (see [8] for more details about posets and their diagrams). Let us recall that, for a poset and for , we say that covers if with no other elements between them. The Hasse diagram of a finite poset is the graph whose vertices are the elements of and whose edges are the cover relations (with the convention that if covers , then is drawn above ). The Hasse diagram of our poset will be also called the intrinsic order graph for variables, denoted as well by . So, this is a directed graph (digraph, for short) whose vertices are the binary -tuples of s and s, and whose edges go downward from to whenever covers (denoted by ); that is,

For small values of , the intrinsic order graph can be directly constructed by using Theorem 4. For instance, for , the Hasse diagram of is shown in Figure 1. Indeed, using Theorem 4, we have that , since matrix has no columns! So, has a downward edge from to , and this is in accordance with the fact that since due to (13).

However, for large values of , a more efficient method is needed. For this purpose, in [9] the following algorithm for iteratively building up (for all ) from (depicted in Figure 1) has been developed.

Theorem 14 (building up from ). Let . The graph of the poset (on nodes) can be drawn simply by adding to the graph of the poset (on nodes) its isomorphic copy (on nodes). This addition must be performed by placing the powers of at consecutive levels in the Hasse diagram of . Finally, the edges connecting one vertex of with the other vertex of are given by the set of vertex pairs

In Figure 2, the iterative process described in Theorem 14 is illustrated by showing the intrinsic order graphs for from left to right. Basically, to draw , we first add to its isomorphic copy , and then we connect one-to-one the nodes of “the second half of the first half” to the nodes of “the first half of the second half.” Hence, the intrinsic order graph is a fractal or self-similar graph in the sense that it can be recursively constructed from the previous by some operations which preserve self-similarity; that is, it appears similar at different scales (orders). In Figure 3, the intrinsic order graphs for are depicted using the binary representation instead of the decimal representation of their nodes.

Note that has a downward path from to if and only if . For instance, looking at the digraph (the right-most one in Figure 2), we confirm that , as shown in Example 10.

On the contrary, each pair of nonconnected vertices in the digraph of , either by one edge or by a longer downward path, means that and are incomparable by intrinsic order; that is, and . For instance, looking at the digraph (the third one from the left in Figure 2), we confirm that and , as shown in Example 3 or in Example 9.

Also, looking at any of the digraphs in Figure 2, we can confirm Corollary 13, as well as the fact that and are the maximum and minimum elements, respectively, in the poset , as shown in Example 12.

Recall that two binary -tuples are complementary if and only if their decimal equivalents sum up to (see Definition 1-(iii)). Hence, one can observe that any two complementary -tuples are placed at symmetric positions (with respect to the central point) in the intrinsic order graph . For instance, this is the case in the graph for the following pairs of binary -tuples (see the right-most graphs in Figures 2 and 3):

The edgeless graph associated with a given graph is obtained by removing all its edges, keeping its (isolated) nodes at the same positions. In Figures 4 and 5, the edgeless intrinsic order graphs for and , respectively, are depicted.

For further theoretical properties and practical applications of the intrinsic order and the intrinsic order graph, we refer the reader to [7, 913] and to the references therein.

3. Occurrence Probabilities of Bitstrings with the Same Weight

In this section, we present our results about the comparison, by intrinsic order, between the occurrence probabilities of two binary -tuples having the same Hamming weight.

For the special case that the bitstrings have the same weight, the intrinsic order can be characterized as stated by the following two lemmas.

Lemma 15. Let . Let with . Then if and only if the matrix has neither nor columns, or for each column in there exists exactly one corresponding preceding column.

Proof. Using Definition 8 and Theorem 4, we have that if and only if matrix satisfies IOC, if and only if either matrix has no columns or for each column in matrix there exists at least one corresponding preceding column (IOC). But, under the assumption that and have the same number of 1-bits, IOC is actually equivalent to saying that matrix has neither nor columns (in this case, obviously, ), or for each column in matrix there exists exactly one corresponding preceding column.

The following lemma characterizes the intrinsic order between binary -tuples of the same weight, involving only their 1-bits, with no need to use their 0-bits.

Lemma 16. Let . Let with . Then if and only if for each -bit in there exists exactly one corresponding -bit in placed at the same or at a previous position.

Proof. Using Lemma 15, we have that if and only if matrix has neither nor columns, or each column in is preceded by exactly one corresponding column. On one hand, each column in (say ) corresponds to a 1-bit placed at the same position in both binary -tuples and (). On the other hand, each column in preceded by its corresponding column () corresponds to a 1-bit in placed at a previous position than the 1-bit in .

Now, we introduce the following notation for binary -tuples.

Definition 17. Let and let with Hamming weight . Then(i)the vector of positions of s of is the vector of positions of its -bits, displayed in increasing order from the left-most position to the right-most position, and it will be denoted by (ii)the vector of positions of s of is the vector of positions of its -bits, displayed in increasing order from the left-most position to the right-most position, and it will be denoted by

We also use the symbol “” to denote the conversion between any of these vector notations and the binary or decimal representation of the bitstrings.

Example 18. Let and . Then we have , , and

The following theorem characterizes the intrinsic order between binary -tuples of the same weight, using the vectors of positions of their 1-bits, introduced in Definition 17-(i).

Theorem 19. Let . Let with . Let be the vectors of positions of 1-bits of and , respectively. Then

Proof. Using Lemma 16, we have that if and only if for each -bit in there exists exactly one corresponding -bit in placed at the same or at a previous position. Now, according to Definition 17-(i), sweeping the -bits of from left to right, the last assertion is clearly equivalent to saying that and the proof is concluded.

Example 20. Let and let Using Theorem 4, we have that since matrix Now, since , then alternatively, we can apply Theorem 19. In this way, we also conclude that , since

Given a fixed binary -tuple with weight , the following theorem provides us with the set and with the number of all the binary -tuples with weight that are intrinsically less than or equal to (i.e., ). That is, it provides the set and the number of all the binary -tuples with the same weight as , and whose occurrence probabilities are always (i.e., intrinsically) less than or equal to the occurrence probability of .

Theorem 21. Let , , with (nonzero) Hamming weight . Let be the vector of positions of s of . Then the set of the binary -tuples with weight , which are intrinsically less than or equal to , is given by Moreover, the number of the binary -tuples with weight , that are intrinsically less than or equal to , is given by

Proof. Using Theorem 19, we have that and this proves (45). Finally, (46) immediately follows from the fact that (see Definition 17-(i)) and from (45).

Now, we establish the dual result of Theorem 21. For this purpose, we need the following lemma.

Lemma 22. Let and let . Then if and only if .

Proof. Clearly, the , , , and columns in matrix , respectively, become , , , and columns in matrix . Hence, using Definition 8 and Theorem 4, we have that if and only if matrix satisfies IOC if and only if matrix satisfies IOC if and only if .

Given a fixed binary -tuple with weight , the following theorem provides us with the set and with the number of all the binary -tuples with weight that are intrinsically greater than or equal to (i.e., ). That is, it provides the set and the number of all the binary -tuples with the same weight as , and whose occurrence probabilities are always (i.e., intrinsically) greater than or equal to the occurrence probability of .

Theorem 23. Let , , with (nonzero) Hamming weight . Let be the vector of positions of s of . Then the set of the binary -tuples with weight , which are intrinsically greater than or equal to , is given by Moreover, the number of the binary -tuples with weight , which are intrinsically greater than or equal to , is given by

Proof. It suffices to use Lemma 22, Theorem 21, and the obvious fact that the 0-bits and 1-bits in and become the 1-bits and 0-bits, respectively, in and .

Example 24. Let and let . Then .
On one hand, the vector of positions of 1-bits in is Then, using (45) in Theorem 21, we have that the binary -tuples with weight , which are intrinsically less than or equal to , are the following: Moreover, using (46) in Theorem 21, we can confirm that the cardinality of this set is On the other hand, the vector of positions of 0-bits in is Then, using (48) in Theorem 23, we have that the binary -tuples with weight , which are intrinsically greater than or equal to , are the following: Moreover, using (49) in Theorem 23, we can confirm that the cardinality of this set is

The following corollary characterizes the binary -tuples for which the number of binary -tuples intrinsically less than or equal to is maximum (minimum, resp.).

Corollary 25. Let and with Hamming weight . Then(i)the set of binary -tuples with weight (the same as ) which are intrinsically less than or equal to is the set of all the binary -tuples with weight if and only if the -bits of are placed at the right-most positions; that is, if and only if has the general pattern (ii)the set of binary -tuples with weight (the same as ) which are intrinsically less than or equal to is reduced to the -tuple if and only if the -bits of are placed at the left-most positions; that is, if and only if has the general pattern

Proof. (i) Let be the vector of positions of s of . Using (46) in Theorem 21, we have that if and only if , , if and only if has the pattern (56).
(ii) Using again (46) in Theorem 21, we have that if and only if , , if and only if has the pattern (57).

Finally, we establish the dual result of Corollary 25.

The following corollary characterizes the binary -tuples for which the number of binary -tuples intrinsically greater than or equal to is maximum (minimum, resp.).

Corollary 26. Let and with Hamming weight . Then(i)the set of binary -tuples with weight (the same as ) which are intrinsically greater than or equal to is the set of all the binary -tuples with weight if and only if the -bits of are placed at the left-most positions; that is, if and only if has the general pattern (ii)the set of binary -tuples with weight (the same as ) which are intrinsically less than or equal to is reduced to the -tuple if and only if the -bits of are placed at the right-most positions; that is, if and only if has the general pattern

Proof. Using Lemma 22 and Corollary 25, the proof is straightforward.

4. Conclusions

Given a fixed binary -tuple , we have provided the set and the number of all the binary -tuples with the same weight as , and whose occurrence probabilities are always (i.e., intrinsically) less than or equal to the occurrence probability of . Also, we have provided the set and the number of all the binary -tuples with the same weight as , and whose occurrence probabilities are always (i.e., intrinsically) greater than or equal to the occurrence probability of . The special patterns of those binary strings for which the above numbers of binary strings are maximum and minimum have been identified. For future research, new relations between the intrinsic ordering and the Hamming weights of the binary -tuples (arising in CSBSs) are worth to be studied.

Conflict of Interests

The author declares that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The author sincerely thanks the anonymous referee for useful comments and suggestions. This work was partially supported by the “Ministerio de Economía y Competitividad” (Spanish Government) and FEDER, through Grant Contract CGL2011-29396-C03-01.