Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Soapbox
  4. Correlation... why between +/- 1

Correlation... why between +/- 1

Scheduled Pinned Locked Moved The Soapbox
16 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D devvvy

    hum... I been looking at how correlation is calculated for last few hours[^]... can't figure out why, mathematically, why correlation is bounded between [-1,+1]

    dev

    I Offline
    I Offline
    Ian Shlasko
    wrote on last edited by
    #4

    Haven't these mathematicians ever heard of variable naming conventions? Ya know, I've worked with calculation libraries written by math PhDs... It's all x, y, z, q, r, n, q1, n1, x1...

    Proud to have finally moved to the A-Ark. Which one are you in?
    Author of Guardians of Xen (Sci-Fi/Fantasy novel)

    D 1 Reply Last reply
    0
    • D devvvy

      yes... but look at the formula... I can't prove, mathematically, why -1< correlation <1

      dev

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #5

      Its like probability, when expressed between 0 and 1 (or -1 and 1) as opposed to percentages. 1 = 100% correlation 0 = 0 % correlation -1 = 100% inverse correlation. It wouldn't make sense to have a 200% correlation and keeping 100% correlation as 1 just makes it much easier.

      Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

      D 1 Reply Last reply
      0
      • K Keith Barrow

        Its like probability, when expressed between 0 and 1 (or -1 and 1) as opposed to percentages. 1 = 100% correlation 0 = 0 % correlation -1 = 100% inverse correlation. It wouldn't make sense to have a 200% correlation and keeping 100% correlation as 1 just makes it much easier.

        Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

        D Offline
        D Offline
        devvvy
        wrote on last edited by
        #6

        But can you prove this *mathematically*

        dev

        D K 2 Replies Last reply
        0
        • D devvvy

          But can you prove this *mathematically*

          dev

          D Offline
          D Offline
          devvvy
          wrote on last edited by
          #7

          ah... I can prove it now... :) [tell me your email I send you prove]

          dev

          modified on Thursday, February 25, 2010 10:54 AM

          1 Reply Last reply
          0
          • I Ian Shlasko

            Haven't these mathematicians ever heard of variable naming conventions? Ya know, I've worked with calculation libraries written by math PhDs... It's all x, y, z, q, r, n, q1, n1, x1...

            Proud to have finally moved to the A-Ark. Which one are you in?
            Author of Guardians of Xen (Sci-Fi/Fantasy novel)

            D Offline
            D Offline
            devvvy
            wrote on last edited by
            #8

            tell me your email, i send you prove :)

            dev

            1 Reply Last reply
            0
            • D devvvy

              But can you prove this *mathematically*

              dev

              K Offline
              K Offline
              Keith Barrow
              wrote on last edited by
              #9

              No, its defined that way (axiomatic), it follows the ternary logic of -1,0,1 and probabalistic systems of any number 0<= probaility <=1. The mathematicians could have chosed -100% -> + 100%, they would just have needed to multiply by 100, using 1 is the simplest form. Any proof you think you have is due to the fact the mathmaticians work in the range -1 <= correlation factor <=1.

              Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

              P D 2 Replies Last reply
              0
              • D devvvy

                hum... I been looking at how correlation is calculated for last few hours[^]... can't figure out why, mathematically, why correlation is bounded between [-1,+1]

                dev

                W Offline
                W Offline
                William Winner
                wrote on last edited by
                #10

                Yeah, it's not really that hard to figure out. If correlation equals = Pearson Correlation Picture[^] then, the values are bounded by 1 and -1. The numerator in the equation can be negative or positive depending on whether the numbers are less than or greater than the means. If it's a negative correlation, that means that the second set of numbers decreases while the first set increases. If it's positive, the second set increases as the first set increases. The equation y=25x-17 has a positive correlation, while the equation y=-25x-17 has a negative correlation. If you don't believe it, throw it into excel and run the numbers.

                modified on Thursday, February 25, 2010 5:00 PM

                D 1 Reply Last reply
                0
                • K Keith Barrow

                  No, its defined that way (axiomatic), it follows the ternary logic of -1,0,1 and probabalistic systems of any number 0<= probaility <=1. The mathematicians could have chosed -100% -> + 100%, they would just have needed to multiply by 100, using 1 is the simplest form. Any proof you think you have is due to the fact the mathmaticians work in the range -1 <= correlation factor <=1.

                  Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

                  P Offline
                  P Offline
                  peterchen
                  wrote on last edited by
                  #11

                  Still, it should be provable that the formula given follows the axioms...

                  Agh! Reality! My Archnemesis![^]
                  | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                  K 1 Reply Last reply
                  0
                  • P peterchen

                    Still, it should be provable that the formula given follows the axioms...

                    Agh! Reality! My Archnemesis![^]
                    | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                    K Offline
                    K Offline
                    Keith Barrow
                    wrote on last edited by
                    #12

                    :laugh:

                    Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

                    1 Reply Last reply
                    0
                    • K Keith Barrow

                      No, its defined that way (axiomatic), it follows the ternary logic of -1,0,1 and probabalistic systems of any number 0<= probaility <=1. The mathematicians could have chosed -100% -> + 100%, they would just have needed to multiply by 100, using 1 is the simplest form. Any proof you think you have is due to the fact the mathmaticians work in the range -1 <= correlation factor <=1.

                      Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

                      D Offline
                      D Offline
                      devvvy
                      wrote on last edited by
                      #13

                      comeon, doesn't take a mathematicians to prove it in range -1,+1. just look at the formula http://en.wikipedia.org/wiki/Correlation_and_dependence[^] and substitute the special case where X=Y (i.e. perfectly correlated) And, it's not probability - it's how two variables co-vary with each other.

                      dev

                      K 1 Reply Last reply
                      0
                      • W William Winner

                        Yeah, it's not really that hard to figure out. If correlation equals = Pearson Correlation Picture[^] then, the values are bounded by 1 and -1. The numerator in the equation can be negative or positive depending on whether the numbers are less than or greater than the means. If it's a negative correlation, that means that the second set of numbers decreases while the first set increases. If it's positive, the second set increases as the first set increases. The equation y=25x-17 has a positive correlation, while the equation y=-25x-17 has a negative correlation. If you don't believe it, throw it into excel and run the numbers.

                        modified on Thursday, February 25, 2010 5:00 PM

                        D Offline
                        D Offline
                        devvvy
                        wrote on last edited by
                        #14

                        just look at the formula http://en.wikipedia.org/wiki/Correlation\_and\_dependence\[^\] and substitute the special case where X=Y (i.e. perfectly correlated), then do the math you'd get there.

                        dev

                        1 Reply Last reply
                        0
                        • D devvvy

                          comeon, doesn't take a mathematicians to prove it in range -1,+1. just look at the formula http://en.wikipedia.org/wiki/Correlation_and_dependence[^] and substitute the special case where X=Y (i.e. perfectly correlated) And, it's not probability - it's how two variables co-vary with each other.

                          dev

                          K Offline
                          K Offline
                          Keith Barrow
                          wrote on last edited by
                          #15

                          devvvy wrote:

                          comeon, doesn't take a mathematicians to prove it in range -1,+1.

                          :wtf: That is not a mathematical proof, which was my point here. What you describe is taking the formula derived by the mathematicians and working it back to their started from, i.e. that perfect correlation =1. If the mathematicians had used percentages instead, you'd work back and get 100%. You are right, it doesn't take a mathematician to work it back, but it does take a mathematician to understand what a mathematical proof is apparently.

                          devvvy wrote:

                          And, it's not probability - it's how two variables co-vary with each other.

                          Never said it was, I said it followed the same system , i.e. a pre-defined range where 1 forms the absolute upper bound. I used probability because the OP was like asking "Why is probability between 0 and 1?". The answer is really by convention, as we can also scale up to percentages, or by a factor of 42 or whatever you want, but 0-->1 remains the simplest form.

                          Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

                          1 Reply Last reply
                          0
                          • D devvvy

                            hum... I been looking at how correlation is calculated for last few hours[^]... can't figure out why, mathematically, why correlation is bounded between [-1,+1]

                            dev

                            J Offline
                            J Offline
                            Jorgen Sigvardsson
                            wrote on last edited by
                            #16

                            You probably need to take the equation for standard deviation into account: http://en.wikipedia.org/wiki/Standard_deviation[^], and then toss the symbols about. Then I'm sure you can find a proof that the coefficient is bounded between -1 and 1 (with one or more constraints).

                            -- Kein Mitleid Für Die Mehrheit

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups