4 A short theory of edit failures
Sander Scholtus
Previous | Next
4.1 Numerical data
Having formulated a new error localisation problem, we
will now show how this problem may be solved by an adapted version of the
branch-and-bound algorithm of De Waal and Quere (2003). To do this, we first
need to extend the fundamental property mentioned at the end of Section 2.3 to
the case that some of the edits may be failed. For convenience, we shall first
examine the case of purely numerical data. The next subsection examines the
case of purely categorical and mixed data.
In the case of purely numerical data, all edits take the
form (2.4) or (2.5). Moreover, the implied edit (2.7) is reduced to its
numerical part. The fundamental property given at the end of Section 2.3
implies in particular the following: if a given set of values for does not satisfy the implied edit (2.7), then
it is impossible to find a value for that satisfies and simultaneously. However, it is still possible
in this case to find a value for that satisfies one of the edits or This observation, which is more or less
trivial, forms the basis for the proof of Theorem 1 below.
Suppose that, at some point during an execution of the
branch-and-bound algorithm of De Waal and Quere (2003), numerical variables have been treated (i.e., either eliminated or fixed). We
denote the current set of edits by and the edits in this set by By definition, the original set of edits. It is possible to
associate with each current edit an index set which contains the indices of all the original
edits that have been used, directly or indirectly, to derive this edit. In
fact, can be defined recursively as follows:
-
For an original edit we define
-
For an edit which is derived from one other edit either by fixing a variable to its original
value or by simply copying the edit, we define
-
For an edit which is derived by eliminating a variable
from a set of edits we define
Note that, for numerical data, the set in the last item always contains exactly two
edits. Larger edit sets may be encountered in the categorical case considered
below.
A set is called a representing set of a collection of sets if it contains at least one element from each
of see, for instance, Mirsky (1971, page 25). It
should be noted that, in our case, a representing set identifies a subset of the set of original edits. We can now
formulate the following theorem.
Theorem 1.
Suppose that numerical variables have been treated and that
the current set of numerical edits can be partitioned as where the edits in are satisfied by the original values of the remaining variables, and the edits in are failed. Let be a representing set of the index sets for all Then there exist values for the eliminated
variables that, together with the original values of the other variables,
satisfy all original edits except those in
Proof. The
proof of this theorem is given in Appendix A.1.
Example:
Suppose that there are three numerical variables that should satisfy the following eight edits:
The record is inconsistent with respect to these edits.
Upon eliminating from the original set of edits, we find the
following updated set of edits:
The index set is displayed in brackets next to each edit.
By substituting the original values of and in the current set of edits, we see that and are failed. The set is a representing set for the associated index
sets According to Theorem 1, there exists a value
for which, together with the original values of and satisfies the original edits apart from and That this assertion is correct can be seen by
substituting and into the original set of edits; in fact, any
value will do.
The importance of Theorem 1 is that it enables one to
evaluate, at each node of the branch-and-bound algorithm, which combinations of
the original edits could be satisfied by imputing the variables that have been
eliminated so far, and also which edits would remain failed. In particular, if
we distinguish between hard and soft original edits, then this result makes it
possible to use the branch-and-bound algorithm to find all feasible solutions
to the new error localisation problem from Section 3, and also to evaluate, for
each feasible solution, which of the soft edits remain failed, and hence to
evaluate the value of This idea will be elaborated in Section 5.
4.2 Categorical and mixed data
We shall now derive a similar result to Theorem 1 for
the case of purely categorical data. At the end of this section, we shall
combine the two results so that they may also be applied to mixed data.
In the case of purely categorical data, all edits take
the form (2.3). Let us consider the elimination method for categorical
variables described in Section 2.3. If a given set of values for does not satisfy the implied edit (2.10), then
it is not possible to find a value for that, together with the other values, satisfy
all edits with simultaneously. This is true because, by
property (2.9), for all and all Hence, if (2.10) is failed by then plugging these values into an original
edit with produces a non-degenerate univariate edit for Moreover, every possible value of fails at least one of these univariate edits,
because of property (2.8). Interestingly, it is still always possible in this
case to find a value for that satisfies all edits in but one. This follows from property (2.8) and
the fact that is a minimal set having this property: for
each must contain at least one value from that is not covered by any other with
We now present the analogue of Theorem 1 for categorical
data, using the same notation as for numerical data. In particular, the
recursive definition of is exactly the same as in Section 4.1.
Theorem 2.
Suppose that categorical variables have been treated and
that the current set of categorical edits can be partitioned as where the edits in are satisfied by the original values of the remaining variables, and the edits in are failed. Let be a representing set of the index sets for all Then there exist values for the eliminated
variables that, together with the original values of the other variables,
satisfy all original edits except those in
Proof.
The proof of this theorem is given in Appendix A.2.
For an example that illustrates the use of this theorem,
see Scholtus (2011).
Finally, we remark that Theorem 1 and Theorem 2 can be
used together when the data is a mix of categorical and numerical variables.
This follows from the structure of the branch-and-bound algorithm of De Waal
and Quere (2003), where categorical variables are only treated once all
numerical variables have been eliminated or fixed. Hence, the two results may
be applied consecutively. There is a slight difference in the procedure for
eliminating numerical variables, namely that implied edits are only generated
from pairs of edits having an overlapping IF-condition; see Section 2.3.
However, this does not affect the correctness of Theorem 1.
Previous | Next