This Demonstration models the 24hour (circadian) variation of heart rate as a sinusoid with superimposed random noise. The methods of cosinor biorhythm analysis are used to estimate the magnitude, phase, and statistical significance of the modeled rhythm. The cosinor method fits data to a cosine function, , where and are the mean and amplitude of the sinusoidal rhythm, is the period, and is the time of peak heart rate. In cosinor phraseology, the mean is called the mesor [1, 2, 3]. Plots are shown for the cosinor bestfit solution of and the bivariate error ellipse with amplitude and acrophase of 0.95 confidence intervals, which are dynamically computed and plotted on the polar graph.
The cosinor 0.95 confidence error ellipse is centered at the tip of the amplitudeacrophase vector on the polar plot. The eccentricity and orientation (i.e., tilt) of the ellipse depend on the degree of nonuniformity in data collection, as occurs, for example, when data is missing or otherwise irregularly sampled. When the error ellipse overlaps the pole the amplitude estimate fails the test of significance ( ). This indicates the absence of a sinusoidal rhythm. In the case of pole overlap, amplitude and acrophase confidence intervals do not have calculable bounds [1]. Solving the nonlinear estimating function is straightforward after linearizing the parameters and applying leastsquares techniques. Computing the amplitude and acrophase confidence intervals is more difficult, since efficient closeformed solutions do not exist. We therefore derive the relevant nonlinear implicit equations and apply Mathematica numerical rootfinding techniques. This approach is efficient and permits dynamic updating of parameter values in the Demonstration. The implicit equations defining amplitude and acrophase confidence limits are relevant to detection of circleellipse collisions and locating lineellipse tangency points. [1] W. Nelson, Y. L. Tong, J. K. Lee, and F. Halberg, "Methods for CosinorRhythmometry," Chronobiologia, 6(4), 1979 pp. 305–323. [3] M. A. Rol de Lama, J. P. Lozano, V. Ortiz, F. J. SánchezVázquez, and J. A. Madrid, "How to Engage Medical Students in Chronobiology: an Example on Autorhythmometry," Advances in Physiology Education, 29(3), 2005 pp. 160–64. advan.physiology.org/content/29/3/160.full.pdf+html.
