<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Experimental Study of Concise Representations of Concepts and Dependencies</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aleksey Buzmakov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Egor Dudyrev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sergei O. Kuznetsov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tatiana Makhalova</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amedeo Napoli</string-name>
          <email>amedeo.napoli@loria.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>HSE University</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>HSE University</institution>
          ,
          <addr-line>Perm</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Université de Lorraine</institution>
          ,
          <addr-line>CNRS, Inria, LORIA, F-54000 Nancy</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <abstract>
        <p>In this paper we are interested in studying concise representations of concepts and dependencies, i.e., implications and association rules. Such representations are based on equivalence classes and their elements, i.e., minimal generators, minimum generators including keys and passkeys, proper premises, and pseudo-intents. All these sets of attributes are significant and well-studied from the computational point of view, while their statistical properties remain to be investigated. This is the purpose of this paper to study these singular attribute sets and in parallel to study how to evaluate the complexity of a dataset from an FCA point of view. In the paper we analyze the empirical distributions and the sizes of these particular attribute sets. In addition we propose several measures of data complexity relying on these attribute sets in considering real-world and related randomized datasets.</p>
      </abstract>
      <kwd-group>
        <kwd>Formal Concept Analysis</kwd>
        <kwd>attribute sets</kwd>
        <kwd>equivalence classes</kwd>
        <kwd>closed sets</kwd>
        <kwd>generators</kwd>
        <kwd>keys</kwd>
        <kwd>data complexity</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In this paper we are interested in measuring “complexity” of a dataset in terms of Formal
Concept Analysis (FCA [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). On the one hand, we follow the lines of [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] where the “closure
structure” and the “closure index” are introduced and based on the so-called passkeys, i.e.,
minimum generators in an equivalence class of itemsets. On the other hand, we would like to
capture statistical properties of a dataset, not just extremal characteristics such as the size of
a passkey. In the following we introduce an alternative approach and we try to measure the
complexity of a dataset in terms of five main elements that can be computed in a concept lattice,
namely intents (closed sets), pseudo-intents, proper premises, keys (minimal generators), and
passkeys (minimum generators). We follow a more practical point of view and we study the
distribution of these diferent elements in various datasets. We also investigate the relations that
these five elements have with one another, and the relations with implications and association
rules.
      </p>
      <p>
        For example, the number of intents gives the size of the lattice, while the number of
pseudointents gives the size of the Duquenne-Guigues basis [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], and thus the size of the minimal
implication basis representing the whole lattice. The size of the covering relation of the concept
lattice gives the size of the “base” of association rules. Moreover, passkeys are indicators related
to the closure structure and the closure index indicates the number of levels in the structure.
The closure structure represents a dataset, so that closed itemsets are assigned to the level of the
structure given by the size of their passkeys. The complexity of the dataset can be read along
the number of levels of the dataset and the distribution of itemsets w.r.t. frequency at each level.
The most interesting are the “lower” levels, i.e., the levels with the lowest closure index, as
they usually contain itemsets with high frequency, contrasting the higher levels which contain
itemsets with a quite low frequency. Indeed, short minimum keys or passkeys correspond to
implications in the related equivalence class with minimal left-hand side (LHS) and maximal
right-hand side (RHS), which are the most informative implications [
        <xref ref-type="bibr" rid="ref14 ref4 ref5">4, 5</xref>
        ].
      </p>
      <p>
        In this paper we discuss alternative ways of defining the “complexity” of a dataset and how it
can be measured in the related concept lattice that can be computed from this dataset. For doing
so, we introduce two main indicators, namely (i) the probability that two concepts  1 and  2 are
comparable, (ii) given two intents  and  , the probability that the union of these two intents is
again an intent. The first indicator “measures” how close is the lattice to a chain, and the second
indicator “measures” how close the lattice is to a distributive one [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]. Indeed, a distributive
lattice may be considered as less complex than an arbitrary lattice, since, given two intents 
and  , their meet  ∩  and their join  ∪  are also intents. Moreover, in a distributive lattice,
all pseudo-intents are of size 1, meaning that every implication in the Duquenne-Guigues base
has a premise of size 1. Following the same line, given a set of  attributes, the Boolean lattice
℘() is the largest lattice that one can build from a context of size  ×  , but ℘() can also be
considered as a simple lattice, since it can be represented by the set of its  atoms. In addition,
the Duquenne-Guigues implication base is empty, so there are no nontrivial implications in
this lattice. Finally, a Boolean lattice is also distributive, thus it is simple in terms of the join of
intents.
      </p>
      <p>
        This paper presents an original and practical study about the complexity of a dataset through
an analysis of specific elements in the related concept lattice, namely intents, pseudo-intents,
proper premises, keys, and passkeys. Direct links are drawn with implications and association
rules, making also a bridge between the present study in the framework of FCA, and approaches
more related to data mining, actually pattern mining and association rule discovery. Indeed, the
covering relation of the concept lattice makes a concise representation of the set of association
rules of the context [
        <xref ref-type="bibr" rid="ref14 ref4 ref5">4, 5</xref>
        ], so that every element of the covering relation, i.e., a pair of neighboring
concepts or edge of the concept lattice, stays for an association rule, and reciprocally, every
association rule can be given by a set of such edges. Frequency distribution of confidence of the
edges can be considered as an important feature of the lattice as a collection of association rules.
      </p>
      <p>For studying practically this complexity, we have conducted a series of experiments where we
measure the distribution of the diferent elements for real-world datasets and then for related
randomized datasets. Actually these randomized datasets are based on corresponding real-world
datasets where either the distribution of crosses in columns is randomized or the whole set of
crosses is randomized while keeping the density of the dataset. We can observe that randomized
datasets are usually more complex in terms of our indicators than real-world datasets. This
means that, in general, the set of “interesting elements” in the lattice is smaller in real-world
datasets.</p>
      <p>The paper is organized as follows. In the second section we introduce the theoretical
background and necessary definitions. Then the next section presents a range of experiments
involving real-world and randomized datasets. Finally, the results of experiments are discussed
and then we propose a conclusion.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Theoretical Background</title>
      <sec id="sec-2-1">
        <title>2.1. Classes of Characteristic Attribute Sets</title>
        <p>Here we recall basic FCA definitions related to concepts, dependencies, and their minimal
representations. After that we illustrate the definitions with a toy example. Let us consider a
formal context  = (,  ,  ) and prime operators:
 ′ = { ∈  ∣ ∀ ∈  ∶  },  ⊆ 
 ′ = { ∈  ∣ ∀ ∈  ∶  },  ⊆ 
(1)
(2)</p>
        <p>
          We illustrate the next definitions using an adaptation of the “four geometrical figures and their
properties” context [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] which presented in Table 1. The set of objects  = { 1,  2,  3,  4}
corresponds to {equilateral triangle, rectangle triangle, rectangle, square}) and the set of attributes
 = {, , , , } corresponds to {has 3 vertices, has 4 vertices, has a direct angle, equilateral,
e} (“e” is empty and introduced for the needs of our examples). The related concept lattice is
shown in Figure 1.
        </p>
        <p>Definition 1 (Intent or closed description). A subset of attributes  ⊆ 
if  ″ =  .
is an intent or is closed</p>
        <p>In the running example (Table 1),  = {, } =  ″ is an intent and is the maximal subset of
attributes describing the subset of objects  ′ = { 3,  4}.</p>
        <sec id="sec-2-1-1">
          <title>Definition 2 (Pseudo-intent). A subset of attributes  ⊆</title>
          <p>is a pseudo-intent if:
1.  ≠  ″
2.  ″ ⊂  for every pseudo-intent  ⊂</p>
          <p>
            Pseudo-intents are premises of implications of the cardinality-minimal implication basis
called “Duquenne-Guigues basis” [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ] (DG-basis, also known as “canonical basis” or “stembase”
[
            <xref ref-type="bibr" rid="ref1">1</xref>
            ]). In the current example (Table 1), the set of pseudo-intents is {{}, {}, {, }, {, , } } since:
(i) {}, {}, {, } are minimal non-closed subsets of attributes, and (ii) {, , } is both non-closed
and contains the closure {, } of the pseudo-intent {} .
          </p>
          <p>1
 2
 3
 4
a b c d e
x x
x</p>
          <p>x
x x
x x x
g1
g2
e
b
g3
g4</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>Definition 3 (Proper premise). A set of attributes  ⊆</title>
          <p>is a proper premise if:
 ∪
⋃ ( ⧵ {} )″ ≠  ″
∈</p>
          <p>In the running example (Table 1),  = {, } is a proper premise since the union of  with the
closures of its subsets does not result in the closure of  , i.e., {, }∪{} ″∪{} ″ = {, }∪{}∪{, } =
{, , } ≠ {, , , , } .</p>
          <p>
            Proper premises are premises of the so-called “proper-premise base” (PP-base, see [
            <xref ref-type="bibr" rid="ref1 ref9">1, 9</xref>
            ]) or
“direct canonical base” [
            <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
            ]. The PP-base is a “direct” or “iteration-free base of implications”,
meaning that we can obtain all possible implications with a single application of Armstrong
rules to implications in PP-base.
          </p>
        </sec>
        <sec id="sec-2-1-3">
          <title>Definition 4 (Generator). A set of attributes  ⊆</title>
          <p>is a generator if ∃ ⊆  ∶ 
″ =  .</p>
          <p>In this paper, every subset of attributes is a generator of a concept intent. A generator is
called non-trivial if it is not closed. In the current example (Table 1),  = {, , } is a generator
of  = {, , , , } since  is an intent,  ⊆  , and  ″ =  .</p>
          <p>Definition 5 (Minimal generator, key). A set of attributes  ⊆ 
of  ″ if ∄ ∈  ∶ ( ⧵ {}) ″ =  ″.
is a key or a minimal generator</p>
          <p>
            In the following we will use “key” rather than “minimal generator. A key is inclusion minimal
in the equivalence class of subsets of attributes having the same closure [
            <xref ref-type="bibr" rid="ref14 ref4 ref5">4, 5</xref>
            ]. In the current
example (Table 1),  = {, , } is a key since none of its subsets {, }, {, }, {, } generates the
intent  ″ = {, , , , } . Every proper premise is a key, however the converse does not hold in
general.
          </p>
        </sec>
        <sec id="sec-2-1-4">
          <title>Definition 6 (Minimum generator, passkey). A set of attributes  ⊆  is a passkey or a minimum</title>
          <p>generator if  is a minimal generator of  ″ and  has the minimal size among all minimal
generators of  ″.</p>
          <p>
            In the following we will use “passkey” rather than “minimum generator. A passkey is
cardinality-minimal in the equivalence class of subsets of attributes having the same closure. It
should be noticed that there can be several minimum generators and one is chosen as a passkey,
but the minimal size is unique. In [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ] the maximal size of a passkey of a given context was
studied as an index of the context complexity. In the current example (Table 1),  = {, } is a
passkey of the intent {, , } since there is no other generator of smaller cardinality generating
 ″. Meanwhile  = {, , } is not a passkey of  ″ = {, , , , } since the subset  = {} has a
smaller size and the same closure, i.e.,  ″ =  ″.
          </p>
          <p>Finally, for illustrating all these definitions, we form the context (2 ,   ,   ) of all
classes of “characteristic attribute sets” of  as they are introduced above.   =
{intent, pseudo-intent, proper premise, key, passkey}, while   states that a given subset of
attributes in 2 is a characteristic attribute set in   . The concept lattice of this context is shown
in Figure 2.</p>
          <p>subset of attributes
generator
description
ae, be, ce, de, abd, abe, ace, ade
bce, bde, cde, abcd, abce, abde, acde, bcde
2.2. Towards Measuring Data Complexity
“Data complexity” can mean many diferent things depending on the particular data analysis
problem under study. For example, data can be claimed to be complex when data processing takes
a very long time, and this could be termed as “computational complexity” of data. Alternatively,
data can be considered as complex when data are hard to analyze and to interpret, and this could
be termed as “interpretability complexity” of data. For example, it can be hard to apply FCA or
machine learning algorithms, such as clustering, classification, or regression. Accordingly, it is
quite hard to define data complexity in general terms.</p>
          <p>If we consider the dimension of interpretability, then the size of the “patterns” to interpret
and their number are definitely important elements to take into account. In the following, the
expression “pattern” refers to “interesting subsets of attributes” in a broad sense. In an ideal
case, one prefers a small number of patterns, to facilitate interpretation. Indeed, a small number
of rules with a few attributes in the premises and in the conclusions is simpler to interpret than
hundreds of rules with more than ten attributes in the premises and conclusions. Thus, it is
natural to study how the number of patterns is distributed w.r.t. their size. In most of the cases,
large numbers of patterns are associated with computational complexity. Then controlling the
size and the number of patterns is also a way to control computational complexity.</p>
          <p>
            It should also be mentioned that the number of patterns is related to the so-called
“VCdimension” of a context [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ], i.e., the maximal size of a Boolean sublattice generated from the
context. Accordingly, in this study about data complexity, we decided to count the number
of concepts, pseudo-intents, proper premises, keys, and passkeys, in order to understand and
evaluate the complexity of data. For all these “pattern types”, we also study the distribution of
pattern sizes.
          </p>
          <p>Additionally, we decided to measure the “lattice complexity”, i.e., the complexity of the
corresponding concept lattice, with two new measures related to what could be termed the
“linearity” of the lattice. Indeed, the simplest lattice structure that can be imagined is a chain,
while the counterpart is represented by the Boolean lattice, i.e., the lattice with the largest
amount of connections and concepts. However, it should be noticed that the Boolean lattice
may be considered as complex from the point of view of interpretability, but very simple from
the point of view of implication base, which is empty in such a lattice.</p>
          <p>Then, a first way to measure the closeness of the lattice to a chain is the “linearity index”
which is formally defined below as the probability that two random concepts are comparable in
the lattice.</p>
          <p>Definition 7. Let us consider a concept lattice ℒ, ℒ ∗ = ℒ ⧵ {⊤, ⊥}, where |ℒ | denotes the number
of the concepts in ℒ, ⊤ and ⊥ being the top and bottom elements of ℒ. The linearity index LIN(ℒ )
is defined as:</p>
          <p>LIN(ℒ ) = {</p>
          <p>2
|ℒ ∗|⋅(|ℒ ∗|−1)</p>
          <p>∑
{  ,  }⊂ℒ ∗</p>
        </sec>
        <sec id="sec-2-1-5">
          <title>1, otherwise</title>
          <p>1(  &lt;   ∨   &gt;   ) if |ℒ | &gt; 3,
(3)
where {  ,   } is an unordered pair of concepts, and 1 is the indicator function taking the value 1
when the related constraint is true.</p>
          <p>
            The linearity index is maximal for a chain, i.e., the lattice related to a linear order. It is
minimal for the lattice related to a nominal scale which is also the lattice related to a bijection.
One example of such a lattice is given by the so-called M3 lattice which includes a top and
a bottom element, and three incomparable elements. In particular, when a lattice includes a
sublattice such as M3 it is not distributive [
            <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
            ].
          </p>
          <p>
            This index does not directly measure how well the lattice is interpretable. One of the main
interpretability properties is the size of some particular sets, such as the size and the structure
of the implication basis. One of the simplest structure for the implication basis can be found in
distributive lattices, where pseudo-intents are all of size 1 [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ]. Accordingly, the “distributivity
index” measures how a lattice is close to a distributive one.
          </p>
          <p>Definition 8.</p>
        </sec>
        <sec id="sec-2-1-6">
          <title>Given a lattice ℒ, the distributivity index DIST(ℒ ) is defined as</title>
          <p>DIST(ℒ ) =</p>
          <p>2
|ℒ | ⋅ (|ℒ | − 1)</p>
          <p>∑
{  ,  }≠ ⊂ (ℒ )
1(  ∪   ∈  (ℒ )),
(4)
where  (ℒ )</p>
          <p>is the set of concept intents in ℒ.</p>
          <p>
            The distributivity index is maximal for distributive lattices, and this includes chain lattices
which are distributive lattices [
            <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
            ]. Again it is minimal for lattices of nominal scales which
are not distributive. Although, it may sound strange to consider the lattices of nominal scales
as complex, they are not simple from the viewpoint of implications. For example, any pair of
attributes from the M3 lattice –introduced above– can form the premise of an implication with
a non-empty conclusion. This indeed introduces many implications in the basis and this makes
the DG-basis hard to interpret.
          </p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.3. Synthetic Complex Data</title>
        <p>In order to study some ways of measuring data complexity, we need to compare the behavior of
diferent complexity indices for “simple” and “complex” data. However, beforehand we cannot
know which dataset is complex. Accordingly, we will generate synthetic complex datasets and
compare them with real-world datasets. One way of generating complex data is “randomization”.
Actually, randomized data cannot be interpreted since any possible result is an artifact of the
method. For randomized data we know beforehand that there cannot exist any rule or concept
that have some meaning. Thus, randomized data are good candidate data for being considered
as “complex”.</p>
        <p>Now we discuss which randomization strategy should be used for generating such data. A
natural way is making randomized data similar in a certain sense to the real-world data they are
compared to. Firstly, when considering reference real-world data, it seems natural to keep the
same number of objects and attributes as they are in the real-world data. Moreover, the “density”
of the context, i.e., the number of crosses, significantly afects the size and the structure of the
related concept lattice. Thus, to ensure that randomized data are “similar” to the real-world
data it is also natural to keep the density of data. This gives us the first randomization strategy,
i.e., for any real-world dataset we can generate a randomized dataset with the same number of
objects and attributes, and with the same density. Then, the crosses in the original context will
be randomly spread along the new context in ensuring that the density is the same as in the
original real-world data.</p>
        <p>For example, let us consider the context given in Table 2, where there are 8 objects, 6 attributes,
and 35 crosses. Thus, any context with 8 objects, 6 attributes, and 35 crosses, can be considered
as a randomization of this original context. In our first randomization strategy, we suppose that
the probability of generating any such randomized context is equally distributed.
descriptions
generator intent key</p>
        <p>passkey</p>
        <p>
          The randomized formal contexts for such strategy were studied in [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. The authors have
shown that the correlation between the number of concepts and the number of pseudo-intents
has a non-random structure, suggesting that fixing density is not enough to generate randomized
data which are similar to the real-world ones. Accordingly, we also studied a randomization
strategy that keeps the number of objects as follows. A randomized context is generated attribute
by attribute. The number of crosses in every column remains the same as in the corresponding
“real-world attribute” but the crosses are randomly assigned. This can be viewed as a permutation
of the crosses within every column in the randomized context, every column being permuted
independently of the others. Such a procedure corresponds to the “null hypothesis” in statistical
terms of independence between attributes.
        </p>
        <p>Although such randomization strategy considers objects and attributes diferently, it
corresponds to typical cases in data analysis. Indeed, in typical datasets, objects stand for observations
that are described by diferent attributes. The attributes correspond to any hypothesis in the
data domain. Then, analysts are usually interested in discovering some relations between
attributes, and the hypothesis of attribute independence is a natural null hypothesis in such a
setting.</p>
        <p>For example, let as consider again the context in Table 2, and that the numbers of objects and
attributes remain the same in the randomized context. Then a randomized context following the
second strategy is any context having 8 crosses for the first attribute, 2 crosses for the second
attribute, 5 crosses for the third attribute, etc. Accordingly, when we are randomizing data
from a given real-world dataset, we should have in mind that many randomized datasets can
be generated w.r.t. the same randomization strategy. Thus, for the sake of objectivity, it is not
enough to study only one random dataset for a given real-world dataset, but it is necessary to
generate several randomized datasets and then to estimate the distribution of a characteristic
under study within all randomized datasets.</p>
        <p>In the next section we study diferent ways of measuring the complexity of a dataset and we
observe that the complexity of randomized datasets is generally higher than the complexity of
the corresponding real-world dataset.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Experiments</title>
      <sec id="sec-3-1">
        <title>3.1. Datasets</title>
        <p>For this preliminary study we selected 4 small real-world datasets in order to support an eficient
computing of all necessary elements of the lattice. Eficiency matters here because we involve
randomization and computations are repeated hundreds of times for one dataset. The study
includes the following datasets: “Live in water1”, “Tea ladies2” “Lattice of lattice properties3”,
and “Bob Ross episodes4”. For the sake of eficiency the fourth dataset was restricted to only
ifrst the 20 attributes.</p>
        <p>The datasets are analyzed in two diferent ways. Firstly, the characteristic attribute sets are
computed, e.g., concepts, keys, passkeys, pseudo-intents, and proper premises, and then the
relations existing between these elements are discussed. Secondly, we study the complexity
of a dataset in studying its characteristic attribute sets and their distributions w.r.t. the size of
these attribute sets. We also compared all the two numerical indicators, namely the linearity
and the distributivity indices, for real-world and randomized datasets.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Characteristic Attribute Sets in a Lattice</title>
        <p>In this section we study the relations between the diferent characteristic attribute sets. The
experiment pipeline reads as follows.</p>
        <p>• Given a context  = (,  ,  )</p>
        <p>, we compute all possible “attribute descriptions”, i.e., subsets
of attributes in 2 , and we check whether a description verifies some characteristic such
as being an intent, a key, a passkey….
• Given  =
{,</p>
        <p>,  ,  , 
context (2 , ,</p>
        <p>) where  
has a characteristic in 
.</p>
        <p>-,  
- }</p>
        <p>, we construct the
is the relation indicating that a given set of attributes
• Finally, we construct the “lattice of descriptions” based on the context (2 , , 

). This
lattice shows the relations existing between all generators –subsets of attributes– in a
given dataset.</p>
        <p>The “description context” for the “Bob Ross” dataset is given in Table 2 and the corresponding
lattice is shown in Figure 3. From the lattice we can check that any two classes of descriptions
may intersect if this is not forbidden by their definition (e.g., a description cannot be both an
intent and a pseudo-intent). Although such a lattice is computed for a particular dataset, this is
the general lattice structure which is obtained most of the time. In some small datasets it may
happen that some characteristic attribute sets are missing. For example, in the “Live in water”
lattice, the properties of being a key, being a passkey, and being a proper premise, all coincide
and collapse into one single node.</p>
        <p>It is also very interesting to analyze the proportions of the sizes of classes of descriptions. For
example, in the “Bob Ross” context restricted to 20 attributes, there are 220 possible descriptions,</p>
        <p>generator
subset of attributes</p>
        <p>description
but there are only 112 of them which are closed, and only 259 of them which are minimal
generators. Thus, the large majority of the descriptions are “useless” in the sense that they
do not correspond to any of the characteristic attribute subsets introduced above. In the next
subsection we consider the distributions of these characteristic attribute subsets.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Data Complexity</title>
        <p>For analyzing data complexity, we start by comparing the numbers of elements in real-world data
and in randomized data. In the Figures 4 and 5, the distributions of the diferent characteristic
elements for “Bob Ross” dataset are shown. Along the horizontal axis, the sizes of the elements
are shown, i.e., the number of attributes in the intent, pseudo-intent, key, etc. Along the vertical
axis the number of elements of the corresponding sizes are shown.</p>
        <p>Red crosses show the values corresponding for real-world data and the boxplots visualize the
values found in random data. There were 100 randomizations and thus boxplots are based on
these 100 values. A box corresponds to the 50% middle values among 100 values. In addition,
it should be noticed that these two figures difer in the randomization strategy. Figure 4
corresponds to density-based randomization while Figure 5 shows randomization based on
column permutations.</p>
        <p>From both figures we can observe that randomized data contain significantly larger numbers
of elements than the real-world data. Moreover, the sizes of the elements for randomized data
are larger than the sizes of real-world data. Similar figures can be built for “Tea Ladies” and
“Lattice of lattice properties” datasets. However, it is not possible to distinguish the real-world
dataset and the randomized data for the “Live in Water” dataset5. This can be explained by the
fact that either the dataset does not contain deep dependencies, or that the dataset is too small,
i.e., the randomized dataset cannot be substantially diferent from the original one.</p>
        <p>Let us now study how the linearity index and the distributivity index measure the
complexity of a dataset. Figures 7 and 6 show the values of the linearity and distributivity indices
correspondingly w.r.t. diferent randomizations. From these figures we can see that datasets
built from density-based randomization are more diferent from real-world datasets than the
randomized datasets built from column-wise permutations. We also notice that the values
of the linearity and distributivity indices show a substantial dependence w.r.t. density of the
corresponding context. Indeed, if we examine the randomized datasets, we can see that the
distributions of the linearity and distributivity indices are diferent. This can be explained either
by the context density and by the context size. Thus, we cannot have any reference values for
these indices that would split between “complex” and not “simple” data. However, comparing
the values of the index to the distribution of these indices allow one to decide on complexity
of the data. Finally, in all datasets but “Live in water”, both linearity and distributivity indices
have higher values for real-world datasets than for randomized datasets. This shows again that
real-world datasets are more structured than their randomized counterparts.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this paper we have introduced and studied “concise representations” of datasets given by
related contexts and concept lattices, and characteristic attributes sets based on equivalence
classes, i.e., intents, keys (minimal generators), passkeys (minimum generators), proper premises,
and pseudo-intents. We have also defined two new indices for measuring the complexity of
a dataset, namely the linearity index for checking the direct dependencies between concepts
or how a concept lattice is close to a chain, and the distributivity lattice which measures how
close is a concept lattice to a distributive lattice. In the latter, all pseudo-intents are of length 1,
leading to sets of simple implications. We have also proposed a series of experiments where we
analyze real-world datasets and their randomized counterparts. As expected, the randomized
datasets are more complex that the real-world ones.</p>
      <p>The future work will be to improve this study in several directions, by studying more deeply
the role of both indices, the linearity index and the distributivity index, by analyzing more
larger datasets, and more importantly by analyzing the complexity from the point of view of
the generated implications and association rules. This paper is another step in the analysis
of the complexity of datasets in the framework of FCA, and we believe that FCA can bring a
substantial support for analyzing data complexity in general.
5All the figures that cannot be shown in this paper are visible in supplementary materials, see https://yadi.sk/i/8_
5EEvY4zNi82g</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>The work of Sergei O. Kuznetsov on this paper was supported by the Russian Science Foundation
under grant 22-11-00323 and performed at HSE University, Moscow, Russia.
(b) Keys
(c) Passkeys
(d) Pseudo-intents
(e) Proper premises
(b) Keys
(c) Passkeys
(d) Pseudo-intents
(e) Proper premises
(a) Live in water</p>
      <p>(b) Lattice (c) Tea Lady
Randomization based on column permutations
(d) Bob Ross
(e) Live in water
(f) Lattice
(g) Tea Lady
(h) Bob Ross
(a) Live in water</p>
      <p>(b) Lattice (c) Tea Lady
Randomization based on column permutations</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Wille</surname>
          </string-name>
          ,
          <source>Formal Concept Analysis</source>
          , Springer, Berlin,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>T.</given-names>
            <surname>Makhalova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Buzmakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Napoli</surname>
          </string-name>
          ,
          <article-title>Introducing the closure structure and the GDPM algorithm for mining and understanding a tabular datasets</article-title>
          ,
          <source>International Journal of Approximate Reasoning</source>
          <volume>145</volume>
          (
          <year>2022</year>
          )
          <fpage>75</fpage>
          -
          <lpage>90</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.-L.</given-names>
            <surname>Guigues</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Duquenne</surname>
          </string-name>
          ,
          <article-title>Famile minimale d'implications informatives resultant d'un tableau de données binaire</article-title>
          , Mathematique,
          <source>Informatique et Sciences Humaines</source>
          <volume>95</volume>
          (
          <year>1986</year>
          )
          <fpage>5</fpage>
          -
          <lpage>18</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>N.</given-names>
            <surname>Pasquier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bastide</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Taouil</surname>
          </string-name>
          , L. Lakhal, Pruning Closed Itemset Lattices for Association Rules,
          <source>International Journal of Information Systems</source>
          <volume>24</volume>
          (
          <year>1999</year>
          )
          <fpage>25</fpage>
          -
          <lpage>46</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bastide</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Taouil</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Pasquier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Stumme</surname>
          </string-name>
          , L. Lakhal,
          <article-title>Mining frequent patterns with counting inference</article-title>
          ,
          <source>SIGKDD Exploration Newsletter</source>
          <volume>2</volume>
          (
          <year>2000</year>
          )
          <fpage>66</fpage>
          -
          <lpage>75</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B. A.</given-names>
            <surname>Davey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. A.</given-names>
            <surname>Priestley</surname>
          </string-name>
          , Introduction to Lattices and Order, Cambridge University Press, Cambridge, UK,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Grätzer</surname>
          </string-name>
          ,
          <string-name>
            <surname>General Lattice Theory (Second Edition)</surname>
          </string-name>
          , Birkäuzer,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Obiedkov</surname>
          </string-name>
          ,
          <article-title>Comparing performance of algorithms for generating concept lattices</article-title>
          ,
          <source>Journal of Experimental &amp; Theoretical Artificial Intelligence</source>
          <volume>14</volume>
          (
          <year>2002</year>
          )
          <fpage>189</fpage>
          -
          <lpage>216</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>U.</given-names>
            <surname>Ryssel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Distel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Borchmann</surname>
          </string-name>
          ,
          <article-title>Fast algorithms for implication bases and attribute exploration using proper premises</article-title>
          ,
          <source>Annals of Mathematics and Artificial Intelligence</source>
          <volume>70</volume>
          (
          <year>2014</year>
          )
          <fpage>25</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>K.</given-names>
            <surname>Bertet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Monjardet</surname>
          </string-name>
          ,
          <article-title>The multiple facets of the canonical direct unit implicational basis</article-title>
          ,
          <source>Theoretical Computer Science</source>
          <volume>411</volume>
          (
          <year>2010</year>
          )
          <fpage>2155</fpage>
          -
          <lpage>2166</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Obiedkov</surname>
          </string-name>
          , Conceptual Exploration, Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>Albano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chornomaz</surname>
          </string-name>
          ,
          <article-title>Why concept lattices are large: extremal theory for generators, concepts, and VC-dimension</article-title>
          ,
          <source>International Journal of General Systems</source>
          <volume>46</volume>
          (
          <year>2017</year>
          )
          <fpage>440</fpage>
          -
          <lpage>457</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>D.</given-names>
            <surname>Borchmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Hanika</surname>
          </string-name>
          ,
          <article-title>Some Experimental Results on Randomly Generating Formal Contexts</article-title>
          , in: M.
          <string-name>
            <surname>Huchard</surname>
            ,
            <given-names>S. O.</given-names>
          </string-name>
          <string-name>
            <surname>Kuznetsov</surname>
          </string-name>
          (Eds.),
          <source>Proceedings of the 13th International Conference on Concept Lattices and Their Applications (CLA)</source>
          , volume
          <volume>1624</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>57</fpage>
          -
          <lpage>69</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>5. Appendix: Figures Related to Experiments</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>