0

Recently, the triangle inequality for Euclidean space was generalized in terms of probability. Let $(a,b,c)$ be the sides of a triangle. If $a \le b \le c$, and $x \ge 1$, we have the exponential form

$$ P\left(a^x + b^x \ge c^x\right) = \frac{1}{x^2}. \tag 1 $$

Similarly, unconditionally, we have the linear form $$ P(ax + by \ge c) = \frac{4}{\pi^2}\chi_2(x) + \frac{4}{\pi^2}\chi_2(y) \tag 2 $$ where $\chi_2(x)$ is the Legendre Chi function. Both the above results were conjectured in MSE and later proved MO. These results gives a probabilistic interpretation of the triangle inequality.

The triangle inequality simple as it may seem, has several applications in science and engineering. For example few not so well known but important application in my field of machine learning are:

  1. Classification algorithm: The $k$-means algorithm which is one of the most popular classification algorithm in machine learning where triangle inequality is use to accelerate computing.
  2. Image recognition: Reducing the violations of triangle inequality helps improve image recognition using neural networks.
  3. Deep learning architectures: There are deep learning architectures that the specifically built to satisfy the triangle inequality

Since machine learning is mostly built on top of probability and linear algebra and there are several instances where the regular triangle inequality is used, I am curious if the above probabilistic interpretations of the triangle inequality could find applications in this field for example, instead of architectures or algorithms that are constrained to satisfy the triangle inequality may be we can find a solution space that has 95% chances of satisfying the triangle inequality using much lesser computing resources i.e. accuracy cost trade-off. I would like to ask:

Questions: What are some of the applications of the triangle inequality in the field of classical and quantum machine learning?

  • Hi! Can you give a link to this "recent" generalization? I'm not clear on what you're referring to. – Brian Tung May 06 '24 at 06:59
  • @BrianTung It is there in the first two hyperlinks of this post but here it again. Linear form: https://mathoverflow.net/questions/470028/if-a-b-c-are-the-sides-of-a-triangle-then-the-probability-pax-by-ge-c. Exponential form: https://math.stackexchange.com/questions/4903149/conjecture-generalization-of-the-triangle-inequality-to-exponents-of-the-sides – Nilotpal Sinha May 06 '24 at 07:02
  • 3
    Why should this clearly written interesting question should be closed ? – Jean Marie May 06 '24 at 11:56
  • 1
    I have proposed to introduce tag "big-list", and suppress "triangles" because it is not in the context of "triangle geometry" that we will find anything interesting. – Jean Marie May 06 '24 at 11:59
  • 1
    Rectification : An interesting article with valuable references using a contrario the Impact of triangular inequality violations.... – Jean Marie May 06 '24 at 12:58

1 Answers1

3

In the context of "Stochastic Geometry" (formerly called "Geometric Probability"), there is a nice interpretation of the positive "deficit" quantity :

$$a+b-c$$

as a measure of the set of lines separating vertex $C$ from the set $\{A,B\}$.

See formula (2) in this answer of mine where you will find some explanations and various references.

I will probably add elements to this short answer in the future.

Jean Marie
  • 88,997