6 Example
Sander Scholtus
Previous | Next
To illustrate the algorithm of Section 5, we will apply
it to a small example with numerical data. This is essentially an example from
De Waal (2003b) to which we have added a distinction between hard and soft
edits. For a somewhat larger example involving a mix of categorical and numerical
variables, see Scholtus (2011).
In a fictitious business survey, there are four
numerical variables: total turnover profit total costs and number
of employees The following hard edits and soft edits have
been identified:
Consider the following unedited record: (100; 40,000; 60,000; 5).
This record fails the first hard edit and the first soft edit. The confidence
weights of the variables are (2, 1, 1, 3).
We choose the failure weights of the two soft edits to be Finally, we choose in expression (3.1).
Suppose that the variable is selected first. In the branch where is eliminated from the original edits, we
obtain the following new set of edits:
We have indicated in brackets from which of the
previous edits each new edit is derived. The third soft edit is in fact equivalent to the first hard edit which means that it can be discarded.
Upon substituting the original values (100; 60,000; 5)
into the current edits, it is seen that all edits are satisfied except for Since all hard edits are satisfied,
identifying only the original value of as erroneous is a feasible solution to the
error localisation problem. Moreover, since is (trivially) a minimal representing set of it is possible to impute a value for which satisfies all the original edits except
for Hence, the value of target function (3.1) for
this solution is
Possibly, the current solution may be improved by
eliminating another variable, say from the current set of edits. This yields:
Each of the two new soft edits is redundant,
because both are equivalent to hard edit In fact, the remaining original values satisfy all the current edits. This means that
and can be imputed to satisfy all the original
edits, both hard and soft. The value of target function (3.1) for this solution
equals Thus, the new solution improves on the
previous one. Moreover, this solution cannot be improved further by eliminating
more variables in the current branch of the binary tree.
If the rest of the binary tree is explored, it
eventually turns out that the best solution found so far (impute and is also the optimal solution. A possible
consistent record obtained by imputing and is: (100, 40, 60, 5).
This solution has the nice interpretation that the original values of profit and total costs were overstated by a factor of 1,000. It is of interest
to note that, if only the hard edits are used in this example, then the first
solution found above (impute only is the optimal solution. In that case, there
is only one way to obtain a consistent record: (100;
-59,900; 60,000; 5). This illustrates that, in this example at least, soft
edits are important for finding imputations that are not only consistent with
the hard edits, but also plausible.
Previous | Next