Cosinor Analysis Using Rotating Ellipse Tangents and Circle Collisions

Cosinor analysis uses a least squares method to fit a cosine wave to biorhythm time series data. The method can be applied to nonuniformly sampled studies with missing data points. The fitted cosine function is given by , where is the amplitude and is the acrophase of the time series [1], [2]. The acrophase is the time period in which the cycle peaks. The Demonstration plots the cosinor 95% bivariate error ellipse of the cosinor parameter estimates and dynamically computes associated confidence interval (CI) limits.
In the bookmarks, data is shown from cosinor analysis of 24-hour heart rate (HR) recordings in humans. HR is reported by its reciprocal parameter, RR interval, the time between consecutive heartbeats measured in milliseconds. Illnesses such as heart disease and depression disturb the amplitude and acrophase of 24-hour HR periodicity.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Using coordinate geometry analysis to characterize tangency conditions and circle-ellipse collisions, Mathematica root-solving methods are applied dynamically to determine acrophase and amplitude confidence interval (CI) limits. The cosinor error ellipse parametric curve, and , lies on the axis of the acrophase angle () offset by a tilt (). Cosinor studies with uneven and/or missing data produce a rotated, eccentric ellipse, which influences CI limits.
[1] M. A. Rol de Lama, J. P. Lozano, V. Ortiz, F. J. Sánchez-Vázquez, and J. A. Madrid, "How to Engage Medical Students in Chronobiology: An Example on Autorhythmometry," Advances in Physiology Education, 29, 2005 pp. 160–164. advan.physiology.org/content/29/3/160.full.pdf+html.
[2] R. Ferrara and A. Antonellini, "Using the SAS System for COSINOR Analysis of 24 Hour Ambulatory Blood Pressure Monitoring (ABPM) Data," in SAS European Users Group International Proceedings (SEUGI 1993), Jersey, Channel Islands: SAS Institute, 1993. www.sascommunity.org/seugi/SEUGI1993/Using%20 the %20 SAS %20 System %20 for %20 COSINOR %20 Analysis %20 of %2024 %20 Hour %20 Ambulatory %20 Blood %20 Pressure %20 Monitoring %20(ABPM)%20 Data.pdf.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+