www.brianapps.net - Biorhythm Compatibility Calculation

Biorhythm Compatibility Calculation

Background

After releasing Palm Biorhythms v1.0, I received many requests to include some form of compatiblity calculation in the next version. As a result I added the compatibility view in v2.0. At the time I hadn’t come across a technique to calculate compatibility so I looked at what other programs were doing. It was easy to see that they were using the phase difference between two cycles as a measure of compatibility. Therefore I also adopted this approach.

It wasn’t until some months later that I saw that the compatibilty values I was getting didn’t agree with a popular web site. This prompted a more detailed look into biorhythm compatilibility and the results were inconclusive.

The upshot is that Palm Biorthythms tries to cover all bases. As of v3.0, it offers two methods to calculate compatilibility. Namely Phase Difference and Summed Maximum. (Please note these are my names for the calculations and I don’t make any claims that these are correct, please contact me if you can put me straight.)

The purpose of this page is to describe the details of these calculations and hopefully shed some light on the matter.

Warning: This page assumes the reader has a basic understanding of mathematics and biorhythms. I’ve tried to keep things as simple as possible and all you need to know is a little trigonometry and that each biorhythm cycle is represented as a sine wave.

Phase difference

Phase difference is the original compatibility method used in Palm Biorhythms. It works as follows, when two person’s cycles are in phase their compatibility is 100% when they are out of phase their compatilibility is 0%. Values in between vary uniformly between 100% and 0%.

This definition produces a formula that varies according to the phase difference between two people’s biorhythm cycles:

Cpd=200dmodpp12\displaystyle C_{pd} = 200 \left | \frac{d \bmod p }{p} - \frac{1}{2} \right |

Where:

Summed maximum

An alternative method of calculating compatibility involves adding two people’s waves together and then finding the maximum value. When the waves are in sync, they combine together to produce a result that’s twice as strong; when they are completely out of sync they cancel each other out producing nothing.

I’ve read on some sites that way to calculate this is to add the two waves together, use differentiation to find the maximum and then divide this result by the value obtained when the waves are in sync. While it is possible to use this approach we can get the same result with much less effort as follows.

We start by adding together two sine waves that are out of sync:

sin(x)+sin(xz)\displaystyle \sin{(x)} + \sin(x - z)

Here we are assuming that xx is a measure of time, zz is a measure of the difference between the birth dates of two people and yy is the total value (which we want to find the maximum of). We then use the trigonometric identity:

sina+sinb=2sin(a+b2)cos(ab2)\displaystyle \sin a + \sin b = 2 \sin{ \left ( \frac{a + b}{2} \right )} \cos \left ( \frac{a - b}{2} \right )

and substitute a=xa = x and b=xzb = x - z into the above. This produces:

y=2sin(x+xz2)cos(xx+z2)\displaystyle y = 2 \sin{ \left ( \frac{x + x - z}{2} \right )} \cos{ \left ( \frac{x - x + z}{2} \right )}

which becomes

y=2sin(xz2)cos(z2)\displaystyle y = 2 \sin \left ( x - \frac{z}{2} \right ) \cos { \left ( \frac{z}{2} \right )}

Recall that we are trying to find the maximum value of yy for any value of xx. In the above, there’s only one term that varies with xx, which is sin(xz2)\sin \left ( x - \frac{z}{2} \right ). And, in turn, this sine term can vary between -1 and 1 so therefore the maximum value of yy is.

ymax=2cos(z2)\displaystyle y_{max} = \left | 2 \cos \left ( \frac{z}{2} \right ) \right |

ymaxy_{max} has a maximum value of 2 which occurs when z=2nπz=2n\pi (i.e. when the two waves we added together are in sync). This makes the compatibility formula

Csm=100(ymax2) \displaystyle C_{sm} = 100 \left ( \frac{y_{max}}{2} \right )

Where, CsmC_{sm} is the summed maximum compatibility in %. Finally we express zz in terms of dd and pp (as defined in the phase difference calculation). If we are using radians to calculate sines and cosines then

z=2πdp \displaystyle z = \frac{2 \pi d}{p}

Combining everything together gives:

Csm=100cos(πdp)\displaystyle C_{sm} = 100 \left | \cos \left ( \frac{\pi d}{p} \right ) \right |

Comparison of methods

The graph below shows the how the two calculation methods differ. It plots the compatiblity value for the physical cycle (a period of 23 days) against the phase difference.

Graph showing comparison of compatibility calcuation methods

What’s clear is that both methods agree at two points. When the two cycles are in phase the compatibility is 100%, and when the cycles are out of phase the compatibility is 0%. In between the two methods give different results. I don’t know which method is correct so Palm Biorthythms can use either method.