The Chi Square
The
test is a common method to judge whether two given sets of data
belong to the same distribution or not. The
is given by:
where
If we compute the
between the two chains 0
0 1 1 2 3 2 3 and 0
0 0 0 1 1 1 1 2 2 3 3 2 2 3 3.
We note that
and
So the
is given by
Since the
value is zero this means that the chain code 0 0 1
1 2 3 2 3 is scaling to the chain code 0
0 0 0 1 1 1 1 2 2 3 3 2 2 3 3. which means that the
test can be used to solve the scaling problem.
Fig.
5.28 shows a practical example to solve the problem of scaling.
Since we use a "fig" leaf. The
between the classical
chain codes of the "fig" leaf is