Send Close Add comments: (status displays here)
Got it!  This site "creationpie.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
Equivalence relations: math
by RS  admin@creationpie.com : 1024 x 640


1. Equivalence relations: math
Let us look at the mathematical concept of equivalence relations. The idea is based the concept of "equality".

2. Equality
What does it mean for two things to be "equal"? The idea of equivalence and equality depends on the definition of equality that is being used.

3. Declaration of Independence
Consider the part of the United States Declaration of Independence that goes as follows (July 4, 1776). This appears to say that all men (presumably mankind, one place for discussion) are created (how were they created, another place for discussion) "equal". Do they stay "equal"? And so forth. Let us return the world of abstract mathematics (as symbol manipulation) and look at the concept of equivalence relations.

4. Relations
A mathematical "relation" is a comparison between two elements of a set (or population) where each comparison is either true or false. Consider the relation R as "is the same sex/gender as" when comparing two people. Let us assume that this is possible to do (perhaps in a possibly non-politically correct manner).

For example purposes, let us use the set (or population) of people in the audience.

5. Equivalence relation
An "equivalence relation" is a relation R on a set A that is reflexive, symmetric, and transitive.

6. Reflexive properties

7. Reflexive property
Reflexive x and R
A relation R on set A is reflexive if for every x in A, x R x.

This can be written in mathematical form as follows.

Reflexive property
This is read as "for all x in (set) A, (condition) x R x (is true)"

Information sign More: Reflexive property

8. Universal quantification
For allUniversal quantification involves "for all" within a certain domain set.

The symbol "" is read as "for all".
An example is as follows. This is read as "for all x in the set 1, 3, 5, x is an odd number"

9. Reflexive laughing
Laugh at yourself

An example of a reflexive rule is the following. Have you heard that being able to laugh at yourself may help lengthen your life?

Here, the "laugh at" relation is applied reflexively to itself. That is, relating "laugh at" from "you" to "you".

10. Not reflexive laughing
Laugh at spouse

Have you heard that laughing at your spouse may help shorten your life?

Here, the "laugh at" relation is not applied reflexively.

Information sign More: Reflexive property

11. Laughing summary
Laugh at yourself and spouseHere is the diagram to summarize these laughing ideas. The relation R as "is the same sex/gender as" is reflexive, since Does a rule apply to itself? If so, the rule is reflexive.

12. Self reference
self ruleAre you the same sex or gender, whatever that is, as yourself?

Except for negation, most logical (not human) rules are reflexive.

Do some people apply rules to others but not to themselves?

13. Do as I say
others ruleWhenever someone says, "Do as I say, not as I do" they are applying a rule to others but not to them-self. That is, the rule, to them, is not a reflexive rule. In such a case, one might call the person a "hypocrite" using the modern sense of the word.

14. Everyone do this
everone ruleThe pattern becomes more clear with a diagram. The rule applies to everyone, which includes self. Negation results in interesting ideas.

15. Symmetric property
A relation R on set A is symmetric if for every x and y in A, x R y implies that y R x. Symmetric x y and RThis can be written in mathematical form as follows.

Symmetric propertyThis is read as "for all x and y in (set) A, (condition) x R y implies (condition) y R x"

16. Symmetry
The relation R as "is the same sex/gender as" is symmetric, since Note that the relation applies both ways, since the elements identified by x and y can be reversed.

Both ways
Does the rule go both ways? Is it a commutative property?
Does "adultery" go both ways? Is it commutative? Explain.

Information sign More: A top-down view of the woman caught in adultery

17. Commutativity
A commutative property is a rule where the order does not matter.

18. Addition
Addition and multiplication are commutative/symmetric operations where order does not matter.
2 + 3 = 5 3 + 2 = 5 2 * 3 = 6 3 * 2 = 6


19. Subtraction
Subtraction and division are non-commutative/non-symmetric operations where order does matter.
5 - 2 = 3 2 - 5 = -3 5 / 2 = 2.5 2 / 5 = 0.6


20. Historical Biblical example
Verse routeMatthew 7:12 Therefore all things whatsoever ye would that men should do to you, do ye even so to them: for this is the law and the prophets. [kjv]
Verse routeπαντα ουν οσα εαν θελητε ινα ποιωσιν υμιν οι ανθρωποι ουτως και υμεις ποιειτε αυτοις ουτος γαρ εστιν ο νομος και οι προφηται [gnt]

A historical and Biblical example of a symmetric property is the Golden Rule as expressed in the book of Matthew.

According to Aristotle, the "law" in based on "opinion" of the majority (in control). Thus, the "law" is that based on the "opinion" of God which may be added to by the opinion of others. The true "prophets" spoke the "opinion" of God.

Information sign More: Coining a customary distribution law of iniquity

.

The Greek word for "glory" had the meaning of "opinion".

Information sign More: Whether this or that: What is your opinion on glory?
Information sign More: Expectation of a glorious Greek opinion on a doxology

21. Matthew 7:12

   Matthew 7:12 
 All 
KJV: Therefore all things whatsoever ye would that men should do to you, do ye even so to them: for this is the law and the prophets.
Greek: παντα ουν οσα εαν θελητε ινα ποιωσιν υμιν οι ανθρωποι ουτως και υμεις ποιειτε αυτοις ουτος γαρ εστιν ο νομος και οι προφηται

22. Transitive property
A relation R on set A is transitive if for every x, y, and z in A, x R y and y R z implies that x R z.

Transitive x y z and R
This can be written in mathematical form as follows.

Transitive property
This is read as "for all x and y and z in (set) A, (condition) x R y and (condition) y R z implies (condition) x R z". The symbol "" is read as "and" and means that both conditions must be true for the result to be true.
The relation R as "is the same sex/gender ass" is transitive, since

23. Equivalence relation
A relation R on set A is an equivalence relation if the following properties hold. Equivalence classes reduce the amount of information that must be considered when working with properties of the set A.

24. Equivalence class methodology
The general approach to the equivalence class methodology is as follows.

25. Equivalence relation example
To review, here is the example. Then relation R is an equivalence relation on set A. Thus if we assume that there are two possible sexes or genders, then there are (at most) two possible equivalence sets in the set of people in the audience.

26. Degenerate cases: example
Degenerate cases should also be handled, such as zero or one piece of data.

What might I mean when I say that "rap music is a degenerate form of music"? If I assume that music consists of melody, harmony, and rhythm, then, since rap music consists of primarily rhythm without discernible melody or harmony, then it is a degenerate form of music since not all parts of music are present. That does not mean that it is bad, it just means that, from an analysis point of view, not all possible components of music, from the above definition, are present.

Note that a melody of all the same duration of note without harmony is also a degenerate form of music. A common error in computation (e.g., programming) is a failure to handle degenerate instances of the problem.

27. Degenerate cases
In the case of determining the rules for the relation, there are two degenerate cases (see above) that can arise when one cannot determine a definite rules. In the first case where everything is related to everything else, the relation is always true, so every element belongs to the same and only equivalence class - which may not very useful. In the second case where nothing is related to anything else, the relation is always false, so each element is not related to any other item, and so each element is a separate equivalence class - which may not be very useful.

28. Algorithms
There are computer algorithms that, given two sets and a relation definition will determine the equivalence classes. These can be somewhat involved, both in implementation and performance analysis, and are omitted here.

29. Union-find
In the well-known union-find problem, Find and Union are defined as follows.

30. Heuristics
The heuristics for the union-find algorithm are as follows.

The heuristic for a Union is to always merge the smaller tree into the larger tree. For this problem, one of the sets will be known to be the smallest tree (i.e., a singleton set).

The heuristic for a Find is that path compression is used in that once the root of the tree is found, the path is traversed a second time so that all elements in the path point to the root.

31. Complexity
The asymptotic worst-case complexity of the union-find algorithm, due to Tarjan, R. (1983). Data structures and network algorithms. Philadelphia, PA: Society for industrial and applied mathematics., is O((m+n) α(n)) where

32. Convex hull
Many solutions to the convex hull problem require handling the Union-Find problem.

33. Observations
Note that one must determine the precise rule or relation first and then apply it to the set or population to get the equivalence sets.

Note that any given element can belong to one and only one equivalence set - due to the reflexivity property.


34. End of page

by RS  admin@creationpie.com : 1024 x 640