4

I came across the formula for the Pearson Correlation but it gives values between -1 and 1. How would I modify the formula so that it gives values between 0 and 1?

covfefe
  • 2,485
  • 8
  • 47
  • 77

1 Answers1

4

To normalize any set of numbers to be between 0 and 1, subtract the minimum and divide by the range.

In your case the min is -1 and the range is 2, so if a value in your set is -0.5, that value becomes:

(-0.5 - (-1)) / 2

= 0.25
Neil McGuigan
  • 46,580
  • 12
  • 123
  • 152