Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Distance matrix
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Metric distance matrix == The value of a distance matrix formalism in many applications is in how the distance matrix can manifestly encode the [[Metric (mathematics)|metric axioms]] and in how it lends itself to the use of linear algebra techniques. That is, if {{math|1=''M'' = (''x{{sub|ij}}'')}} with {{math|1 β€ ''i'', ''j'' β€ ''N''}} is a distance matrix for a metric distance, then # the entries on the main diagonal are all zero (that is, the matrix is a [[hollow matrix]]), i.e. {{math|1=''x{{sub|ii}}'' = 0}} for all {{math|1 β€ ''i'' β€ ''N''}}, # all the off-diagonal entries are positive ({{math|''x{{sub|ij}}'' > 0}} if {{math|''i'' β ''j''}}), (that is, a [[Nonnegative matrix|non-negative matrix]]), # the matrix is a [[symmetric matrix]] ({{math|1=''x{{sub|ij}}'' = ''x{{sub|ji}}''}}), and # for any {{mvar|i}} and {{mvar|j}}, {{math|''x{{sub|ij}}'' β€ ''x{{sub|ik}}'' + ''x{{sub|kj}}''}} for all {{mvar|k}} (the triangle inequality). This can be stated in terms of [[min-plus matrix multiplication|tropical matrix multiplication]] When a distance matrix satisfies the first three axioms (making it a semi-metric) it is sometimes referred to as a pre-distance matrix. A pre-distance matrix that can be embedded in a Euclidean space is called a [[Euclidean distance matrix]]. For mixed-type data that contain numerical as well as categorical descriptors, [[Gower's distance]] is a common alternative. Another common example of a metric distance matrix arises in [[coding theory]] when in a [[block code]] the elements are strings of fixed length over an alphabet and the distance between them is given by the [[Hamming distance]] metric. The smallest non-zero entry in the distance matrix measures the error correcting and error detecting capability of the code.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)