This interactive tool illustrates the theoretical extremes of the idea of correlation coefficients between two variables: 1, –1, or 0. These figures serve only to provide an idea of the boundaries on correlations. In practice, most variables will not be perfectly correlated, but they will instead take on a fractional correlation coefficient between 1 and –1.
To calculate the correlation coefficient for two variables, you would use the correlation formula, shown below.