Skip to Content
EntropyEntropy
  • Feature Paper
  • Article
  • Open Access

1 May 2026

28 Pages

Degrees, Levels, and Profiles of Contextuality

and
1
Department of Psychological Sciences, Purdue University, West Lafayette, IN 47907, USA
2
Department of Psychology, University of Illinois Urbana-Champaign, Champaign, IL 61820, USA
*
Author to whom correspondence should be addressed.
This article belongs to the Section Multidisciplinary Applications

Abstract

We introduce a new notion, that of a contextuality profile of a system of random variables. Rather than characterizing a system’s contextuality by a single number, its overall degree of contextuality, we show how it can be characterized by a curve relating the degree of contextuality (including nonlocality, as a special case) to the level at which the system is considered, level 1 ⋯ n − 1 n > 1 n + 1 ⋯ N degree 0 ⋯ 0 d n > 0 d n + 1 ≥ d n ⋯ d N ≥ d N − 1 , where N is the maximum number of variables per system’s context. A system is represented at level n if one only considers the joint distributions with k ≤ n variables, ignoring higher-order joint distributions. We show that the level-wise contextuality analysis can be used in conjunction with any well-constructed measure of contextuality. We present a method of concatenated systems to explore contextuality profiles systematically, and we apply it to the contextuality profiles for three major measures of contextuality proposed in the literature.

1. Introduction

There is a consensus that it is not sufficiently informative to merely ascertain whether a system of random variables is contextual. It is also desirable and useful to measure its degree of contextuality (for a recent survey of the contextuality literature, see Ref. [1]). We recently proposed that it is also of interest to determine a system’s first level of contextuality. The meaning of this term is as follows. Let the joint distribution of any k variables in the system be called a k-marginal. For any n, if one characterizes the system by all its k-marginals with k ≤ n , ignoring the higher-level marginals, we say that the system is represented at level n. A contextual system is always noncontextual at level 1, and there is a lowest level n > 1 at which it becomes contextual. This n is the system’s first level of contextuality, and at this level, the degree of contextuality, d n , can be measured in several known ways. In Ref. [2], this procedure is described in detail for the measure based on the L 1 -distance between a point representing a system at a given level and the corresponding noncontextuality polytope.
We now show that the level-wise analysis can be used in conjunction with any other measure of contextuality (notably, the contextual fraction and the measure involving “negative probabilities”, both extended to apply to systems with disturbance). Moreover, for a system determined to be contextual at level n, one can continue to measure its contextuality degree at levels n + 1 , n + 2 , … , N (where N is the maximum number of variables per system’s context). In this way, one characterizes a system by a vector of contextuality values
level 1 ⋯ n − 1 n > 1 n + 1 ⋯ N degree 0 ⋯ 0 d n > 0 d n + 1 ≥ d n ⋯ d N ≥ d N − 1
that can be called the system’s contextuality profile. We discuss ways of exploring the patterns of contextuality systematically. For well-constructed measures of contextuality, d k is nondecreasing in k . This is true for the three measures mentioned above. The tendency of d k to increase with k is minimal for the “negative probabilities” measure and maximal for the L 1 distance measure, with the contextual fraction falling in between.
The structure of the paper is as follows. In Section 2, we remind the reader of the definition of contextuality. Section 3 introduces the notion of a level-n representation of a system of random variables. Section 4 presents the main idea of the paper: given a measure of contextuality to define a system’s contextuality profile as the sequence of its contextuality values at different levels. In Section 5, we discuss three specific measures of contextuality that have been proposed in the contextuality literature. In Section 6, we propose a method of concatenated systems for exploring how fast contextuality profiles grow from one level to another. Section 7 presents the results of applying this method to the three measures of contextuality just mentioned. Section 8 contains proofs of the regularities discovered in Section 7. In Section 9, we show that none of the three measures of contextuality is a function of another, by studying contextuality profiles of a special class of systems. Section 10 offers a summary and some questions for future work.

2. Definition of Contextuality

Consider a generic example of a system:
Entropy 28 00513 i001
We use our usual notation here. R q c is a random variable recorded in context c and answering question q. If R q c is defined for a given q , c , i.e., if the cell is not empty, we write q Entropy 28 00513 i022 c (question q is answered in context c). The main property of a system of random variables is that all the variables in each row (sharing a context) are jointly distributed, whereas no two variables from different rows are jointly distributed (they are stochastically unrelated).
A system is consistently connected if, for any q Entropy 28 00513 i022 c, c ′ ,
R q c = d R q c ′ ,
that is, any two variables answering the same question are identically distributed. A system is undisturbed (or strongly consistently connected) if, for any subset of questions q 1 , … , q k Entropy 28 00513 i022   c , c ′ ,
R q 1 c , … , R q k c = d R q 1 c ′ , … , R q k c ′ .
For instance, if the system R above is undisturbed, then
R 1 2 , R 2 2 , R 4 2 = d R 1 3 , R 2 3 , R 4 3 , R 2 1 , R 3 1 = d R 2 3 , R 3 3 , etc .
The notion of contextuality, extended to include disturbed systems, is described in detail in our previous publications (e.g., Refs. [2,3]). Put briefly, and using the system R in (2), we attempt to construct its probabilistic coupling
Entropy 28 00513 i002
in which all variables are jointly distributed (not just within contexts but overall), subject to the following constraints:
(a)
The variables in the rows of S are jointly distributed as the variables in the corresponding row of R , e.g.,
S 2 1 , S 3 1 = d R 2 1 , R 3 1 , S 1 2 , S 2 2 , S 4 2 , S 5 2 = d R 1 2 , R 2 2 , R 4 2 , R 5 2 , etc .
(b)
Any two variables answering the same question (e.g., S 2 1 and S 2 3 ) coincide with the maximal possible probability.
If a coupling of R satisfying (a) and (b) exists, the system R is noncontextual, otherwise it is contextual.
For consistently connected systems, where the variables answering the same question are identically distributed, the maximal probability of coinciding, e.g., of S 2 1 = S 2 3 , equals 1. That is, the requirement (b) then simply makes all variables answering the same question identical. In this case, one can replace the couplings of R with reduced couplings,
S 1 , S 2 , S 3 , S 4 , S 5 .
The system R then is noncontextual if and only if there exists a reduced coupling such that
S 2 , S 3 = d R 2 1 , R 3 1 , S 1 , S 2 , S 4 , S 5 = d R 1 2 , R 2 2 , R 4 2 , R 5 2 , etc .
Let v be a vector of probabilities (all vectors in this paper are columns unless shown as transposed, v ⊺ ) that represents the constraints imposed on the distribution of the variables in the system’s coupling. For now, it is not important precisely how it is constructed. Suffice it to stipulate that v uniquely determines the joint distributions of the variables in each context and also ensures that all same-question pairs of variables coincide with maximal probabilities. The existence of the coupling with properties (a) and (b) then means that there is a vector x satisfying the following matrix equation:
M x = v , x ≥ 0 1 ⊺ x = 1 .
Here, x ≥ 0 means that every component of x is nonnegative; 1 is a vector of 1s (so that 1 ⊺ x is the sum of the components of x ). The components of x are probabilities of all possible values of the coupling S. Thus, in our example (6), if all variables are dichotomous, there are 2 13 possible values, such as
S 2 1 = 1 , S 3 1 = 0 , S 1 2 = 0 , … , S 5 4 = 1 ,
and x contains the same number of probabilities. M is a Boolean incidence matrix which tells us which components of x sum to a given probability in v . The reason 1 ⊺ x = 1 is shown in (8) parenthetically is that this condition is satisfied automatically due to the fact that v represents probability distributions.

3. Level-Wise Representations

Let context c of a system R contain N random variables
R q 1 c , … , R q N c = R c .
The representation of this context at level n ≤ N is defined as a system R c n with N n contexts each containing a distinct n-tuple of variables selected from R c . For n > N , the level n representation R c n consists of a single context containing R c . (The reason we denote the row of variables R c , in italics, but denote the representing system R c n , in script letters, is that we use italics for sets of variables when they are jointly distributed and script letters when they are not, or are not necessarily. We use this notation convention throughout this paper.)
The representation of a system R at level n is a system R n consisting of the representation of all contexts of R at level n.
As an example, let us consider the second context of system R in (2):
Entropy 28 00513 i003
Skipping level 1, which will be discussed later, the representation of this row at level 2 is
Entropy 28 00513 i004
where, for any q , q ′ Entropy 28 00513 i022   c = 2 ,
R q 2 . x , R q ′ 2 . x = d R q 2 , R q ′ 2 .
In other words, each of the 4 2 = 6 rows of the new matrix is obtained by picking from the row R 2 a subset of two variables, and creating their distributional copy. Clearly, the system R 2 2 representing the row R 2 at level 2 is an undisturbed system: e.g.,
R 2 2.1 = d R 2 2.4 = d R 2 2.5 = d R 2 2 , R 4 2.2 = d R 4 2.4 = d R 4 2.6 = d R 4 2 , etc .
Moreover, the system R 2 2 is noncontextual because it has a coupling coinciding in distribution with R 2 . The system R 2 2 has the same individual and pairwise distributions as the row R 2 , but R 2 2 contains no higher-order distributions (no triples, quadruples, etc.) because joint distributions only exist within but not across the contexts.
The representation R 2 3 of the row R 2 at level 3 is obtained analogously, by picking from this row 4 3 = 4 possible triples of variables and creating their distributional copies:
Entropy 28 00513 i005
This system, too, is undisturbed by construction, and it is noncontextual as it has a coupling that coincides in distribution with R 2 .
Finally, the level 4 representation of the row R 2 simply coincides with it because there is only one quadruple we can select from R 2 :
Entropy 28 00513 i006
This system is trivially undisturbed and trivially noncontextual.
The higher-level representations R 2 5 , R 2 6 , etc., of R 2 also simply coincide with R 2 , which is explained as follows. A representation at level n > 1 should always be taken as cumulative, to include not only n-tuples but also all lower-level tuples. However, if n-tuples exist (the original row contains no less than n variables), inclusion or exclusion of the lower-level tuples never influences the contextuality status of the representing system (i.e., whether the system is contextual or noncontextual) or any reasonable measure of the degree of contextuality if it is contextual. So, e.g., the system R 2 3 with an added row c = 2.5 that contains the pair R 1 2.2 , R 2 2.2 ,
Entropy 28 00513 i007
is equivalent to R 2 3 in any considerations of contextuality. This is a general property of undisturbed systems. That is why we defined R 2 3 as containing only triples rather than also pairs and singles, and R 2 4 as containing only quadruples, ignoring triples, pairs, and singles. However, on the next level, 5, no quintuples of variables exist, so we have to include the highest existing tuple, which in this case is the quadruple:
Entropy 28 00513 i008
By the same logic, the representation of the first row of the system R ,
Entropy 28 00513 i009
is one and the same at all levels n > 1 :
R 1 = R 1 2 = R 1 3 = …
Let us now explain why we do not consider level 1 representations. In fact, we do include them in the above-given definition of the level-wise representations, but they are always trivially noncontextual, requiring no separate analysis. For our example, the row R 2 , the level 1 representation is
Entropy 28 00513 i010
A row with only one variable in it can be removed from any system without affecting its contextuality status.
With the algorithm specified, the level 4 representation of the entire system R is
Entropy 28 00513 i011
and its level 3 and level 2 representations are, respectively,
Entropy 28 00513 i012
and
Entropy 28 00513 i013

4. Profiles of Contextuality

Let us assume that we have a measure of contextuality that applies to any system R (from a sufficiently broad class of systems). Let us denote its value by deg R . The main idea of this paper is this: contextuality values of the level-wise representations of R ,
deg R 1 = 0 , deg R 2 = d 2 , … , deg R N = d N ,
can be considered the contextuality profile of the system R . Here, N is the maximal number of variables in a row of R . The values of d N + 1 , d N + 2 , etc., need not be considered because they always equal d N . We include the uninformative deg R 1 = 0 as the “anchoring point” of a profile, primarily for aesthetic reasons.
Figure 1 presents hypothetical contextuality profiles for four systems with N = 5 . Observe that at level 5 all four profiles have the same value. This common value is the contextuality degree that our measure deg will show for all four systems, because level 5 representations of these systems coincide with the systems themselves. The existing ways of contextuality analysis therefore would treat these four systems as essentially indistinguishable.
Figure 1. Four possible contextuality profiles with the same final degree of contextuality at level 5.
In Ref. [2], this idea is partially implemented for the measure of contextuality that we called “hierarchical.” The implementation involves levels of consideration, but the process described there stops at the first contextual level (the smallest n with d n > 0 ). In essence, for a contextual system, this merely replaces a point measure of contextuality (the single number d N ) with a two-point one:
( n min , d n min ) .
What we propose now is that
(A)
there is no reason to stop at the smallest n with d n > 0 , one can compute an entire function n ↦ d n ( n = 1 , 2 , … , N ), the system’s contextuality profile;
(B)
one can do this for any well-constructed measure of contextuality;
(C)
computing contextuality profiles for different measures can be an informative way of comparing them.
We propose that a well-constructed contextuality measure should have the following three properties:
  • for any noncontextual system, its final-level degree of contextuality is zero;
  • for any contextual system, its final-level degree of contextuality is positive;
  • its contextuality profile is a nondecreasing function of level.
These requirements are obviously satisfied for the three measures we are going to explore in the next section. However, it is worth mentioning that some seemingly reasonable measures of contextuality may fail them. Thus, in Ref. [3], we describe a measure abbreviated CNT 1 , which, as it turns out, may produce decreasing contextuality profiles. One therefore should consider this measure not well-constructed, and this is the reason we do not include it in the analysis below.

5. Three Measures of Contextuality

The three measures of contextuality we are interested in are described in detail in Ref. [3]. Here, we present their brief characterization.
The first measure is the already-mentioned “hierarchical” measure. In this paper we call it the distance measure. It is based on the notion of distance between a system and a noncontextuality polytope. Consider all possible matrices of a given format. The latter is defined by the set of all questions q, the set of all contexts c, and the relation q  Entropy 28 00513 i022 c. Two systems of the same format differ in the joint distributions within their corresponding contexts.
Let V be the set of all vectors v such that the equation (8) has a solution:
V = v : M x = v   for   some x ≥ 0 .
It is known that in the space of v -vectors, V forms a polytope, which we call the noncontextuality polytope for systems of a given format (with fixed individual distributions of the variables). If the system we study (let us denote its vectorial representation by v * ) is contextual, then it falls outside V , and its distance from V can be viewed as a measure of contextuality. When dealing with probability distributions, the distance measure of choice is L 1 , defined by
L 1 a , b = ∑ a i − b i ,
where the summation is over all dimensions of the vector space. Our distance measure is
deg = L 1 v * , V ,
the L 1 -distance between the vector v * and the polytope V , as shown in Figure 2. We denote this measure as CNT 2 , following the nomenclature adopted in several previous publications, e.g., [3].
Figure 2. A two-dimensional projection of a vector v * and a noncontextuality polytope V , with the L 1 -distance between them.
The next measure of contextuality is based on quasi-probabilities (positive and negative numbers that sum to 1). It is obtained by dropping in the definition of noncontextuality (8) the nonnegativity constraint x ≥ 0 :
M x = v 1 ⊺ x = 1 .
This matrix equation is always solvable for x , but some of the components of a solution may be negative. Let x denote the vector of absolute values of the components of x . It is easy to see that
1 ⊺ x ≥ 1 ,
and the equality is achieved if and only if x contains no negative components. Among all solutions x one can always find some for which 1 ⊺ x has the smallest possible value, and then
deg = 1 ⊺ x − 1
is a measure of contextuality. We refer to it as the quasi-probability measure of contextuality and denote it as CNT 3 , as in our previous publications.
For the third measure of contextuality, replace the equality in the definition of noncontextuality (8) with
M x ≤ v , x ≥ 0 1 ⊺ x ≤ 1 ,
where the inequalities are taken to hold component-wise. This inequality always has solutions, and among them there are some with the maximal value of 1 ⊺ x . Then
deg = 1 − 1 ⊺ x max ,
is a measure of contextuality, and it is called contextual fraction, CNTF .
The contextual fraction and the quasi-probability measures were first proposed by Abramsky and Brandenburger [4]. We later extended them to also apply to disturbed systems (see Ref. [2] for details). Note that the vector v representing a system, and therefore also the matrix M , are generally different for different measures of contextuality. For our three measures, they are the same for CNT 2 and CNT 3 but different for CNTF (for details, see Refs. [2,3]). Note also that when applied to undisturbed systems, CNT 2 and CNTF produce the same contextuality values for complete couplings and reduced couplings; however, CNT 3 values for complete and reduced couplings generally differ (which may be viewed as a weakness of this measure).
Each of the three measures, CNT 2 , CNT 3 , and CNTF , can be, at least in principle, applied to systems of any format. In particular, given a system R , each of them can be applied to all its level representations,
R 1 , R 2 , … , R N ,
to form their respective profiles.

6. Concatenated Systems

Contextuality profiles can be studied in many ways because, as all functions, they can be characterized in many ways. Moreover, as should be expected, their properties depend on the format of the systems we choose. This paper being introductory, we focus here on one aspect of contextuality profiles only: comparing our three measures of contextuality, CNT 2 , CNT 3 , and CNTF , on how fast the degree of contextuality tends to increase with its level. Let us explain what we mean by this.
Suppose a measure deg produces a profile that changes its value from d n to d n + 1 as one moves from level n to level n + 1 ; and suppose that the corresponding values for another measure, deg ′ , are d n ′ and d n + 1 ′ . Both measures are well-constructed, so
d n + 1 ≥ d n , d n + 1 ′ ≥ d n ′ .
However, it would not be informative to directly compare the numerical values of d n + 1 − d n and d n + 1 ′ − d n ′ (unless one of these differences is zero). The two measures are on completely different scales, so we may be comparing meters to grams, or even worse, meters to decibels. The same reasoning applies, of course, to their ratios, differences of their cubes, or other measures of incrementation. We need to find a way to consider the increase from d n to d n + 1 and from d n ′ to d n + 1 ′ intrinsically, within their respective scales.
How can this be done? The increase from d n to d n + 1 occurs because the system R n + 1 contains n + 1 -tuples of variables, in addition to the k-tuples of variables with k ≤ n contained in R n . The degree of contextuality brought in by these n + 1 -tuples somehow combines with the contextuality present in R n to produce d n + 1 . If we had a way of measuring the contextuality Δ n + 1 brought in by these n + 1 -tuples only, then we would be able to compare d n + Δ n + 1 to d n + 1 :
(1)
d n + Δ n + 1 < d n + 1 (superadditive increment);
(2)
d n + Δ n + 1 = d n + 1 (additive increment);
(3)
d n + Δ n + 1 > d n + 1 (subadditive increment);
(4)
d n = d n + 1 (plateau).
But is there a way to find Δ n + 1 independently of d n + 1 ? We propose one such way as follows.
Consider two systems,
Entropy 28 00513 i014
and
Entropy 28 00513 i015
where some of the variables shown can be constants or empty cells. Let system A have a contextuality profile
k 1 2 ⋯ n deg A k 0 d 2 ⋯ d n ≥ 0 .
For system B , let us assume that its contextuality profile is
k 1 2 ⋯ n n + 1 deg B k 0 0 ⋯ 0 Δ n + 1 ≥ 0 .
That is, this system is noncontextual at all levels except for the last one. Let us concatenate these two systems into a larger system as shown:
Entropy 28 00513 i016
Note that the sets of both questions and contexts of the two subsystems are completely disjoint. This means that a coupling of A ∗ B can be constructed as separate couplings for A and for B , with their joint distribution defined arbitrarily (in particular, they can always be treated as independent events). In other words, for all k ≤ n , since B k is noncontextual, the contextuality of A ∗ B k is determined by A k alone. It is natural to expect then that, for all k ≤ n ,
deg A ∗ B k = deg A k .
This can even be added as a fourth requirement for a well-constructed measure of contextuality, in addition to the three requirements listed at the end of Section 4. Whether we do this or not, this property holds for all three measures, CNT 2 , CNT 3 , and CNTF . Consequently, for all of them we have
k 1 2 ⋯ n deg A k 0 d 2 ⋯ d n deg B k 0 0 ⋯ 0 deg A ∗ B k 0 d 2 ⋯ d n .
At the next, n + 1 st, level, we get
k 1 2 ⋯ n n + 1 deg A k 0 d 2 ⋯ d n d n deg B k 0 0 ⋯ 0 Δ n + 1 deg A ∗ B k 0 d 2 ⋯ d n d n + 1 .
The reason d n repeats at level n + 1 for deg A k is that A n + 1 = A n .
Clearly, we now have what we have aimed at: the possibility to compare d n + 1 and d n + Δ n + 1 , in order to determine if the combination of d n and Δ n + 1 by the measure deg is additive, superadditive, or subadditive (including the plateau case, d n + 1 = d n ).

7. Contextuality Profiles for the Three Measures

We implement the method presented in the previous section using its simplest special case: with n = 2 . Figure 3 and Figure 4 illustrate the logic and the possible types of contextuality profiles for this special case.
Figure 3. Contextuality profiles for the method of concatenated systems, n = 2 . The boxes represent the systems being concatenated, with the numbers in them indicating their final level of contextuality. Symbols attached to the curves indicate contextuality values.
Figure 4. Four possible types of the contextuality profiles for concatenated systems ( n = 2 ): superadditive (top left panel), additive (top right), subadditive (bottom left), and, as the extreme case of subadditivity, plateau (bottom right).
We chose the formats for systems A and B as shown,
Entropy 28 00513 i017
with all variables being dichotomous (say, ± 1 ). The format of the concatenated system then acquires the form
Entropy 28 00513 i018
The systems we explored were obtained by specifying the joint distribution of the variables in the systems A and B . Each contextuality profile shown below has symbols attached to it, referring to the systems whose detailed specifications are given in Appendix A.
Figure 5 and Figure 6 show the contextuality profiles for a selection of undisturbed concatenated systems. We see that the measure CNT 2 shows precise additivity, while both CNT 3 and CNTF are subadditive. The subadditivity in these measures, especially in CNT 3 , is often extreme, resulting in a plateau in most cases shown.
Figure 5. Contextuality profiles for a selection of undisturbed concatenated systems. Symbols A and B with indices refer to A - and B -subsystems, respectively (as specified in Appendix A). The dashed lines attached to each profile show the increment from d 2 to d 2 + Δ 3 : if it is above the corresponding segment of the profile, we have subadditivity, and when the dashed line is not seen (coincides with the segment), we have additivity.
Figure 6. The same as in Figure 5, for another selection of the A -subsystems.
There is no qualitative difference between the profiles of the undisturbed and disturbed concatenated systems. Figure 7 and Figure 8, for a selection of disturbed systems, exhibit the same pattern as in Figure 5 and Figure 6.
Figure 7. Contextuality profiles for a selection of disturbed A -subsystems concatenated with a disturbed subsystem B 3 . The rest is the same as in Figure 5.
Figure 8. The same as in Figure 7 but for another selection of A -subsystems concatenated with a disturbed subsystem B 3 .
Now that the subadditivity of the contextuality profiles for CNT 3 and CNTF has been observed, can we determine its cause? It turns out we can. Figure 9 and Figure 10 exhibit the contextuality profiles for CNT 3 and CNTF with the superimposed profiles of the individual A - and B -subsystems. One can see that d 3 coincides with Δ 3 if the latter exceeds d 2 ; otherwise, d 3 remains on the level of d 2 . In other words, for both CNT 3 and CNTF profiles shown, we have the rule of maximum:
d 3 = max d 2 , Δ 3 .
The subadditivity therefore is the consequence of
max d 2 , Δ 3 ≤ d 2 + Δ 3 .
Figure 9. CNTF profiles for a selection of concatenated systems ( A 1 ∗ B 2 left and A 3 ∗ B 2 right). The dashed lines represent the CNTF profiles for the systems’ B -parts. The dotted lines represent the CNTF profiles for the system’s A -parts (invisible if it coincides with a system’s profile).
Figure 10. The same as in Figure 9 but for CNT 3 .
Table 1 and Table 2 provide an illustration of the addition rule for CNT 2 and the rule of maximum for CNT 3 and CNTF using larger selections of subsystems A and B than in our figures.
Table 1. Contextuality value d 3 of undisturbed concatenated systems for the measures CNT 2 , CNT 3 , and CNTF . The value of d 3 for A i ∗ B j is in the intersection of column A i and row B j . The corresponding values of d 2 for A i and Δ 3 for B j are shown, respectively, just under A i and just to the right of B j . Observe that for CNT 2 , d 3 is the sum of the corresponding values of d 2 and Δ 3 ; and for both CNT 3 and CNTF , d 3 is the larger of the corresponding values of d 2 and Δ 3 . (Note that for the A -subsystems, CNT 2 = CNT 3 = 1 2 CNTF , as it was previously established for all cyclic systems [5]).
Table 2. Contextuality value d 3 of disturbed concatenated systems for the measures CNT 2 , CNT 3 , and CNTF . The rest as in Table 1.
The results presented here are just a fraction of the systems we explored for this work: 6 × 49 undisturbed A - B pairs and 125 × 49 disturbed A - B pairs (with many different subsystems producing identical profiles). The contextuality curves we had to leave out in order not to clutter the graphs and tables or multiply their number conform to the same pattern: CNT 2 is always additive, and the measures CNT 3 and CNTF are subadditive because they conform to the rule of maximum.
With these regularities being established as inductive generalizations, we can look for their analytic justification. Although this is not essential for this paper, whose purpose is to introduce and demonstrate the usefulness of the concept of a contextuality profile for the discovery of regularities, we outline these analytic arguments below.

8. Outlines of the Proofs

For CNT 2 , since B is noncontextual at level 2, the value of d 2 is the L 1 -distance between the system A and the level-2 noncontextuality polytope. The system and the polytope are defined in the space spanned by the axes representing all pairwise probabilities. The value of Δ 3 is the L 1 -distance between the system B and the level-3 noncontextuality polytope. Because B is noncontextual at level 2, this distance is entirely within the space spanned by the axes representing all triple probabilities. In the system A * B , the axes of these two spaces, of the pairwise and of the triple probabilities, are combined as mutually orthogonal subspaces. By the nature of L 1 , therefore, the overall distance in this combined space is the sum of the two subspace distances. If instead of the L 1 -distance we chose an L p -distance with p > 1 , the overall distance would have satisfied
d 3 p = d 2 p + Δ 3 p .
The argument establishing the rule of maximum is essentially the same for CNT 3 and CNTF . Let us present the details for the latter. With reference to (30) and (31), let M A be the Boolean incidence matrix for system A , let x A = α 1 , … , α K be a vector of probabilities assigned to the K combinations of values of the variables in A , and let v A be the vector of probabilities. We define analogously M B , x B = β 1 , … , β L , and v B for system B , and M A B , x A B = γ 11 , … , γ K L , and v A B for system A ∗ B . Here, γ i j is assigned to the concatenation of the ith combination of values in A and the jth combination of values in B ; and
v A B = v A v B .
In matrix M A , let a i s i = 1 , … , K be the entries of the row corresponding to the sth element v A s of v A , and let b j t j = 1 , … , L be the entries of the row corresponding to the tth element v B t of v B . For matrix M A B , let c i j s and c i j t be the entries of the rows corresponding, respectively, to v A s and to v B t in (44). We have
M A x A = ⋮ ∑ i = 1 K a i s α i ⋮   ≤ ⋮ v A s ⋮ = v A ,
M B x B = ⋮ ∑ j = 1 L b j t β j ⋮   ≤ ⋮ v B t ⋮ = v B
and
M A B x A B = ⋮ ∑ i = 1 K ∑ j = 1 L c i j s γ i j ⋮ ∑ j = 1 L ∑ i = 1 K c i j t γ i j ⋮   ≤ ⋮ v A s ⋮ v B t ⋮ = v A v B .
Due to the structure of a concatenated system,
c i j s = a i s
irrespective of j = 1 , … , L , and
c i j t = b j t
irrespective of i = 1 , … , K . Therefore, the inequality for system A * B can be written as
M A B x A B = ⋮ ∑ i = 1 K a i s ∑ j = 1 L γ i j ⋮ ∑ j = 1 L b j t ∑ i = 1 K γ i j ⋮   ≤ ⋮ v A s ⋮ v B t ⋮ = v A v B .
Let us show now that
1 ⊺ x A B max ≤ min 1 ⊺ x A max , 1 ⊺ x B max .
Indeed, if we had, e.g., 1 ⊺ x A B max > 1 ⊺ x B max , then we could redefine the values of x B as
β j = ∑ i = 1 K γ i j , j = 1 , … , L ,
and, by substituting in (46), obtain a coupling of B with a greater value of 1 ⊺ x B than 1 ⊺ x B max . The inequality (46) with the redefined vector will be preserved because it holds in (50).
It is also true that
1 ⊺ x A B max ≥ min 1 ⊺ x A max , 1 ⊺ x B max ,
because if we had, e.g., 1 ⊺ x A B max < 1 ⊺ x B max ≤ 1 ⊺ x A max , then we could redefine the values of x A B as
γ i j = β j if i = 1 , 0 if i > 1 ,
and obtain thereby a coupling of A ∗ B with a greater value of 1 ⊺ x A B than 1 ⊺ x B max . The inequality in (50) with the redefined vector will be preserved because it holds in (46). The conjunction of (51) and (53) yields the rule of maximum, (42), because
CNTF = 1 − 1 ⊺ x max .
For CNT 3 , with reference to (27) and (29), we show that
1 ⊺ x A B max ≥ min 1 ⊺ x A max , 1 ⊺ x B max ,
because if, e.g., 1 ⊺ x A B max < 1 ⊺ x B max , one could redefine the values of x A B as in (54), and achieve an increase in 1 ⊺ x A B . By the same argument as above, the equality M A B x A B = v A B will be preserved because M B x B = v B .
Also,
1 ⊺ x A B max ≤ min 1 ⊺ x A max , 1 ⊺ x B max ,
because if, e.g., 1 ⊺ x A B max > 1 ⊺ x B max ≥ 1 ⊺ x A max , one could redefine the values of x B as in (52), and achieve an increase in 1 ⊺ x B .
The equality M B x B = v B will be presented because M A B x A B = v A B . (Note that the dimensions and entries of the vectors and matrices are different for CNT 3 and CNTF ; see Ref. [3]).

9. Hypercyclic Systems

Hypercyclic systems were introduced in Ref. [6] as a set of systems that are both highly structured and sufficiently diverse to form testing grounds for contextuality research. The subsystem A in our concatenated systems is a cyclic system of rank 3 (a special case of a hypercyclic system), and the subsystem B is a hypercyclic system of order 3 and rank 4 but without a last row (so abridged to speed up execution of the linear programs). The order of a hypercyclic system is the number of variables in each context; the rank is the number of the system’s contexts (which is the same as the number of questions). The variables in each row are cyclically shifted clockwise with respect to the previous row.
Figure 11 and Figure 12 present contextuality profiles for a selection of hypercyclic systems of order 3 and rank 4:
Entropy 28 00513 i019
Figure 11. Contextuality profiles for a selection of undisturbed hypercyclic systems of order 3 and rank 4.
Figure 12. Contextuality profiles for a selection of disturbed hypercyclic systems of order 3 and rank 4.
Figure 11 has the property common to all undisturbed hypercyclic systems: they are noncontextual at all but the final level (in our case, level 3). Some disturbed hypercyclic systems have this property too, but it does not hold generally.
However, this property is not why we consider the hypercyclic systems here. In this paper they serve another purpose. We know from Ref. [6] that none of the three measures of contextuality we studied, CNT 2 , CNT 3 , and CNTF , is a function of any other one of them when considered across different systems. Specifically, it was shown that, for any ordered pair of these contextuality measures, e.g., CNTF , CNT 2 , one can find two hypercyclic systems such that the first measure changes from one of them to another, while the second measure remains constant. For our selection of undisturbed hypercyclic systems, this is shown in Figure 13. The interpretation of this observation is that, unlike, say, CNTF and log CNTF , the three measures CNT 2 , CNTF , and CNT 3 reflect pairwise distinct aspects of contextuality.
Figure 13. Relationship between the overall contextuality degrees generated by two contextuality measures applied to our selection of undisturbed hypercyclic systems. The horizontal lines show that the abscissa measure cannot be a function of the ordinate one; the vertical lines show that the ordinate measure cannot be a function of the abscissa one.
The question we pose in this paper is whether the same is true for the contextual profiles generated by the three measures for one and the same system. Figure 14 tells us that this is indeed the case: for any ordered pair of our three measures, one can find a system such that the first measure changes between levels 2 and 3 while the second measure remains constant.
Figure 14. Relationship between the segments of contextuality profiles (between levels 2 and 3, as indicated by arrows) generated by two measures applied to the same disturbed hypercyclic system. The horizontal lines show that the abscissa profile cannot be a function of the ordinate one; the vertical lines show that the ordinate profile cannot be a function of the abscissa one.

10. Concluding Discussion

We have introduced a new notion, that of a contextuality profile of a system, and investigated some of its basic properties. We compared the contextuality profiles of three well-constructed measures, CNT 2 , CNTF , and CNT 3 , using the method of concatenated systems. We established that CNT 2 profiles are additive, while CNTF and CNT 3 profiles are subadditive because they conform to the rule of maximum. We have also established that none of these three measures is a function of any other, not only across different systems (which has been known previously), but also within a system taken at different levels.
Note that concatenation can be used recursively, creating combinations of three and more systems, as shown in Figure 15. For concatenations of A 1 , … , A k , the arguments for the additivity of CNT 2 and the maximum rule for CNTF and CNT 3 can be recursively applied to show that
CNT 2 = ∑ i = 2 k Δ i , CNT 3 = max ( Δ 2 ′ , … , Δ k ′ ) , CNTF = max ( Δ 2 ″ , … , Δ k ″ ) ,
where we replaced d 2 with Δ 2 for uniformity and added primes to emphasize that the value of Δ i is measure-specific.
Figure 15. Contextuality profiles for a triple concatenation of systems. The boxes represent the systems being concatenated, with the numbers in them indicating their final level of contextuality.
This being only a concept paper, it leaves many questions unanswered. From a mathematical point of view, much remains to be investigated analytically regarding the properties of the contextuality profiles. However, aside from the intrinsic mathematical interest, the main substantive question is that of applicability: do the contextuality profiles tell us something about other, independently defined properties of the empirical entities described by the systems? Could, e.g., the resource-theoretical aspects of the systems [7] be better understood if we relate them to various aspects of contextuality profiles rather than to the overall degree of contextuality only? Another possible application was pointed out to us by Paweł Kurzyński [8]: he suggested comparing the contextuality profiles of the two well-known quantum systems, the Greenberger–Horne–Zeilinger system (GHZ, [9]) and the W-state one [10]. Both are known to be triple-entangled, but only the W-state system is also pairwise-entangled. So it is of interest to see if this difference is reflected in the contextuality profiles. It does not have to be, because the relationship between quantum entanglement and contextuality (including nonlocality as its special case) is not one-to-one. An entangled system may very well be noncontextual, and it is only an assumption based on an empirical generalization that any unentangled system is noncontextual.
The tripartite W-state is
W = 1 3 001 + 010 + 100 ,
and the W-state system of random variables has the format
Entropy 28 00513 i020
where Z i and X i denote the dichotomous measurements on the ith particle along the z-axis and x-axis, respectively. For convenience, we write A i c and B i c in place of R Z i c and R X i c . The distributions of the variables in each context of W , as derived from (59), are shown in Appendix B. The contextuality of system W at level 3 was established in Ref. [11], and our computations (using reduced couplings because the system is undisturbed) show that at this level CNT 2 = 1 8 , CNT 3 = 1 2 and CNTF = 1 2 . Ref. [12] claims to have established that the W-state system is also contextual at level 2, aligning with the fact that its components are pairwise entangled. However, this claim is not supported by our computations, showing that W is noncontextual at level 2. Appendix B presents the coupling of the system (Table A8) from which all the pairwise probabilities in W (Table A7) are obtained as marginals. This is a reduced coupling
S 1 , S 2 , S 3 , T 1 , T 2 , T 3
such that
S i , S j = d A i c , A j c , S i , T j = d A i c , B j c , T i , T j = d B i c , B j c
for all i , j ∈ 1 , 2 , 3 and any context c.
The tripartite GHZ-state is
G H Z = 1 2 y + y + y + + y − y − y − ,
and the GHZ system of random variables has the same format as W . All its properties, however, can be established in its abridged version
Entropy 28 00513 i021
with the distributions shown in Appendix B. The contextuality of this system at level 3 was also established in Ref. [11], and our computations, using reduced couplings, yield CNT 2 = 1 4 , CNT 3 = 1 , and CNTF = 1 . The noncontextuality of the GHZ system at level 2 is obvious because the random variables at this level are stochastically independent in every context (see Table A7 in Appendix B).
As we see, the contextuality profiles of the systems GHZ and W are qualitatively the same (0 at level 2 and some positive value at level 3), in spite of the fact that a physical system in the W state is pairwise entangled while a physical system in the G H Z state is not. More work is needed in search of more informative applications.

Author Contributions

The initial idea: E.N.D. Numerical analysis and software: V.H.C. The authors contributed equally to all other aspects of the work. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No data was used for this research. The code for computing the measures and for the numerical exploration can be found at https://github.com/herulor/ContextualityMeasures/ (accessed on 23 March 2026).

Acknowledgments

We are indebted to Paweł Kurzyński for critically reading the first draft of this paper and making valuable suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1, Table A2, Table A3, Table A4, Table A5 and Table A6 show the distributions of all the systems mentioned in the main text. Disturbed systems are indicated by primes ( A 1 ′ , B 2 ′ , H 0 ′ , etc.).
Table A1. Distributions of the variables in the selection of the undisturbed A -subsystems used. All variables are dichotomous ( ± 1 ). Each number shows the probability with which the corresponding variable(s) equal 1. Thus, a b c in the second row means that P R 2 2 = 1 = a , P R 3 2 = 1 = b , and P R 2 2 = R 3 2 = 1 = c .
Table A2. The same as Table A1 but for the selection of the disturbed A -subsystems used.
Table A3. Distributions of the variables in the selection of the undisturbed B -subsystems used. As in Table A1, each number shows the probability with which the corresponding variable(s) equal 1. Thus, a b c d e f g in the second row means that P R 2 2 = 1 = a , P R 2 2 = R 3 2 = 1 = d , P R 2 2 = R 3 2 = R 4 2 = 1 = g , etc.
Table A4. The same as Table A3, but for the selection of the disturbed B -subsystems used.
Table A5. Distributions in the selection of the undisturbed hypercyclic systems used. The format is the same as in Table A3.
Table A6. Distributions in the selection of the disturbed hypercyclic systems used. The format is the same as in Table A3.

Appendix B

Here, we present the distributions of the random variables in each context of the systems W and GHZ (Table A7). Because our claim that the W is noncontextual at level 2 seems to contradict the claim made in Ref. [12], we present in Table A8 the distribution of a reduced coupling of W from which one can compute the probabilities shown in Table A7. For instance, in Table A7,
P A 1 2 = B 2 2 = 1 = 1 6 .
By definition of the reduced coupling, we should have
P A 1 2 = B 2 2 = 1 = P S 1 = T 2 = 1 .
From Table A8, we find
P S 1 = T 2 = 1 = P S 1 S ¯ 2 S ¯ 3 T 1 T 2 T 3 + P S 1 S ¯ 2 S ¯ 3 T ¯ 1 T 2 T 3 = 1 8 + 1 24 = 1 6 .
Table A7. Distribution of variables in the W and GHZ systems. The format is the same as in Table A3.
Table A8. Distribution of a reduced coupling S 1 , S 2 , S 3 , T 1 , T 2 , T 3 of system W (with S and T being distributional copies of A and B , respectively). The events whose probabilities are shown in the bottom row are values of the reduced coupling S 1 = ± 1 , S 2 = ± 1 , S 3 = ± 1 , T 1 = ± 1 , T 2 = ± 1 , T 3 = ± 1 , shown in the following way: S i indicates S i = 1 and S ¯ i indicates S i = − 1 ; analogously for T j and T ¯ j . All values of the reduced coupling not explicitly shown have probability zero.

References

  1. Budroni, C.; Cabello, A.; Gühne, O.; Kleinmann, M.; Larsson, J.-Å. Kochen-specker contextuality. Rev. Mod. Phys. 2022, 94, 045007. [Google Scholar] [CrossRef] [Scilit]
  2. Dzhafarov, E.N.; Kujala, J.V.; Cervantes, V.H. Contextuality in Random Variables: A Systematic Introduction; Cambridge University Press: Cambridge, UK, 2026. [Google Scholar]
  3. Kujala, J.V.; Dzhafarov, E.N. Measures of contextuality and noncontextuality. Phil. Trans. Roy. Soc. A 2019, 377, 20190149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Abramsky, S.; Brandenburger, A. The sheaf-theoretic structure of nonlocality and contextuality. New J. Phys. 2011, 13, 113036–113075. [Google Scholar] [CrossRef] [Scilit]
  5. Camillo, G.; Cervantes, V.H. Measures of contextuality in cyclic systems and the negative probabilities measure CNT3. Phil. Trans. Roy. Soc. A 2024, 382, 20230007. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Cervantes, V.H.; Dzhafarov, E.N. Hypercyclic systems of measurements and patterns of contextuality. Eur. Phys. J. Spec. Top. 2023, 232, 3355–3358. [Google Scholar] [CrossRef] [Scilit]
  7. Abramsky, S.; Barbosa, R.S.; Mansfield, S. The contextual fraction as a measure of contextuality. Phys. Rev. Lett. 2017, 119, 050504. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Kurzyński, P. (Adam Mickiewicz University, Poznań, Poland). Personal communication, 2026.
  9. Greenberger, D.M.; Horne, M.A.; Zeilinger, A. Going beyond Bell’s Theorem. In Bell’s Theorem, Quantum Theory and Conceptions of the Universe; Kafatos, M., Ed.; Kluwer: Dordrecht, The Netherlands, 1989. [Google Scholar]
  10. Dür, W.; Vidal, G.; Cirac, J.I. Three qubits can be entangled in two inequivalent ways. Phys. Rev. A 2000, 62, 062314. [Google Scholar] [CrossRef] [Scilit]
  11. Cabello, A. Bell’s theorem with and without inequalities for the three-qubit Greenberger-Horne-Zeilinger and W states. Phys. Rev. A 2002, 65, 032108. [Google Scholar] [CrossRef] [Scilit]
  12. Tura, J.; Sainz, A.B.; Vértesi, T.; Acín, A.; Lewenstein, M.; Augusiak, R. Translationally invariant multipartite Bell inequalities involving only two-body correlators. J. Phys. A 2014, 42, 424024. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.