Showing posts with label Bagua. Show all posts
Showing posts with label Bagua. Show all posts

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.

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

Bagua Ordering and The Five Elements

The I-Ching outlines a fortune-telling system based on 64 hexgrams (or 64-gua).  Each individual hexgram is named individually in the I-Ching, but the particular hexgram is also referred to by the two trigrams forming the first three and last three lines of the hexgram respectively.

For example, the hexgram 益 is made up of the trigram of wind 風 (☴) and thunder 雷 (☳), representing the first three and last three lines of the hexgram for 益 respectively.

The I-Ching itself, strangely, avoids referring to trigrams, but only to hexgrams.  This is strange as future scholars all put heavy emphasis on the trigrams as the first level of categorization, almost as if the 64 hexgrams are mere extensions of the 8 trigrams -- a Cartesian product of the trigrams onto itself.  On the contrary, the I-Ching specifically avoids formally connecting the hexgrams with trigrams in this manner, and only seems to use trigrams as a convenient notation to refer to hexgrams.

In a future post, this issue will be investigated further with the concept that the Bagua trigrams form a group, and the 64 hexgrams also forming a group.

The I-Ching also does not specify a particular ordering or sequencing of the trigrams or hexgrams, and subsequently several popular orders have occurred -- simply because they must be ordered somehow to put into writing.

The Binary Order

One particular popular ordering of Bagua trigrams is the binary order, seemingly dated to the Suing (宋) dynasty close to 1000AD.  The ordering starts with the trigram of 乾 with all solid lines and essentially treat each broken line as a 1, and each solid line as a 0, starting with the top line as the least significant bit:

  乾 ☰, 兌 ☱, 離 ☲, 震 ☳, 巽 ☴, 坎 ☵, 艮 ☶, 坤 ☷

The Binary Order With The Five Elements

The Binary Order is interesting since it coincides with the Five Elements quite nicely:


 Notice that the I-Ching itself does not refer to the Five Elements, which is an independent development parallel to the I-Ching.  The Binary Order and the connection of the Bagua with the Five Elements appear to be the result of subsequent scholastic developments.

The Ordering of the Five Elements When Matched with the Bagua

Also notice that the ordering of the Five Elements is different from typical orders.  In typical Five Elements lists, an order following the "beget/benefit" (生) cycle or the "harm" (剋) cycle is used.  The matching of the Bagua Binary Order with the Five Elements yields a third ordering that is neither of those.

However, if one inspects this order closely, one can find that it matches other fortune-telling disciplines closely, namely the 12-Zhi (12 地支) categories in the Four Pillars system and the Nine-Squares Matrix (九宮) in fengshui.  Both of these will be discussed fully in future entries.

Similarities With 12-Zhi

The 12-Zhi categories can be modeled as in the following diagram:

Basically, the Five Elements are distributed in three axes, with metal (金) and wood/wind/air (木) forming one axis and opposing each other, fire (火) and water (水) forming another axis and opposing each other, and earth (土) being its own axis -- divided into wet earth (濕土) and dry earth (燥土), most likely the two poles of that axis.

Rotating anti-clockwise from metal and arriving at the earth axis last yields this particular ordering.

Similarities With Nine-Squares Matrix

The Nine-Squares Matrix used in fengshui has the following matching between the Bagua trigrams and the nine squares:

As can be seen, again going anti-clockwise from metal "sort of" yields this particular ordering of the Five Elements, with the exception that earth is squeezed in between metal and first, as well as between wood and water.

The difference treatments of earth in the Nine Squares Matrix and the 12-Zhi suggest that the Nine Squares Matrix may be a flat projection of a three-dimensional model (i.e. similar to 12-Zhi) with three axes.  This coincides with the fact that, historically, Chinese fengshui was preoccupied with two dimensions -- there being no high-rises in ancient China.

This almost indicates that the Nine Squares Matrix fengshui system of fortune-telling is a two-dimensional approximation of a three-dimensional model.

The Siblings Order

There is yet another popular ordering of Bagua trigrams -- the so-called Siblings Order.  This order is much more historical, dating almost back to the origins of the I-Ching itself:

Parent: 乾 ☰ (father) -- Yang
- Children: 艮 ☶ (youngest son), 坎 ☵ (middle son), 震 ☳ (eldest son)

Parent: 坤 ☷ (mother) -- Yin
- Children: 兌 ☱ (youngest daughter), 離 ☲ (middle daughter), 巽 ☴ (eldest daughter)

Definitions of the siblings are Siblings Order given in 說卦傳 (Documentaries on Trigrams):

乾,天也,故稱乎父;坤,地也,故稱乎母;震一索而得男,故謂之長男;巽一索而得女,故謂之長女;坎再索而得男,故謂之中男;離再索而得女,故謂之中女;艮三索而得男,故謂之少男;兌三索而得女,故謂之少女。
The 乾 trigram signifies the heavens and is thus the father. 坤 signifies the earth and is thus the mother. 震 contains the first solid line, making it the eldest son; 巽 contains the first broken line, making it the eldest daughter. 坎 contains the second solid line, making it the middle son. 離 contains the second solid line, making it the middle daughter. 艮 contains the third solid line, making it the youngest son. 兌 contains the third broken line, making it the youngest daughter.

Incidentally, according to unearthed ancient documents (帛書周易) written on cloth dating back to the Han Dynasty around 200BC, the order of the eight trigrams are also given as the Sibling Order instead of other more modern orders that put 乾 ☰ and 坤 ☷ at opposite ends.

Notice also that, in the Siblings Order, there are more broken lines in trigrams categorized as male (except for the father itself, which has no broken line), and more solid lines in trigrams categorized as female (except for the mother itself, which has no solid lines).  A popular explanation:

陽一君而二民,君子之道也;陰二君而一民,小人之道也。
Yang trigrams have one head and two subordinates  -- which is the way of the good.
Yin trigrams have two heads and one subordinate -- which is the way of the evil.

Another popular explanation, which actually seems to make more sense:

陽卦多陰,陰卦多陽,其故何也?
Yang trigrams have more yin lines, and yin trigrams have more yang lines.  Why?
陽卦奇, 陰卦偶。
Yang trigrams have odd numbers of yang lines.
Yin trigrams have even numbers of yang lines.

This explanation actually coincides with the Bagua Procedure outlined in a previous entry, when odd multiples of 4 yield a solid (or yang) line, and even multiples of 4 yield a broken (or yin) line.

The Siblings Order and Group Theory

The Siblings Order is apparently the oldest, most ancient, and most authoritative ordering, but one that makes very little practical sense. Unless one actually looks at the eight Bagua trigrams (and the 64 hexgrams) forming a group, which is the topic of the next entry.

The group structure of the trigrams/hexgrams also explains why ancient people should invent such a strange ordering, apparently without any practical reason, before inventing other more rational types of ordering. The Siblings Order arises naturally in certain groups of order eight.

08 October, 2012

On The I-Ching and The Bagua Procedure

The I-Ching


The I-Ching, or the Book of Changes, is one of China's oldest and most ancient surviving texts.  That this text was used for fortune telling is easy to tell from its title -- the study of events in motion or under change. In modern scientific language, it is thus a calculus on dynamic systems, reducing the science of fortune telling to that of predicting how events will change based on certain laws.
In a commentary of the I-Ching named the 說卦傳 (Descriptions of Hexgrams), there is this famous line:
數往者順,知來者逆,是故易逆數也。
The past is positive, the future is negative. Thus, the I-Ching is concerned with negative numbers/calculations.

It is thus clearly stated that the I-Ching is used for making "negative" calculations, or to predict the future. The most authoritative commentary of the I-Ching, the 繫辭 (Bundled Commentaries), has this to claim:
參伍以變,錯綜其數,通其變,遂成天地之文。極其數,遂定天下之象。
Numbers evolve/change and mix with/criss-cross each other (perhaps referring to a procedure or a mathematical formula).
If all such changes are understood (e.g. formulated as differential equations), one can "write the book" on (what will happen in) the heavens and the earth.
As the numbers (formulas) are evaluated/iterated to their end (e.g. fully integrated), all statuses in the world are determined.
生生之謂易... 極數知來之謂占,通變之謂事,陰陽不測之謂神。
The I-Ching is progressive evolution/iteration/change. Fortune-telling is taking numbers (or formulas) and evaluating/iterating them to their ends (e.g. fully integrated) in order to know the future. Events mean understanding all possible changes. That which cannot be predicted by these methods (yin/yang) is God.
This is by far the clearest implication of fortune-telling as a scientific discipline, in a text that appeared perhaps before 1,000BC!  An even more amazing fact is the commentaries' repeated references to the word 數 (numbers, formulas, or referring to mathematics).  The I-Ching itself has no reference to mathematics or numbers in an arithmetical sense; trigrams and hexgrams do not have numbers in them (although one might argue that their formation involves numbers, as described below).

Why, then, should all commentaries attach numbers (or perhaps mathematics) to the I-Ching without any apparent reason at all?  This can only come from the fact that these authors knew the I-Ching to be a mathematical text on the scientific discipline of fortune-telling, and that it outlines a calculus and treats fortune-telling as solving dynamic systems.

The next series of entries will look at the Bagua system of fortune telling outlined in the I-Ching.

The Bagua Procedure

The following procedure is used to form one single gua (or trigram):
  1. Start with 50 sticks of yallow grass (大衍之數五十)
  2. Throw one away leaving 49 (其用四十有九)
  3. The first cycle:
  4. Take one stick, and divide the remaining 48 sticks randomly into two piles (分而為二以象兩, 掛一以象三) -- a, b where a+b=48.
  5. Take the remainder of each pile divided by 4 (or 4 if zero).  As 48 is divisible by 4, a and b must either both be divisible by 4 or both non-divisible by 4.  Therefore, the two only possible remainders are 4 (both non-divisible) and 8 (both divisible).  (揲之以四以象四時, 歸奇於扐以象閏)
  6. The piles that are left, after deducting the remainder, must either total 44 (=48-4) or 40 (=48-8).
  7. The second cycle:
  8. Repeat steps #4 to #6: divide the remaining 44 or 40 sticks randomly into two piles and take the remainder of each pile divided by 4 (or 4 if zero).  As 44 and 40 are both divisible by 4, the only possible remainders are 4 and 8.  Thus the piles are left must total one of three only possibilities: 32 (=40-8), 36 (=40-4 or 44-8), 40 (=44-4).
  9. The third cycle:
  10. Repeat steps #4 to #6: divide the remaining 32, 36 or 40 sticks randomly into two piles and take the remainder of each pile divided by 4 (or 4 if zero).  As 32, 36 and 40 are all divisible by 4, the only possible remainders are 4 and 8.  Thus the piles are left must total one of four only possibilities: 24 (=32-8), 28 (=32-4 or 36-8), 32 (=36-4 or 40-8), 36 (=40-4).
  11. Divide the resulting pile by 4, yield one of four only possibilities: 6,7,8,9.
  12. The even numbers are yin, with 6 being special and marked with an X.
  13. The odd numbers are yang, with 9 being special and marked with an O.
  14. This concludes the divination of one line out of three that makes up the trigram.  Repeat for two more times to complete the remaining two lines of the trigram.
Diagrammatically, the procedure can be shown as a decision tree:

The Coins Substitute Method

A simpler method was devised subsequently to use three coins instead.  Essentially, each coin of a toss corresponds to each of the three stages in the procedure. A head = -4, tail = -8.  Follow the corresponding branch of the decision tree to reach the ultimate leaf.

Notice that the order of applying the branches (i.e. coin toss results) does not matter -- the same leaf node is reached.  That is because there is only one value that corresponds to any particular combination of -4 and -8.

There are only four possible outcomes of a coin toss regarding three coins:

  • Three heads => -4 x 3 = 48 - 12 = 36
  • Two heads, one tail => -4 x 2 -8 = 48 - 16 = 32
  • One head, two tails => -4 - 8 x 2 = 48 - 20 = 28
  • Three tails => -8 x 3 = 48 - 24 = 24
Thus, the coins substitute method is essentially an exact simulation of the trigram-forming procedure.

O and X Lines

In the I-Ching, all divination's are tied specifically to lines marked by O and X (i.e. 36 and 24, or 9 and 6 in terms of multiples of 4).  For example, a hexgram with the fifth line marked by O is named (九五) while that with the fifth line marked by X is named (六五).

Thus, it is seen that only lines that reach 24 or 36 have significance in interpreting a hexgram.

For each line, the probability of reaching 24 is 0.125 (i.e. 1/8), while that of reaching 36 is also 0.125.  Thus, there is a probability of 0.29 to have only one X or only one O in a trigram, or 0.38 to have only one X or only one O in a hexgram.

The probability of having no X (or no O) in a trigram is 0.67, while having no X (or no O) in a hexgram is 0.45.

The probability of having no X and no O in a trigram is 0.42.  The probability of having no X and no O in a hexgram is 0.18.

The probability of having only one X or O in a trigram is 0.42.  The probability of having only one X or O in a hexgram is 0.36.

Thus, the chances of having only one X or O in a hextram is roughly one-third, in addition to 18% chance of having none.  Essentially, the I-Ching deals with this one-third of possibilities.  The fact that the I-Ching does not deal with situations where there are more than one line marked with X or O strongly suggests that there is a method to reduce the n>1 cases to a combination of n=1 cases (where n = number of lines marked with X or O).