Structure metric: Difference between revisions
Wikispaces>genewardsmith **Imported revision 565782439 - Original comment: ** |
Wikispaces>genewardsmith **Imported revision 566513935 - Original comment: ** |
||
| Line 1: | Line 1: | ||
<h2>IMPORTED REVISION FROM WIKISPACES</h2> | <h2>IMPORTED REVISION FROM WIKISPACES</h2> | ||
This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br> | This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br> | ||
: This revision was by author [[User:genewardsmith|genewardsmith]] and made on <tt>2015-11- | : This revision was by author [[User:genewardsmith|genewardsmith]] and made on <tt>2015-11-15 12:50:28 UTC</tt>.<br> | ||
: The original revision id was <tt> | : The original revision id was <tt>566513935</tt>.<br> | ||
: The revision comment was: <tt></tt><br> | : The revision comment was: <tt></tt><br> | ||
The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br> | The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br> | ||
| Line 27: | Line 27: | ||
5. d(a, c) ≤ d(a, b) + d(b, c) | 5. d(a, c) ≤ d(a, b) + d(b, c) | ||
Suppose X is the [[https://en.wikipedia.org/wiki/Indicator_function|indicator function]] (characteristic function) for the set S(|**s**[a] - **s**[b]|, |a - b|), Y for the set S(|**s**[b] - **s**[c]|, |b - c|), and Z for the set S(|**s**[a] - **s**[c]|, |a - c|), which we may regard as vectors in ℝ^**P**. Let J be the **P**-dimensional vector [1, 1, ..., 1] of all 1s. Then what we wish to prove may be rewritten **P** - Z.J ≤ (**P** - X.J) + (**P** - Y.J). This may be rewritten again as Z.J ≥ (X + Y - J).J. Every index contributing to X.Y counts as one of Z, and hence Z.J ≥ X.Y. The vector X + Y - J is 1 at an index where both X and Y are 1, is -1 when neither is 1, and 0 otherwise. Hence (X + Y - J).J is X.Y - (J - X).(J - Y), and so is less than or equal to X.Y, and hence less than or equal to Z.J. | |||
These properties mean that the structure metric defines a //finite metric space//. This is a structure which has gained a certain amount of attention, particularly in terms of applications in fields requiring data analysis with an eye to similarities and differences. | These properties mean that the structure metric defines a //finite metric space//. This is a structure which has gained a certain amount of attention, particularly in terms of applications in fields requiring data analysis with an eye to similarities and differences. | ||
| Line 97: | Line 97: | ||
<br /> | <br /> | ||
5. d(a, c) ≤ d(a, b) + d(b, c)<br /> | 5. d(a, c) ≤ d(a, b) + d(b, c)<br /> | ||
Suppose X is the <a class="wiki_link_ext" href="https://en.wikipedia.org/wiki/Indicator_function" rel="nofollow">indicator function</a> (characteristic function) for the set S(|<strong>s</strong>[a] - <strong>s</strong>[b]|, |a - b|), Y for the set S(|<strong>s</strong>[b] - <strong>s</strong>[c]|, |b - c|), and Z for the set S(|<strong>s</strong>[a] - <strong>s</strong>[c]|, |a - c|), which we may regard as vectors in ℝ^<strong>P</strong>. Let J be the <strong>P</strong>-dimensional vector [1, 1, ..., 1] of all 1s. Then what we wish to prove may be rewritten <strong>P</strong> - Z.J ≤ (<strong>P</strong> - X.J) + (<strong>P</strong> - Y.J). This may be rewritten again as Z.J ≥ (X + Y - J).J. Every index contributing to X.Y counts as one of Z, and hence Z.J ≥ X.Y. The vector X + Y - J is 1 at an index where both X and Y are 1, is -1 when neither is 1, and 0 otherwise. Hence (X + Y - J).J is X.Y - (J - X).(J - Y), and so is less than or equal to X.Y, and hence less than or equal to Z.J.<br /> | |||
<br /> | <br /> | ||
These properties mean that the structure metric defines a <em>finite metric space</em>. This is a structure which has gained a certain amount of attention, particularly in terms of applications in fields requiring data analysis with an eye to similarities and differences.<br /> | These properties mean that the structure metric defines a <em>finite metric space</em>. This is a structure which has gained a certain amount of attention, particularly in terms of applications in fields requiring data analysis with an eye to similarities and differences.<br /> | ||