Exploring Measures of Association

Using Alt-Click, add additional data points to the scatter plot above or drag the existing data points. The least-squares linear fit to the data changes as you add additional data points or drag them. Additionally, three sample measures of dependence between the and coordinates of the data are summarized (viewing the coordinate projections as realizations from a pair of random variables).


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


Pearson's correlation coefficient is a popular measurement of association between two random variables. It characterizes the extent to which a pair of random variables can be written as , where and are real-valued constants. Unfortunately, the Pearson correlation coefficient completely characterizes the dependence structure between two random variables only when the joint distribution of those random variables is elliptical. In general, elliptical distributions are those distributions with constant curves in that are ellipsoids. Additionally, the Pearson correlation coefficient only captures the first-order, or linear, association between two random variables.
There are numerous additional nonlinear measures of association. Some are finite dimensional and others are infinite dimensional. Two additional finite-dimensional measures of association are Spearman's rho and Kendall's tau.
Spearman's rho is similar to Pearson's rho, but is computed on the ranks of the original data. Kendall's tau is equal to , where is the number of concordant pairs. If and are a pair of bivariate observations of a random vector , then this pair is concordant if . So if we have observations of the random vector , we must determine if up to pairs are concordant.
Infinite-dimensional measures of dependence include copulas and the local correlation function developed by Bjerve and Doksum (1993).
For more information on Spearman's rho and Kendall's tau, see the Wikipedia entries.
    • 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+