Finite Set Metric: Exploring d(A,B) Function and Triangle Inequality

In summary, the conversation discusses the function d(A,B) and its properties as a metric distance. It is noted that for finite sets, the function meets the requirements for a metric distance, including the triangle inequality. For infinite sets, the function can be modified to create a pseudometric. The use of symmetric difference as an explicit operator in set theory is also mentioned.
  • #1
birulami
155
0
Hi,

recently I stumbled across the question whether for finite sets [itex]A,B[/itex] the function

[tex]d(A,B):=|A\cup B| - |A\cap B|[/itex]

is a http://en.wikipedia.org/wiki/Metric_distance" ? Trivially, [itex]d(A,A)=0[/itex] and of course [itex]d[/itex] is symmetric, but how about the triangle inequality? Does it hold?

Harald.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
yes it is. For the triangle inequality see the formula [itex](A \Delta B) \Delta (B \Delta C) = A \Delta C[/itex] here - http://en.wikipedia.org/wiki/Symmetric_difference" .

Also, for infinite sets you can replace the size |A| of a set with its measure (eg, length, volume, etc) to get a pseudometric, as mentioned in the wikipedia link.
 
Last edited by a moderator:
  • #3
I never really came across symmetric difference as an explicit operator in set theory.

Thanks for the information,
Harald.
 
  • #4
It's certainly not a metric in the usual sense, since metrics are real-valued not set-valued.
 
  • #5
you didn't notice the bars around the sets, denoting cardinality. for finite sets this will be an integer number, hence it is a metric in a usual sense.
 

1. What is a metric on finite sets?

A metric on finite sets is a mathematical function that assigns a non-negative value to every pair of elements in a finite set, and satisfies certain properties such as non-negativity, symmetry, and the triangle inequality. It is used to measure the distance between elements in a set.

2. How is a metric on finite sets different from a metric on infinite sets?

A metric on finite sets is different from a metric on infinite sets in that it only applies to finite sets and cannot be extended to infinite sets. This is because the properties of a metric on finite sets, such as the triangle inequality, do not hold for infinite sets.

3. What are some applications of metrics on finite sets?

Metrics on finite sets have various applications in mathematics and computer science. They are used in graph theory to measure the distance between vertices, in clustering algorithms to group similar data points, and in machine learning to evaluate the performance of classification models.

4. Can a metric on finite sets be defined on any type of finite set?

Yes, a metric on finite sets can be defined on any type of finite set as long as it satisfies the properties of a metric. This includes finite sets of numbers, objects, or any other type of data.

5. How is the distance between two elements in a finite set calculated using a metric?

The distance between two elements in a finite set is calculated by applying the metric function to the two elements. The resulting value represents the distance between the two elements, with a higher value indicating a greater distance.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Linear and Abstract Algebra
Replies
8
Views
1K
Replies
5
Views
1K
Replies
2
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
694
Replies
8
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
11
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Topology and Analysis
Replies
11
Views
3K
  • Topology and Analysis
Replies
3
Views
1K
Back
Top