2. The minimum adjustment approach
Jeroen Pannekoek and Li-Chun Zhang
Previous | Next
2.1 The optimization problem
We
propose to resolve the consistency problem outlined above by adjusting the free
variables simultaneously and as little as possible, such that all the edit-rules
are satisfied. Let the adjustable part of the record before adjustment be denoted by a
vector
and by
the
corresponding
vector after the adjustment. The optimization problem can be formulated as:
where
is a function
measuring the distance (or discrepancy) between
and
and
the
accounting
matrix associated with the
constraints on
given in (1.1).
We will consider different functions
in Section 2.2.
The
conditions for a solution to the minimization problem (2.1) can be found by
inspection of the Lagrangian for this problem, which can be written as
where
is a
vector of
Lagrange multipliers, or dual variables, with components
one for each of
the
constraints, and
the
row (corresponding
to constraint
of the
accounting matrix
Notice that an
additional non-negativity restriction needs to be applied to each
corresponding to
an inequality constraint, but not the
of an equality
constraint.
From
optimization theory it is well known that for a convex function
and linear
constraints, the solution to (2.1) is given by vectors
that satisfy the
so-called Karush-Kuhn-Tucker (KKT) conditions (see, e.g., Luenberger 1984; Boyd
and Vandenberghe 2004). One of them is that the gradient of the Lagrangian
w.r.t.
is zero when evaluated at
i.e.,
where
is the
element of
and
the gradient of
w.r.t.
evaluated at
and
and
that of
From (2.3), we
can see how different choices for
lead to
different solutions to the adjustment problem, which we will refer to as the adjustment
models.
2.2 Distance functions and adjustment models
A
widely used distance function in many areas of statistics is the weighted least
squares (WLS) function given by
where
is a diagonal
matrix with diagonal elements
for
We then obtain, from
(2.3), the adjustment model
The WLS-criterion thus results in additive adjustments: the total
adjustment to the initial value
is the weighted
sum of the adjustments that correspond to each of the
constraints. The
adjustment due to the
constraint
depends on the following:
-
The adjustment parameter (i.e., the dual variable)
that describes
the amount of adjustment. A smaller value for
(in absolute
sense if
refers to an
equality constraint) corresponds to a smaller adjustment; a zero value for
means that no
adjustment due to that constraint takes place.
-
The constant
(i.e., an
element of the accounting matrix) describes the direction and size of the
adjustment to variable
Often,
is 1, -1 or 0
and then describes whether
is adjusted by
or not at all.
-
The weight
variables with
larger weights are adjusted less than those with smaller weights. The special
case of
yields the
ordinary least squares (LS) criterion, where the amount of adjustment due to each
constraint is the same for all the relevant variables.
A
specific choice of the weights is
for
in which case
the squared relative adjustments are minimized and a larger initial value
(i.e., is adjusted more
than a smaller one in absolute sense. Dividing (2.4) by
we obtain
which is an additive adjustment model for the ratio between the
adjusted and unadjusted values. It may be noticed that this is the first-order
Taylor expansion (i.e., around 0 for all the
to the
multiplicative adjustment given by
From (2.5) we see that
determines the
relative change from the initial
to the adjusted
which in
absolute sense is usually much smaller than unity. For instance,
implies
adjustment of
if
which is large
in practice. The products of the
are therefore
often much smaller than the
themselves, in which
case (2.5) becomes a good approximation to (2.6), and one may regard the WLS
adjustment to be roughly given as the product of all the constraint-specific
multiplicative adjustments.
Multiplicative
adjustment by (2.6) may change the sign of
if
for some
Multiplicative
adjustments that preserve the sign of the initial
can be obtained
using the Kullback-Leibler (KL) divergence measure (not formally a distance
function), given by
We then have,
from (2.3), the adjustment model
The adjustment due to constraint
is equal to if
is (i.e., no
adjustment), it is
if
is and it is
if
is
Since
is the
first-order approximation of
around
if
the WLS and KL
criteria can be expected to yield similar adjustments as long as these are
small or moderate.
2.3 Methods for solving the minimum adjustment
problem
The
general convex optimization problem (2.1) can be solved explicitly if the
objective function is the weighted least squares and there are only equality
constraints. In this case, the Lagrangian is
and the
equations to be solved are
Solving (2.8) for
and substituting
the result in (2.9) we obtain
and then, on back substitution in (2.8), we obtain explicitly
For
other objective functions and with inequality constraints in general, there are
no explicit solutions to (2.1). However, there are many free or commercial
algorithms for the convex optimization problem. For the application in this
paper we used the R programming language and applied the so-called row-action
or Successive Projection Algorithms (SPA) - see e.g., Censor and Zenios (1997).
The SPA is an iterative algorithm that uses the constraints (rows of the
accounting matrix) one by one. In one iteration the
vector is
sequentially adjusted to each of the constraints. The operation of adjusting to
a single constraint requires only to update the elements of the
vector that are
involved in that constraint (corresponding to the non-zero elements of the
currently processed row of the accounting matrix). After all constraints are
visited one iteration is completed and the next one is started. For the WLS
criterion, an R-package is available that implements the SPA and is especially
designed for the adjustment problem (van der Loo 2012).
2.4 Example revisited
Table
2.1 shows the minimum adjustments of the example record in Table 1.1, using the
LS-, WLS- and KL-criterion, respectively. The observed values are treated as
fixed and shown in bold, the imputed values are adjustable. For the WLS method
we use
giving results
that are equal to the KL-criterion up to the first decimal.
For
both response patterns, the LS adjustment procedure leads to a negative value
for Turnover other which is not acceptable (Table 2.1). When the LS-procedure
is rerun with a non-negativity constraint for the variable Turnover other, the
result is simply a zero for that variable and 950 for Turnover main due to
constraint
Without the
non-negativity constraint, the LS-adjustments are -40 for
and
and -16 for
and
i.e., same
adjustment for each pair of variables that appear in the same constraint. The
variable Total costs
is part of two
constraints and the total adjustment to this variable consists of two additive
components. One component is due to constraint
and the other
due to
For response
pattern (I), the first component is -48 and the second component is 16, and the
two add up to -32 in Table 2.1.
Table 2.1
Imputation and adjustment of business record in Table 1.1. DI: Partial donor imputation without adjustment; LS: Least-squares distance; WLS: Weighted least-squares distance; KL: Kullback-Leibler divergence measure; GR: Generalized ratio adjustments
Table summary
This table displays the results of Imputation and adjustment of business record in Table 1.1. DI: Partial donor imputation without adjustment; LS: Least-squares distance; WLS: Weighted least-squares distance; KL: Kullback-Leibler divergence measure; GR: Generalized ratio adjustments. The information is grouped by Variable (appearing as row headers), Name, Response (I) and Response (II) (appearing as column headers).
| Variable |
Name |
Response (I) |
Response (II) |
| DI |
LS |
WLS/KL |
GR |
DI |
LS |
WLS/KL |
GR |
|
|
Profit |
330 |
282 |
291 |
304 |
330 |
260 |
249 |
239 |
|
|
Employees |
20 |
20 |
20 |
18 |
25 |
25 |
25 |
25 |
|
|
Turnover Main |
1,000 |
960 |
922 |
922 |
1,000 |
960 |
922 |
921 |
|
|
Turnover Other |
30 |
-10 |
28 |
28 |
30 |
-10 |
28 |
29 |
|
|
Turnover |
950 |
950 |
950 |
950 |
950 |
950 |
950 |
950 |
|
|
Wages |
500 |
484 |
470 |
461 |
550 |
550 |
550 |
550 |
|
|
Other costs |
200 |
184 |
188 |
184 |
200 |
140 |
151 |
161 |
|
|
Total costs |
700 |
668 |
658 |
646 |
700 |
690 |
701 |
711 |
The
WLS/KL adjustments are larger, in absolute sense, for larger imputed values
than for smaller ones. In particular, the adjustment to Turnover other is only
-2.3, so that no negative adjusted value results in this case, whereas the
adjustment to Turnover main is -77.7. The multiplicative nature of these
adjustments can be observed as the adjustment factor for both these
variables is 0.92 (for both response patterns). The adjustment factor for Wages
and Other costs in response pattern (I) is equally 0.94 because these variables
are in the same constraint
such that the
ratio between their initial values is unaffected by this adjustment. However,
the initial ratio of each of these variables to Total Costs is not preserved
because Total Costs has a different sign in the constraint
and, moreover,
Total Costs is also part of constraint
so that it is
subjected to two adjustment factors.
Previous | Next