Coefficient of correlation
A statistic representing how closely two
variables co-vary; it can vary from -1
(perfect negative correlation) through 0
(no correlation) to +1 (perfect positive
correlation).
• The correlation coefficient, denoted by r, is a
  measure of the strength of the straight-line or
  linear relationship between two variables. The
  correlation coefficient takes on values ranging
  between +1 and -1.
• The quantity r, called the linear correlation
  coefficient, measures the strength and the
  direction of a linear relationship between two
  variables
 Type of correlation coefficient
1. Perfect Positive correlation
2. Perfect negative correlation
3. Moderately Positive correlation
4. Moderate negative correlation
5. Absolute no correlation
Perfect Positive correlation
• If x and y have a strong positive linear correlation,
  r is close to +1. An r value of exactly +1
  indicates a perfect positive fit. Positive values
  indicate a relationship between x and y variables
  such that as values for x increases, values for y
  also increase.
Perfect negative correlation
• If x and y have a strong negative linear
  correlation, r is close to -1. An r value of exactly
  -1 indicates a perfect negative fit. Negative
  values indicate a relationship between x and y
  such that as values for x increase, values for y
  decrease.
Moderately Positive correlation
 • 0<r<1
Moderate negative correlation
  -1<r<1
Absolute no correlation
• If there is no linear correlation or a weak
  linear correlation, r is close to 0. A value near
  zero means that there is a random, nonlinear
  relationship between the two variables
 Methods of computing the
       correlation
• karl pearson’s correlation coefficient
• spearman’s rank correlation coefficient
karl pearson’s correlation
        coefficient
Spearman’s rank correlation
        coefficient