27 December, 2012

"Jing Fang" Style of Fortune Telling Based on Hexgrams and Five Elements

The Jing Fang Method

The prominent scholar Jing Fang (京房) of the Han dynasty (77-37BC) revolutionized fortune telling based on the 64 hexgrams by marrying them with the concept of the Five Elements.

His method is:
  1. Generate a trigram by the coin substitute method; this is the base hexgram (see this entry)
  2. Create the alternate hexgram by flipping all lines marked with O or X
  3. The base hexgram is used to predict the general state of an event or issue, while the alternative hexgram is used to predict the outcome of an event or issue
  4. Identify the houses of each hexgram
  5. The element of the base trigram of the house of the base hexgram is the source (原神)
  6. The element of the base trigram of the house of the alternative hexgram is used to predict the final outcome
  7. Allocate a Zhi (from the 12-Zhi cycle) to each line of both hexgrams based on an algorithm (the reader can look this up)
  8. Take the appropriate element (based on the event or issue being predicted) as the target (用神)
  9. Make predictions based on the twelve zhi items
When expressed in the language of the Standard Model, step 8-9 become:
  1. For each zhi item allocated to each line of both hexgrams, find its corresponding 3D vector in the Five Elements Phase Space based on the Standard Model
  2. Create a resultant vector by combining the six vectors of the base hexgram
  3. Create a resultant vector by combining the six vectors of the alternative hexgram
  4. Identify the target (用神) element based on the source (原神)
  5. Identify the magnitude of the target element by projecting the resultant vector of the base hexgram -- this generally predicts the strength of the target, or the event/issue being predicted
  6. Identify the magnitude of the target element by projecting the resultant vector of the alternative hexgram -- this generally predicts the strength of the final outcome of the event/issue being predicted
  7. The interactions of both resultant vectors also have implications on whether the final outcome will be favorable or unfavorable -- for example, if the resultant vector of the alternative hexgram is much weaker than the other

Observations

Using the Zhi Formula and the Standard Model takes most of the guesswork out of applying the Jing Fang Method of fortune telling.

There are, however, some unknowns, for example the rationale behind the algorithm of allocating zhi items to each line of a hexgram. Also, practitioners of the Jing Fang method can usually make fine-grained predictions, including specific details, based on the complex interactions of the 12 zhi items -- these cannot be easily generated by the conceptualized Standard Model which reduces all interactions to a single vector embedded in phase space.

The Jing Fang Method is also the first under this study that utilizes the concept of relationships to make predictions on a particular event or issue.  This is actually only an application of the general concept of mapping a base (e.g. the Self House 命宮 in Ziwei Numbers, or the Day Pillar 日柱 in the Four Pillars) and then looking for the correct element or house for the event/issue under question based on relationships. More of this can be seen in future entries when studying other systems of fortune telling, although in many cases, a uniform 60° is used instead of the 72° in the Five Elements basic model.

Practical Example

This example is chosen at random from the book 周易与预测学 (The I-Ching and The Science of Predictions) by 邵伟华.  A prediction was seeked for the illness of asker's wife.

The base hexgram obtained was 比 and the alternate hexgram was 謙, meaning the second and forth lines of the base hexgram were flipped to form the alternate hexgram.

The houses of each hexgrams: 比 is of the house of 坤 (an earth 土 house) and 謙 is of the house of 兌 (a metal 金 house).  Therefore, the source element is earth (土).

As the event being asked is related to the asker's wife, and within the five relations a wife falls under the overcomed, thus the target element (用神) is the element overcome by the source element, or water (水).

Therefore, right away, we have the element of the alternate hexgram being a benefactor (i.e. generator) of the target element -- a particularly optimistic result generally, indicating that it is likely the event will end optimistically (remember the alternate hexgram indicates the outcome of a prediction).

The zhi vectors under the Standard Model for the base hexgram are:

1st Line: 子 (water) = (0, -1, 0)
2nd Line: 戌 (earth) = (+0.43, +0.25, -0.87)
3rd Line: 申 (metal) = (+0.43, -0.25, +0.87)
4th Line: 卯 (wood) = (-1, 0, 0)
5th Line: 巳 (fire) = (+0.25, +0.43, -0.87)
6th Line: 未 (earth) = (-0.25, +0.43, +0.87)

Not considering adjustments made due to season and location (e.g. hotter seasons magnify fire while colder seasons magnify water, spring magnifies wood while autumn magnifies metal), the resultant vector is (-0.14, -0.14, 0), meaning that it is weakly negative (i.e. wood) on the X-axis and weakly negative (i.e. water) on the Y-axis.  The Z-axis component is zero.

As the target element of the event is water, we can judge from the resultant vector of the base hexgram that it is weakly beneficial -- although not strongly but at least not detrimental. This indicates that the wife is weak from illness, but that the illness is likely not to be serious or life-threatening.

The zhi vectors for the alternate hexgram are:

1st Line: 酉 (metal) = (+1, 0, 0)
2nd Line: 亥 (water) = (-0.25, -0.43, -0.87)
3rd Line: 丑 (earth) = (+0.25, -0.43, +0.87)
4th Line: 申 (metal) = (+0.43, -0.25, +0.87)
5th Line: 午 (fire) = (0, +1, 0)
6th Line: 辰 (earth) = (-0.43, -0.25, -0.87)

The resultant vector is (+1, -0.36, 0) -- strongly metal (X-axis) and mildly water (Y-axis), but again no earth.

As the element of the alternate hexgram has mild magnitude in the target element axis, this indicates that the outcome of the prediction should be optimistic, and generally more positive than the original state.

In other words, the wife is expected to recover from a non-life-threatening illness.

30 November, 2012

Gan/Zhi Con't - Formula for The Zhi Cycle

The Standard Model

Starting from the Standard Model -- the version that yields zero magnitudes in the Z axis for 3-Fusion and 3-Union patterns:


It is now possible to compile the equation governing the Zhi cycle's trajectory in the Five Elements Phase Space. The transition from 丑 to 寅, for instance, flips the vector to the opposite side of the plane; same thing for 辰 to 巳, 未 to 申, 戌 to 亥.

This behavior can be successfully modeled by a vector that not only rotates through 360° in the X-Y plane, but also rotates into the Z dimension.

Vector Illustration

Consider a vector that rotates in the X-Y plane through the angle θ, while at the same time rotating by an angle φ about an axis in the X-Y plane that is perpendicular to the vector's projection into X-Y:


When φ > 90°, the vector flips to the opposite side of the X-Y plane, creating the behavior that we observe in the Zhi cycle.

Mapping the vector rotation with components of the Zhi cycle items, it is easy to come up with the fact that:
φ = 2θ
In other words, as the vector rotates 360° through the X-Y plane (representing one complete period of the Zhi cycle), the vector rotates into the Z dimension through 720° -- or two complete rotations.

The Standard Model Formula

Assuming a unit vector:
`x = cos phi sin theta = cos 2 theta sin theta`
`y = -cos phi cos theta = -cos 2 theta cos theta`
`z = sin phi = sin 2 theta`
The minus sign for y is simply there to cast water into negative and fire into positive, instead of the other less-intuitive way.

There is a minor adjustment required. In classical literature, the zhi items 子, 卯, 午, 酉 point to compass directions only in the middle of their segment.  For example, when the Zhi cycle is applied to mark time, the hour represented by 子 is 11:00pm on the previous night to 1:00am, with the mid-point being midnight.  Essentially, only at midnight is the vector for 子 coinciding with the Y axis.

Since each Zhi item occupies 30° in a complete circle, the Zhi cycle must therefore start with θ = -15° instead of θ = 0°.

Formula Behavior

The Zhi cycle when projected on the X-axis takes on the following values (as shown with the green line):


Negative is wood while positive is metal.  The 3-Fusion for wood (寅, 卯, 辰) and 3-Fusion for metal (申, 酉, 戌) are both clearly seen as the lowest trough and highest peak respectively. The lowest/higher points, together with the two sub-depression/sub-peaks surrounding them, form the 3-Union patterns for wood and metal respectively.

Projections on the Y axis (red line) shows similar behavior:


Projections on the Z axis (blue line) is a simple sine curve:


It can be seen immediately that, for all Zhi items with earth as component (i.e. all the items that do not point to pure compass directions) have component values at the mid-point of 0.87 -- almost 90% of the peak value.

This explains why, in classical literature, the earth components of these Zhi items cannot be ignored -- they are almost stronger than any other component -- while there are no earth components for the four Zhi items pointing to pure compass directions. For those items, the actual earth component takes on various values from positive to negative, while that component is zero at the mid-point.

Quaternion Interpretations

The rule φ = 2θ is interesting because, as θ goes from 0° to 360°, φ goes from 0° to 720° (or two complete revolutions). It is well known in geometry and topology that a rotation by360° in three dimensional space is not a symmetry operation (i.e. an object remains twisted), but 720° is symmetric (i.e. the object rotated is not twisted) -- a fact described by the mathematics of quaternions and spinors.

The Standard Model formula describes a curve on the three-dimensional quaternion hypersphere -- a "figure-eight" curve with two loops on both the northern and southern hemisphere. When the hypersphere (in blue) is looked upon from the top, the curve (in red) looks like:
The plane shows θ going from 0° to 360°, while the third dimension (through the plane) ranges from a rotation φ from 0° to 360° -- 0° is the north pole and 360° is the south pole. The red circle is actually two circles stacked on top of each other -- one in the northern hemisphere and one in the southern hemisphere. The trajectory follows a figure-eight path tracing through these two circles.

In the previous entry, it is mentioned that another possible mapping of the Z-axis:

It has fewer redeeming qualities than the Standard Model -- for example, the 3-Fusion and 3-Union patterns yield non-zero components in the Z-axis.  It is also less uniform to fit resulting vector trajectory.

However, this mapping can be described by a great circle on the quaternion hypersphere. But unless the great circle follows the longitudes and go through both poles, the four compass directions 子, 午, 卯, 酉 must also have non-zero components in the Z-axis.

No ancient Chinese texts associated any earth component for 3-Fusion, 3-Union and the four compass directions, except for 午 -- but this fact is explained in a future entry.

Other Interpretations

Considering the 720° rotation of φ, it is possible that the Standard Model formula can be described more elegantly via spinor algebra -- but I am not good enough a mathematician to do this.

29 November, 2012

Gan/Zhi (Trunks/Branches) - Calculus for the Five Elements


Other than the Generating and Overcoming cycles, and the five relationships, ancient China invented a method of categorizing and manipulating the five elements in a strict analytical system.

Zhi (Branches) of the Earth

Ancient Chinese invented a cycle of 12 items -- mirroring other ancient civilizations' love for categories based on the number 12 -- that map roughly to the Five Elements. This cycle is of paramount importance in the study and application of the Five Elements as it provides a calculus for analysis of the five elemental forces.

The cycle is the "Zhi" cycle -- "Zhi" meaning "branch":
子 (water), 丑 (earth),
寅 (wood), 卯 (wood), 辰 (earth),
巳 (fire), 午 (fire), 未 (earth),
申 (metal), 酉 (metal), 戌 (earth),
亥 (water)
The cycle is typically depicted in a circle, mapping the four elements water/fire/metal/wood on two axes:
As can be seen, the 12 items in the Zhi cycle maps roughly to the four compass directions (north/south/east/west) according to the elements they refer to, with north (being cold) mapped to water, south (being hot) mapped to fire, east mapping to wood and west mapping to metal.

Notice a similarity mapping the Five Elements with the Bagua trigrams in a previous entry.

For reasons to be detailed below, this should be named the "simplistic" model.

Gan (Trunks) of the Heavens

At an unknown time in ancient China, another cycle of 10 items, again mapping roughly to the Five Elements, was invented and termed the "Gan" cycle -- "Gan" meaning "trunk":
甲 (wood), 乙 (wood),
丙 (fire), 丁 (fire),
戊 (earth), 己 (earth),
庚 (metal), 辛 (metal),
壬 (water), 癸 (water)
The items in this cycle are mapped to the Five Elements in a more predictable manner, with two mapping to each element in Generating Order.

Gan/Zhi Combo

The 10 items in the Gan cycle is usually combined, in sequence, with the 12 items in the Zhi cycle to form a Gan-Zhi combo with a period of 60, starting from 甲子 to癸亥. This 60-period cycle is usually called one Jiazi (甲子) and is typically used to refer to 60 years.

The Gan-Zhi combo is used primarily to label dates, with one combo used to label year, month, day, and hour respectively.  These four-combo (year, month, day, hour) unique identifies a date/time within a long time span and forms the basis of the Four Pillars (or Eight Characters) system of fortune-telling.

The Zhi Cycle in Detail

As will be seen later, the Zhi cycle plays a much more critical role in Chinese fortune-telling than the Gan cycle, even though it is more complex (or perhaps due to its complexity).

The 12 items in the Zhi cycle can be combined in various patterns (a property missing from the Gan cycle), the most important being the 3-Fusion (三會) and 3-Union (三合) patterns. These patterns essentially are rules for applying the calculus on analysis of the Five Elements.

Five Elements Phase Space Representation

The 12 Zhi items has a simple mathematical representation.  Essentially, we we can take the following three-dimensional phase space model:

and treat each of the 12 Zhi items as vectors lying on the water/fire/wood/metal plane.

By mathematical convention, we can term the wood/metal axis the "X-axis" with wood being the negative direction and metal being the positive direction, the water/fire axis the "Y-axis" with water being the negative direction and fire being the positive direction, and earth the "Z-axis" with up being positive (i.e. dry earth) and down being negative (i.e. wet earth).

Zhi Components

Each item in the Zhi cycle can be decomposed into component Gans (usually named the "hidden Gan's" or 地支藏干) as follows:
子: 癸 (water)
丑: 己 (earth), 癸 (water), 辛 (metal)
寅: 甲 (wood), 丙 (fire), 戊 (earth)
卯: 乙 (wood)
辰: 戊 (earth), 乙 (wood), 癸 (water)
巳: 丙 (fire), 戊 (earth), 庚 (metal)
午: 丁 (fire), 己 (earth)
未: 己 (earth), 乙 (wood), 丁 (fire)
申: 庚 (metal), 戊 (earth), 壬 (water)
酉: 辛 (metal)
戌: 戊 (earth), 辛 (metal), 丁 (fire)
亥: 壬 (water), 甲 (wood)
On the surface, this makes sense if we treat each zhi as a vector on the Five Elements Phase Space. The components are simply projections of each zhi vector on the primary axes.


However, upon careful analysis, one can see a significant problem with this interpretation -- the components elements are intermixed with each other and do not clearly fall into their natural compass directions.  For example, 寅 and 戌, while being on the side of water, has fire as component. This strange behavior is essentially the same for the eight zhi vectors not pointing to strict compass points.  This fact highlights the major short-coming of the "simplistic" model, which is planar on the X-Y plane.

The Standard Model

The presence of earth in most of the zhi vectors also strongly indicate that these vectors do not lie in the X-Y plane, and must have components in the Z-direction. Therefore, it is obvious that the "simplistic" model cannot be a true representation of the Zhi cycle.

To correct the vector positions according to their components, the diagram should look like this:
Notice that this pattern is more complex than the "simplistic" representation which maps each zhi vector in the X-Y plane along equal points on a circle.


The 3-Fusion (三會) Pattern

The 3-Fusion (三會) pattern is simple: three Zhi together, when they occupy the three natural positions for a compass direction, combine to form a strong representation of the element.  For example, the three zhi items 亥, 子 and 丑 all lie in the south, with the first two mapping to water and the third mapping to earth.  These three zhi's combine to form a 3-Fusion patter for water, and are interpreted, taken together, as representing an extremely large magnitude for the water element.

Similarly, 寅, 卯, 辰 form the 3-Fusion pattern for wood, 巳, 午, 未 form the 3-Fusion pattern for fire, and 申, 酉, 戌 form the 3-Fusion pattern for metal:



The 3-Fusion patterns are easy to understand and model in modern mathematical language.  A 3-Fusion pattern simply represents projections on the primary axis of the three zhi vectors are in the same direction, therefore adding/reinforcing each other, with projections to the other axis on the X-Y plane cancelling each other.

For example, the vectors for the three zhi's 寅, 卯 and 辰 all have negative projections on the X-axis, so the magnitude of wood is essentially strengthened. On the other hand, projection of 寅 on the Y-axis is positive while the projection of 辰 on the Y-axis is negative, with magnitudes exactly cancelling each other (projection of 卯 on the Y-axis is zero).

This property of the 3-Fusion pattern works for both the "simplistic" model and the Standard Model.

Therefore, treating each Zhi item as a vector lying on the X-Y plane in the Five Elements Phase Space works well to interpret the 3-Fusion pattern, with the resulting vector lying on either the X or Y axis.

For obvious reasons, there is no 3-Fusion pattern for earth.

The 3-Union (三合) Pattern

The 3-Union (三合) pattern is also extremely important and cited even more frequently than the 3-Fusion pattern in literature. A 3-Union combo is considered to be weaker than a 3-Fusion combo for any element, but magnitude-wise still much stronger than a single vector representing that element.


It is, however, quite strange in that the three Zhi vectors each lie on different sides, forming a unilateral triangle in the "simplistic" model.


When plotted on the Five Elements Phase Space model according to the Standard Model, they represent three vectors on the outlying of each compass direction:

The three vectors for each 3-Union pattern again combine to result in a vector lying purely on either the X or Y axis, with all other components cancelling out.  The resultant vector is of smaller magnitude than the resultant vector of a 3-Fusion pattern due to two vectors being on the outlying region of each compass direction.

Again, for obvious reasons, there is no 3-Union pattern for earth.

2-Fusion and 2-Union Patterns

There are defined in classical Chinese fortune-telling literature of the 2-Fusion (半會) and 2-Union (半合) patterns, though not as useful as the full 3-Fusion and 3-Union patterns.

These two "half patterns" are weaker than the 3-Union, but nevertheless still indicate a somewhat strengthening of the representative element. A "half pattern" is formed with only two out of the three items in 3-Fusion and 3-Union.

The Standard Model works well in representing 2-Fusion and 2-Union.

Other Patterns

There are other patterns used regularly in fortune-telling, though most are not as prevalent as the 3-Fusion and 3-Union patterns.

The most significant one among them must be the Cancellation pattern -- each item in the Zhi cycle cancels an equivalent item directly opposing it (i.e. an item located 180 degrees from it). In fortune-telling applications, cancellations are usually interpreted as either completely negating a good aspect (or making it bad), or strengthening an already bad aspect. When mapped to the Standard Model and the Five Elements Phase Space, it has one straight meaning -- that two zhi vectors point to opposite directions and exactly cancel each other in magnitude. That this will negate a good aspect (i.e. zhi vector pointing to a beneficial direction) is easily understandable. When cancellation occurs, the resultant vector usually ends up with a smaller magnitude (as the magnitudes of two vectors completely cancel each other out), and as will be seen in later entries, a small resultant vector magnitude usually signifies weakness and is most commonly a "bad thing".

There is the 6-Harmony (六合) pattern which is used also quite frequently. This pattern, however, does not lend itself to a ready explanation in the Standard Model.

Other miscellaneous patterns such as the 6-Harming (六害), the 6-Punishments (六刑) etc. also have the same problem.

What About Earth?

Earth is a strange beast in the Zhi cycle (but not in the Gan) cycle.  Under the Standard Model, it alone represents an entire axis in the Five Elements Phase Space.

This special treatment of earth also strongly suggests that, although the Zhi cycle is a calculus on the Five Elements, they are not the same Five Elements as depicted in the Gan cycle!  As a results, it is strongly hinted that there are two different Five Elements systems, and there must be ways to model their interactions with each other.

For example, the Standard Model does not model the exact generating and overcoming cycles of the Five Elements. Instead, mathematically, pairs of elements are opposite of each other and cancels each other -- i.e. water with fire, wood with metal -- at least these are overcoming relationships.  Their interactions with each other are limited, as they represent different axes.  For instance, while water generates wood in the Five Elements, water and wood has no direct interactions in the Standard Model.

In practical applications of the Gan and Zhi cycles to analyze Five Elements, it is common to primarily consider patterns formed by the zhi vectors first and foremost, disregarding the generating/overcoming impacts. Only when all such patterns are considered should the resultant vectors and stand-alone vectors (which do not participate in any pattern) are considered via the elements in a classical Five Elements manner.

As will be seen in later entries, the Standard Model combines all zhi vectors into one resultant vector (which should only represent up to three elements, mapping to the three axes in the Five Elements Phase Space). These three elemental components are then combined with the Gan items, if any, and interpreted via generating/overcoming analysis.

Fixing the Z Component

The 3-Union and 3-Fusion patterns strongly suggest that the Z-axis components of the vectors forming those patterns will cancel out in magnitude and direction, meaning that there are only two possible ways to fix the third dimension on each zhi vector and still be symmetric. The first possibility, the preferred, has the 3-Union and 3-Fusion patterns resulting in vectors with no Z components (red = negative Z, green = positive Z):

Another possibility has the 3-Union and 3-Fusion patterns resulting in vectors with non-zero Z components (red = negative Z, green = positive Z):

The first possibility is preferred as it is completely symmetric, but the second possibility also has certain attractiveness -- in particular, they can be generated by a great circle on a quaternion hypersphere, as show in the next entry!

27 November, 2012

The Five Elements -- Fundamental Properties

It is uncertain when the concept of the Five Elements was invented, but all evidences pointed to the fact that the concept was very ancient indeed.

The Five Elements are: Metal, Wood (or Air/Wind), Water, Fire, Earth.

Incidentally, in Western cultures going way back to ancient Greece, there were talks (e.g. by Aristotle of around 350BC) describing the Four fundamental Elements of nature -- Water, Fire, Wind, Earth. Sometimes the element "Metal" is blended into "Earth" in Western cultures.

Notice that both Eastern and Western cultures seemed to invent their four/five elements at roughly the same times -- ancient Greece and the "Spring/Autumn" and "Warring States" periods in China.  This period in human history appears to be uniquely fertile for conceptual thoughts.

In China, the Five Elements were used broadly to categorize everyday objects and scientific items.  For example, the first five planets in the solar system were named with the Five Elements. Chinese medicine categorized all herbs and plants under each of the Five Elements, as well as all human organs and all sicknesses.

In fact, "Five Elements" is not a literal translation of the Chinese concept, which should more accurately be translated as the "Five Movements" (or "Five Phases", "Five Agents" in other literature). The strong emphasis on dynamics in Chinese fortune-telling is once again evident here. It is also possible that the Chinese name came from mapping the five elements to the first five visible planets in the solar system -- with the Chinese term for planets being "Moving Star".


Generating and Overcoming Cycles

A unique property of the Five Elements conceptual framework developed in China, as opposed to the four elements in Western societies -- and perhaps the underlying reason for this framework's longevity -- is the idea of "generating" (also known as "benefiting") and "overcoming" (also known as "harming").

Each element of the Five Elements "generates" another element in a predictable cycle:

... Metal generates Water generates Wood generates Fire generates Earth generates Metal...
The ordering of the Five Elements is usually represented in a cycle in the Generating Order (depicted clockwise):


In addition, each element in the Five Elements "overcomes" another element, which is defined as the element one after its next element in the Generating Order:
... Metal overcomes Wood overcomes Earth overcomes Water overcomes Fire overcomes Metal...

The Relationships

For each element in the Five Elements, there is one element that it generates (the one after it in the Generating Order) and one element that it overcomes. In addition, there is one element that generates it (the one before it in the Generating Order) and one element that overcomes it.  Together, the generate/overcome/generated-by/overcome-by properties represented the unique relationships of each elements with the other four elements.

These relationships are so important that there are names given to each relationship:
Same element = 兄弟 (siblings, essentially one's peers, or oneself)
Generates = 子孫 (children, essentially beneficiaries)
Overcomes = 妻財 (wife/wealth, essentially things under one's control)
Generated by = 父母 (parents, essentially benefactors)
Overcome by = 官鬼 (authorities/demons, essentially things that have control)
Relationships are used wide in Chinese fortune-telling by mapping the object or issue under question into one of the five categories, and this creates the extremely important concept of 用神 (applicable or target relationship). For example, when questioning things related to money (which is categorized as things under one's control), one first obtains a "base" element (via various methods), then make predictions based on the element which is "overcome by" the base element.  Essentially, the element overcome by the base element is the 用神 (target), and the base element is the 原神 (source). If, however, the question is related to one's career, the element which "overcomes" the base element will be used as the target instead.

Therefore, a unique application of the Five Elements with regards with fortune telling is not by categorizing question types under each of the five elements, but under each of the five possible relationships.  Predictions are then generally made by inspecting the actual value of the "target" element and whether it is enhanced or subdued by external forces.

Applications of Relationships in Other Fortune-Telling Systems

The importance of using relationships instead of the five elements cannot be emphasized enough.

Many Chinese fortune-telling systems use a disguised form of relationships.  For example, the Ziwei Nubmers system divide a circle into 12 equal houses, but bases most predictions regarding career/business, for example, on the "Careers House", which is located 120 degrees off the "Base House". Predictions regarding money, however, are looked at in the "Money House", which is located 120 degrees off the "Base House" in the opposite direction.  These two relative positions map roughly (although not perfectly due to angle differences) to the "overcome-by" and "overcoming" positions in the Five Elements.

 As will be seen in future entries, many other systems (e.g. the Four Pillars) use a relative -120 degrees from the basis vector to look into fortunes for career/business, and +120 degrees for monetary issues.

23 November, 2012

A Small Summary on the Bagua

What We Know So Far...

  • The eight Bagua trigrams appear to form the group Z8
  • The 64 hexgrams appear to form the group Z2 x Z4 x Z8
  • In ancient fortune telling, trigrams were generally not used, but hexgrams were formed by random tossings of yallow sticks, with particular lines marked as special (i.e. those with the numbers 6 and 9) -- or in motion (動)
  • The I-Ching consists of fortunes for each line in motion for a particular hexgram formed

What We Still Do Not Know...

  • Under what kind of procedure are the line patterns of the Bagua trigrams and hexgrams manipulated that can reflect their group theoretical properties -- this particular form of representation (i.e. solid and broken lines) must serve some kind of purposes...
  • Formal relationship between trigrams and hexgrams, if any
  • Why Jing Fang divide the 64 hexgrams into his particular arrangement of eight houses -- in particular, why the seven generation patterns are chosen

Moving Forward...

Fortune telling based on the I-Ching took the ancient form at least until around 50BC, when the scholar Jing Fang revolutionized the field by merging it with another concept -- the Five Elements, in particular that of the Gan/Zhi (i.e. trunk and branch) cycles, which form a calculus on the Five Elements.

Just as a reminder, the Bagua trigrams are mapped to the Five Elements in the following way:
The order of trigrams shown is the Binary Order -- an ordering invented only in the Sung dynasty (around 1000AD), or almost 1,000 years after Jing Fang merged the Bagua with the Five Elements and revolutionized fortune-telling techniques.

19 November, 2012

The 64 Hexgrams are Z2 x Z4 x Z8

64 Hexgrams Grouped into Eight Houses

As seen in the previous entry, the eight Bagua trigrams have interpretations in each of the possible groups of order eight. Nevertheless, one must consider the vital fact that the I-Ching never directly refers to trigrams, but instead to hexgrams.

Traditionally, hexgrams are interpreted as two trigrams stacked on top of one another -- and the names of these two trigrams are used as memory aids to the individual names of each hexgram (e.g. 風山漸 means that the two trigrams 風 (巽) and 山 (艮) together form the hexgram named 漸, with 風 on top of 山).

In the Han dynasty (around 50 BC), a scholar of the name Jing Fang (京房) revolutionized the study of the I-Ching by merging the hexgrams with the concepts of the Five Elements as well as the Gan (干, or "trunk") and Zhi (枝, or "branch") cycles. His method formed the basis of the current standard fortune telling technique that yield much more detailed information than previously using only the 64 hexgrams.

The first step in Jing Fang's method is to divide the 64 hexgrams into eight houses. His method of dividing the hexgrams is novel and sheds light on the structure of the hexgrams themselves.


The houses are formed by first taking the eight hexgrams with the same upper and lower trigrams -- these eight hexgrams can potentially form a sub-group that is isomorphic to the Bagua group. This set is called the Basis set.

Each of the eight hexgrams is thus modified in a predictable manner through seven generations (or variations).  The logic of each generation is easy to discern by inspecting the lines of the hexgrams, and they are:

First generation: The lowest line of the base hexgram flipped
Second generation: The two lowest lines of the base hexgram flipped
Third generation: The three lowest lines (i.e. the lower trigram) of the base hexgram flipped
Fourth generation: All but the top two lines of the base hexgram flipped
Fifth generation: All but the top line of the base hexgram flipped
Sixth generation: The fifth line (from the bottom) and the lower trigram of the base hexgram flipped
Seventh generation: The fifth line (from the bottom) of the base hexgram flipped

Notice the sixth and the seventh generations (variations) as they have special names (遊魂 and 歸魂,, the Wandering Spirit and Returning Spirit respectively) and special significance in Jing Fang's fortune telling technique.

The Seven Generations as a Change Group

It is immediately obvious that the seven generations (variations), plus the identity, may form a group representing change of the hexgram lines. In particular, each generation modifies the base hexgram such that, when the top trigram is compared with the bottom trigram (which should be identical in the base hextram), the two trigrams have different lines in different positions based on the generation in question.

As there are three lines in each of the top/bottom trigrams of the base hexgram, there are eight possible combinations of differences of the three lines (counting identity as one).  It can be seen that each of the seven generations, plus the identity, map directly to one combination.

For example, the first generation has the lower line different between the top and bottom trigrams.  The second generation the lower and middle lines. The third generation with all three lines different. The fourth generation, has only the top two lines different, whilst the fifth generation has only the top line different. The sixth and seventh generations are have the middle line different and the top/bottom lines different respectively.

To illustrate with a 3D model:


Notice that, in the 3D representation of this change group, the two most important generations (sixth and seventh) reside on opposite ends of the cube and form the two end-points of the diagonal traversal. Otherwise, the group elements traverse the cube one edge at a time.

Note: This begs the question that whether the seven generations should have been reordered such that all traversals of the cube occur one edge at a time, such as 0 -> 1 -> 2 -> 3 -> 6 -> 5 -> 4 -> 7.

Reconciling The Houses With The 雜卦傳

Unique among the various commentaries of the I-Ching is the 雜卦傳 (Ad Hoc Commentaries on the Hexgrams), an ancient document that focuses on the differences between hexgrams, and their symmetries, both in structure and in meaning.  This document is most crucial in discerning the meaning of each hexgram (other than the hexgram's name) and is frequently quoted, as the I-Ching itself does not make the meaning of each hexgram clear.

The 雜卦傳 matches many hexgrams into pairs, most of them with opposite meanings (but not all). The pairs are constructed by flipping each hexgram upside-down to find its inverse -- thus immediately suggesting an abelian group in operation.  Hexgrams which look the same when flipped upside-down are paired with their mirrored images (i.e. the hexgram formed by flipping each line of the original hexgram from solid to broken and vice versa).

One important feature of the 雜卦傳 is that it does not pair all the hexgrams in a similar manner -- for example, eight hexgrams (姤, 既濟, 未濟, 夬, 大過, 頤, 漸, 歸妹) are not paired for unknown reasons.  Another remarkable feature is that, although many of the meanings cited by the document are opposite in pairs, some pairs are described by meanings that are not clear opposites of each other, some may even be unrelated.

These features suggest that the 雜卦傳 was merely an ancient attempt to make sense of the group structure of the hexgrams by using two inverse-finding techniques -- i.e. flipping upside-down and mirrored image. These techniques failed for those hexgrams that do not follow these two patterns (as seen later), and the author was not able to reconcile them.

The Basis Set is Z8


If one looks at the change group used to crate the seven generations, another characteristic immediately pops out -- the first generation is related to the fifth generation, whilst the second generation is related to the fourth generation. The third generation relates to itself. The relation is that of flipping the lines changed upside-down (thus changing the lowest line becomes changing the topmost line) and taking a mirrored image (thus a line changing becomes non-changing and vice versa).

For example:
It is thus possible to reconcile the methods used by the 雜卦傳 with Jing Fang's houses if we choose a group for the basis set that maps a trigram to its inverse which is the mirrored image or its flipped upside-down version -- or Z8 as discussed in the previous entry!

If Z8 is chosen as the group for the basis set, then hexgrams the first 5 generations (plus the identity) are all automatically paired with hexgrams that are upside-down versions of themselves, except for the houses 乾 and 坤, which are paired with hexgrams within their own houses (since 乾 is the identity and 坤 is -1, self-inversed, in Z8). This discrepancy is perhaps one of the reasons for the difficulties encountered by the author of 雜卦傳, together with another discrepancy which concerns the last two generations.

The Change Group is Z2 x Z4


Judging from the first five generations and their inverses, it is obvious that the change group can only be either Z8 or Z2 x Z4.

The last two generations are more difficult to map, as they do not follow the pattern of the first five generations, simply because they concern trigrams with either the middle line or the top/bottom lines different. In either case, flipping the changes upside-down yields the exact same item, and thus it is not possible to form an inverse-pair in the same manner as the first five generations, since both would have the same lines that are different.  Because of this, it is strongly likely that the last two generations are self-inverses, similar to the third generation.

Another strong support for the last two generations being self-inverses has to do with a few hexgrams that are not in the basis set but still are the same when flipped upside-down -- i.e. 中孚, 頤, 大過, 小過. All such trigrams occur in the sixth generation. In particular, the names of the two hexgrams 大過 and 小過 (literally, "over-large" and "over-small") suggest that they are related, and if treating the last two generations are self-inverses, these hexgrams are paired with each other as inverse-pairs: 中孚 with 頤, 大過 with 小過 (which can also be interpreted as "plus" and "minus").

Therefore, it is concluded that the most likely group for the change group is Z2 x Z4.

I-Ching is Z8 x Z2 x Z4

It is now possible to reconcile the group structure of the 64 hexgrams with interpretations given in the 雜卦傳:
In this diagram:

Blue = Hexgrams not paired by the 雜卦傳

Yellow = Hexgrams paired (correctly or incorrectly) by the 雜卦傳 as mirrored images and with opposite meanings

Light Green = Hexgrams correctly paired by the 雜卦傳 with opposite meanings
Dark Green = Hexgrams correctly paired by the 雜卦傳 but with meanings that are not opposites

Light Red = Hexgrams incorrectly paired by the 雜卦傳 with opposite meanings
Dark Red = Hexgrams incorrectly paired by the 雜卦傳 and with meanings that are not opposites

As can be seen clearly, the author of the 雜卦傳 appeared to get it right on most of the hexgrams, except for the ones in the sixth/seventh generations, as well as those in the 乾 and 坤 houses (which map to inverses within their own houses). Incidentally, six out of the eight blue hexgrams (those not paired by the author) reside in these special-case zones.

A quick look at the meanings of the discrepancies (i.e. red and blue ones) suggests that the "correct" pairings may actually make better sense:

剝 (separate) <--> 逅 (meet/converge)
觀 (observe) <--> 遯/遁 (hide)
夬 (break) <--> 復 (restore)

大過 (delta plus) <--> 小過 (delta minus)
中孚 (reliable) <--> 頤 (middle ground)
隨 (follow, to wed?) <--> 歸妹 (receive/return bride)
師 (make war) <--> 同人 (harmony)

Ones under the "correct" pairings but with meanings less obvious are:

大壯 (strong) <--> 臨 (arrive)
明夷 (harm) <--> 訟 (argument)
漸 (gradual, improve) <--> 蠱 (rot)

Remaining Issue: The Last (Seventh) Generation

The sixth and seventh generators do not follow the same basic formula as the first five generations (six if counting the basis/identity). This is primarily due to the fact that the difference pattern between their upper and lower trigrams are identical when flipped upside-down.

Still, it would appear that the last (seventh) generation could be rendered differently -- for example, having the fifth line (counting from the top) flipped instead of the current second line, or having the forth and last lines (counting from the top) flipped, etc. The hexgrams residing in the seventh generation will be shuffled into different positions, but the group structure will stay valid.

As there are numerous ways to generate seven variations from a basis set which cover all possible difference patterns between the upper and lower trigrams, the rationale behind this particular choice is still unknown, except that it may lead to a consistent procedure (i.e. a calculus) of manipulating the hexgrams that parallel their group-theoretical behaviors.

22 October, 2012

Bagua is a Group, Most Likely Z8

Binary Interpretation

The Bagua consists of eight trigrams mapping one-one to the eight integers between 0 and 7 representable with three binary bits

Bagua trigrams are also commonly manipulated -- meaning that they can morph from one trigram into other trigrams based on specific rules.  These manipulations, however, do not appear to be numeric in nature -- in other words, the manipulations of trigrams (with operations like flipping a bit -- turning a broken line into a solid line and vice versa) do not map closely to integer arithmethic.

Group Theoretical Interpretation

If one treats the bagua trigrams as a group, however, the manipulations appear to make more sense.  All the requirements of groups appear to match well with the characteristics of the bagua:
  • The eight trigrams are mutually exclusive
  • The eight trigrams are collectively exhaustive and closed (i.e. there is no possible trigram outside the eight)
  • Manipulations of trigrams yield other trigrams
  • There is a trigram mapping to identity (most possibly 乾 ☰ or 坤 ☷)
  • There is an inverse to each trigram (negative image, flipped, etc.)
  • There is an ordering of the 64 hexgrams into an 8x8 matrix (分宮卦序) used in the Four Pillars system, with columns matching the bagua trigrams (shown below) and rows definitely not matching, which almost begs to suggest that the 64 hexgrams is the product of two non-identical groups of order 8 (although it can obviously be also made out of the Cartesian product of two identical groups)

Possible Groups With Order Eight

There are only five groups with order eight up to isomorphism:
  • Z8 -- cyclical group
  • Z2 x Z4 -- cyclical version of dihedral group
  • E8 or Z2 x Z2 x Z2 -- elementary abelian group
  • D8 -- dihedral group of eight
  • Q8 -- quaternion group
Let us look at all five possibilities in turn.

Trigram Inverses

Classical literature often refer to the inverse of a bagua trigram, almost as if the bagua is a group.  There are two primary systems to describe the negative or inverse of a trigram:
  • Flipping all the lines
  • Flipping the trigram upside-down (i.e. the first line becomes the last and vice versa, with the middle line staying put)
Flipping all the lines is an obvious way of matching a trigram with an inverse.  Under such a system, each of the three lines in a trigram can be interpreted as independent of each other, like three orthogonal axes (with the eight bagua trigrams on the eight corners of a cube).

Turning the trigram upside-down to find its inverse is also an extremely interesting idea, not merely due to the fact that it is outlined in I-Ching's 雜卦傳 (the one document primarily concerned with inverses), which pairs up the 64 hexgrams as inverse pairs, and most of them are upside-down versions (e.g. 比 and 師, 損 and 益, 震 and 艮).

The "upside-down" concept of finding inverse is also apparent if one treats the three lines in a trigram as three operations to be performed one after another, and if the operation of each line is its own inverse -- which means that the inverse of the combination operation resulting from the three trigram lines is merely the three same operations applied in reverse (and thus flipping the trigram upside-down).

These two possible manners of finding an inverse of a trigram may shed light towards the group structure of the Bagua.

Z8

The simple cyclical group of order eight has one element (say `a`) that generates the entire group:

`a`, `a^2`, `a^3`, `a^4`, `a^5`, `a^6`, `a^7`, `a^8 = e`

It immediately suggests the Binary Order, with 1 being the generator and group product being addition modulo 8 and the identity element being 0:

☰ = `e` (0)
☱ = `a` (1), inverse = ☷ (`a^7` or 7)
☲ = `a^2` (2), inverse = ☶ (`a^6` or 6)
☳ = `a^3` (3), inverse = ☵ (`a^5` or 5)
☴ = `a^4` (4), self-inverse
☵ = `a^5` (5), inverse = ☳ (`a^3` or 3)
☶ = `a^6` (6), inverse = ☲ (`a^2` or 2)
☷ = `a^7` (7), inverse = ☱ (`a` or 1)

It is obvious that this mapping of trigrams to group elements is not attractive, as there is no apparent relation between pair trigrams (e.g. ☰ and ☷, ☲ and ☵ etc.). It is probably because of this that the Binary Order of trigrams was not invented until much later in A.D.

Another mapping of Z8 to trigrams, however, suggests itself, based on the Sibling Order. Notice that `a^4` is its own inverse, and if we map 坤 ☷ to `a^4` we get the following:

☰ = `e` (Father)
☶ = `a` (Youngest son), inverse = ☴ (`a^7`)
☵ = `a^2` (Middle son), inverse = ☲ (`a^6`)
☳ = `a^3` (Eldest son), inverse = ☱ (`a^5`)

☷ = `a^4` (Mother) = -1, self-inverse
☱ = `a^5` (Youngest daughter), inverse = ☳ (`a^3`)
☲ = `a^6` (Middle daughter), inverse = ☵ (`a^2`)
☴ = `a^7` (Eldest daughter), inverse = ☶ (`a`)

Some attractive features of this mapping:
  • There are clear choices for the father and mother trigrams (which map to the two most important pure trigrams among the eight)
  • The inverse of each trigram is the negative image (i.e. flipping each line) of itself flipped upside-down
  • Each trigram is related to one other trigram which has all the lines flipped by the factor -1 -- i.e., any trigram multiplied by ☷ yields its negative image

Z2 x Z2 x Z2 or E8

The elementary abelian group of order eight is one that maps straight to the trigram representation, with each line mapping to one Z2 subgroup.  However, the interactions form an exclusive-or system, since a broken line may map to `a` and a solid line to `a^2`, with `a^2 = e`.  The broken line is thus a generator, meaning one broken line applied against another broken line yields a solid line, with the following multiplication table:

broken x broken --> solid
broken x solid --> broken
solid x broken --> broken
solid x solid --> solid

In other words, all trigrams are self-inverses, and that applying one trigram to another merely flips all the lines in the first trigram where the second trigram has broken lines, and 乾 ☰ is e (i.e. 1,1,1) and 坤 ☷ is (-1,-1,-1).

Z2 x Z4

On the surface, the group Z2 x Z4 looks unlikely to be a strong candidate -- it is abelian and cyclical, thus limiting the possibility of complex interactions.

However, this group is almost a one-to-one map against the strange (but ancient) Sibling Order, as shown below:

☰ = `(e, e)` (Father) = `e`
☶ = `(e, a)` (Youngest son), inverse = ☳
☵ = `(e, a^2)` (Middle son), self-inverse
☳ = `(e, a^3)` (Eldest son), inverse = ☶

☷ = `(-1, e)` (Mother) = -1
☱ = `(-1, a)` (Youngest daughter), inverse = ☴
☲ = `(-1, a^2)` (Middle daughter), self-inverse
☴ = `(-1, a^3)` (Eldest daughter), inverse = ☱


Notice the unexpected features of this mapping:
  • There are clear choices for the father and mother trigrams (which map to the two most important pure trigrams among the eight)
  • The inverse of each trigram is the trigram flipped upside-down (no other group mapping can boast this feature), a concept outlined in I-Ching's 雜卦傳 (another ancient text)
  • There are two special trigrams which look the same when flipped upside-down (i.e. fire ☲ and water ☵) -- they are self-inverses, but also mirror each other by a factor of -1
  • Each trigram is related to one other trigram which has all the lines flipped (another common inverse algorithm) by the factor -1

Dihedral Group of Eight (D8)

The dihedral group models 90° planar rotations and planar reflections -- usually denoted by `a` and `r` respectively.  A common representation is:

`e`, `a`, `a^2`, `a^3`, `r`, `ar`, `a^2r`, `a^3r`

where `e` = identity, `a` = rotation by 90° and `r` = reflection.

Only two elements are inverses of each other: `a` and `a^3`.  All other elements are self-inverses.
This makes D8 a less attractive candidate group for the bagua trigrams because:
  • so many elements are self-inverses
  • it is not apparent to suggest which element should be 坤 ☷ if 乾 ☰ is taken as `e` and vice versa
  • it is not apparent how to map each of the three lines in a trigram
One possible mapping of the trigrams is:

☰ = `e`
☱ = `r`, self-inverse
☲ = `a`, inverse = ☵
☳ = `a^2r`, self-inverse
☴ = `ar`, self-inverse
☵ = `a^3`, inverse = ☲
☶ = `a^3r`, self-inverse
☷ = `a2`, self-inverse

Under this mapping, fire 火 ☲ and water 水 ☵ are inverses of each other, representing rotations of +90° and -90°.

Multiplication rules based on manipulating solid and broken lines, however, are difficult to come up with.

Quaternion Group (Q8)

The quaternion group is promising. Not only is it non-abelian, it is anti-commutative and thus opens up much flexibility in terms of manipulation.

One possible mapping of the quaternion group is:

☰ = e
☴ = i
☲ = j
☱ = k
☳ = -i
☵ = -j
☶ = -k
☷ = -1

Notice that this mapping has much going for it:
  • There are only two elements which are self-inverses, namely 乾 ☰ and 坤 ☷, incidentally the "father" and "mother" trigrams.
  • Each quaternion axis is represented by one line -- three of them (i, j, k), three lines for each trigram.
  • The inverse of each quaternion axis is simply the trigram with all lines flipped.
  • Since the three quaternion axes are related by anti-commutative rules (e.g. ij = k and ij = -ji), the inverse of each trigram makes some sense (i.e. the inverse of each axis is a combination of the other two axes, or e.g. -i = kj, -j = ik, -k = ji)
Multiplication rules based on manipulating solid and broken lines, however, are difficult to come up with.

Groups Mapping Summary

In order to decide which of the five different groupings map to the eight Bagua trigrams (or the 64 hexgrams), it is useful to identify, for each group, how many elements are self-inverses and how many elements are inverse pairs:

GroupSelf-InversesInverse PairsAbelian?Anti-Commutative
E8 (Z2 x Z2 x Z2)80YN
Z2 x Z442 x 2YN
Z823 x 2YN
D862NN
Q23 x 2NY