Optimizing vector values for maximum correlation2019 Community Moderator ElectionHow to test for Overall Significance?If my data looks like this, is linear regression just never gonna be useful?Converting feature coefficients to probabilities scores for linear modelsDeriving backpropagation equations “natively” in tensor formRemoving Categorial Features in Linear RegressionMy Neural network in Tensorflow does a bad job in comparison to the same Neural network in KerasDealing with diverse groups in regressioncomparison of linear Q-learning and DQNCan we think of neurons as maps between matrices?Can I use Linear Regression to model a nonlinear function?

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

Why not increase contact surface when reentering the atmosphere?

You cannot touch me, but I can touch you, who am I?

Why are there no referendums in the US?

Detecting if an element is found inside a container

Is `x >> pure y` equivalent to `liftM (const y) x`

Purchasing a ticket for someone else in another country?

Class Action - which options I have?

How does it work when somebody invests in my business?

Is a stroke of luck acceptable after a series of unfavorable events?

Balance Issues for a Custom Sorcerer Variant

Method to test if a number is a perfect power?

How to be diplomatic in refusing to write code that breaches the privacy of our users

How can a function with a hole (removable discontinuity) equal a function with no hole?

What does "I’d sit this one out, Cap," imply or mean in the context?

Trouble understanding the speech of overseas colleagues

Is this apparent Class Action settlement a spam message?

How do I extract a value from a time formatted value in excel?

Two monoidal structures and copowering

How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?

How to Reset Passwords on Multiple Websites Easily?

Is expanding the research of a group into machine learning as a PhD student risky?

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Closest Prime Number



Optimizing vector values for maximum correlation



2019 Community Moderator ElectionHow to test for Overall Significance?If my data looks like this, is linear regression just never gonna be useful?Converting feature coefficients to probabilities scores for linear modelsDeriving backpropagation equations “natively” in tensor formRemoving Categorial Features in Linear RegressionMy Neural network in Tensorflow does a bad job in comparison to the same Neural network in KerasDealing with diverse groups in regressioncomparison of linear Q-learning and DQNCan we think of neurons as maps between matrices?Can I use Linear Regression to model a nonlinear function?










0












$begingroup$


I'm new to ML, linear algebra, statistics, etc. so bear with me on the terminology...



I’m looking to find a vector that produces the maximum correlation for the relationship between 1) all relationships among dimensions of the vector (determined by subtraction) and 2) some output value produced by said relationships. I'm specifically using this to create a sports ranking system that takes a number of matches and the resulting scores and attempts to assign a value to the teams that can be used to predict future scores. In other words, the difference between any two team's ratings should be predictive of the next match between the two.



So for example, if I have 3 teams, A, B, and C, each with unknown ratings:



$$
beginarrayc
A&?\
B&?\
C&?\
endarray
$$



If each team played the other once, the left table would be used to calculate their rating differences (column team's rating minus row team's rating). The right table would be the difference in scores in the respective matchups.



$$
beginequation
beginarrayc
&A&B&C \
hline
A&*& B - A& C - A\
B&A - B& *& C - B\
C&A - C& B - C& *\
endarray
Rightarrow
beginarrayc
&A&B&C \
hline
A&0&3&6\
B&-3&0&3\
C&-6&-3&0\
endarray
endequation
$$



Here is a possible solution that, for this example, would result in a perfect correlation between team rating differentials and score differentials.



$$
beginarrayc
A&1\
B&2\
C&3\
endarray
$$



This would be the regression line where x2 is the column team's rating and x1 is the row team's rating.



$$y = 3 * (x_2 - x_1)$$



It’s worth noting that what matters is the relationship between the various values (not their nominal values) since this would be another possible solution:



$$
beginarrayc
A&2\
B&4\
C&6\
endarray
$$



Which would result in a linear equation that looks like this, which would also have a correlation of 1:



$$y = 3over 2 * (x_2 - x_1)$$



What I want to do is find a method to determine values for A, B, and C that maximizes the correlation between the pairwise differences and resulting output values. The one additional catch for the teams example is that not every team will play every other team so any resulting matrices will be asymmetrical (assuming that matters).



Are there any existing techniques to address this problem?










share|improve this question









New contributor




SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$
















    0












    $begingroup$


    I'm new to ML, linear algebra, statistics, etc. so bear with me on the terminology...



    I’m looking to find a vector that produces the maximum correlation for the relationship between 1) all relationships among dimensions of the vector (determined by subtraction) and 2) some output value produced by said relationships. I'm specifically using this to create a sports ranking system that takes a number of matches and the resulting scores and attempts to assign a value to the teams that can be used to predict future scores. In other words, the difference between any two team's ratings should be predictive of the next match between the two.



    So for example, if I have 3 teams, A, B, and C, each with unknown ratings:



    $$
    beginarrayc
    A&?\
    B&?\
    C&?\
    endarray
    $$



    If each team played the other once, the left table would be used to calculate their rating differences (column team's rating minus row team's rating). The right table would be the difference in scores in the respective matchups.



    $$
    beginequation
    beginarrayc
    &A&B&C \
    hline
    A&*& B - A& C - A\
    B&A - B& *& C - B\
    C&A - C& B - C& *\
    endarray
    Rightarrow
    beginarrayc
    &A&B&C \
    hline
    A&0&3&6\
    B&-3&0&3\
    C&-6&-3&0\
    endarray
    endequation
    $$



    Here is a possible solution that, for this example, would result in a perfect correlation between team rating differentials and score differentials.



    $$
    beginarrayc
    A&1\
    B&2\
    C&3\
    endarray
    $$



    This would be the regression line where x2 is the column team's rating and x1 is the row team's rating.



    $$y = 3 * (x_2 - x_1)$$



    It’s worth noting that what matters is the relationship between the various values (not their nominal values) since this would be another possible solution:



    $$
    beginarrayc
    A&2\
    B&4\
    C&6\
    endarray
    $$



    Which would result in a linear equation that looks like this, which would also have a correlation of 1:



    $$y = 3over 2 * (x_2 - x_1)$$



    What I want to do is find a method to determine values for A, B, and C that maximizes the correlation between the pairwise differences and resulting output values. The one additional catch for the teams example is that not every team will play every other team so any resulting matrices will be asymmetrical (assuming that matters).



    Are there any existing techniques to address this problem?










    share|improve this question









    New contributor




    SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$














      0












      0








      0





      $begingroup$


      I'm new to ML, linear algebra, statistics, etc. so bear with me on the terminology...



      I’m looking to find a vector that produces the maximum correlation for the relationship between 1) all relationships among dimensions of the vector (determined by subtraction) and 2) some output value produced by said relationships. I'm specifically using this to create a sports ranking system that takes a number of matches and the resulting scores and attempts to assign a value to the teams that can be used to predict future scores. In other words, the difference between any two team's ratings should be predictive of the next match between the two.



      So for example, if I have 3 teams, A, B, and C, each with unknown ratings:



      $$
      beginarrayc
      A&?\
      B&?\
      C&?\
      endarray
      $$



      If each team played the other once, the left table would be used to calculate their rating differences (column team's rating minus row team's rating). The right table would be the difference in scores in the respective matchups.



      $$
      beginequation
      beginarrayc
      &A&B&C \
      hline
      A&*& B - A& C - A\
      B&A - B& *& C - B\
      C&A - C& B - C& *\
      endarray
      Rightarrow
      beginarrayc
      &A&B&C \
      hline
      A&0&3&6\
      B&-3&0&3\
      C&-6&-3&0\
      endarray
      endequation
      $$



      Here is a possible solution that, for this example, would result in a perfect correlation between team rating differentials and score differentials.



      $$
      beginarrayc
      A&1\
      B&2\
      C&3\
      endarray
      $$



      This would be the regression line where x2 is the column team's rating and x1 is the row team's rating.



      $$y = 3 * (x_2 - x_1)$$



      It’s worth noting that what matters is the relationship between the various values (not their nominal values) since this would be another possible solution:



      $$
      beginarrayc
      A&2\
      B&4\
      C&6\
      endarray
      $$



      Which would result in a linear equation that looks like this, which would also have a correlation of 1:



      $$y = 3over 2 * (x_2 - x_1)$$



      What I want to do is find a method to determine values for A, B, and C that maximizes the correlation between the pairwise differences and resulting output values. The one additional catch for the teams example is that not every team will play every other team so any resulting matrices will be asymmetrical (assuming that matters).



      Are there any existing techniques to address this problem?










      share|improve this question









      New contributor




      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I'm new to ML, linear algebra, statistics, etc. so bear with me on the terminology...



      I’m looking to find a vector that produces the maximum correlation for the relationship between 1) all relationships among dimensions of the vector (determined by subtraction) and 2) some output value produced by said relationships. I'm specifically using this to create a sports ranking system that takes a number of matches and the resulting scores and attempts to assign a value to the teams that can be used to predict future scores. In other words, the difference between any two team's ratings should be predictive of the next match between the two.



      So for example, if I have 3 teams, A, B, and C, each with unknown ratings:



      $$
      beginarrayc
      A&?\
      B&?\
      C&?\
      endarray
      $$



      If each team played the other once, the left table would be used to calculate their rating differences (column team's rating minus row team's rating). The right table would be the difference in scores in the respective matchups.



      $$
      beginequation
      beginarrayc
      &A&B&C \
      hline
      A&*& B - A& C - A\
      B&A - B& *& C - B\
      C&A - C& B - C& *\
      endarray
      Rightarrow
      beginarrayc
      &A&B&C \
      hline
      A&0&3&6\
      B&-3&0&3\
      C&-6&-3&0\
      endarray
      endequation
      $$



      Here is a possible solution that, for this example, would result in a perfect correlation between team rating differentials and score differentials.



      $$
      beginarrayc
      A&1\
      B&2\
      C&3\
      endarray
      $$



      This would be the regression line where x2 is the column team's rating and x1 is the row team's rating.



      $$y = 3 * (x_2 - x_1)$$



      It’s worth noting that what matters is the relationship between the various values (not their nominal values) since this would be another possible solution:



      $$
      beginarrayc
      A&2\
      B&4\
      C&6\
      endarray
      $$



      Which would result in a linear equation that looks like this, which would also have a correlation of 1:



      $$y = 3over 2 * (x_2 - x_1)$$



      What I want to do is find a method to determine values for A, B, and C that maximizes the correlation between the pairwise differences and resulting output values. The one additional catch for the teams example is that not every team will play every other team so any resulting matrices will be asymmetrical (assuming that matters).



      Are there any existing techniques to address this problem?







      linear-regression linear-algebra






      share|improve this question









      New contributor




      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 37 mins ago







      SuperCodeBrah













      New contributor




      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      SuperCodeBrahSuperCodeBrah

      1011




      1011




      New contributor




      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      SuperCodeBrah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          0






          active

          oldest

          votes











          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          SuperCodeBrah is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48105%2foptimizing-vector-values-for-maximum-correlation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          SuperCodeBrah is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          SuperCodeBrah is a new contributor. Be nice, and check out our Code of Conduct.












          SuperCodeBrah is a new contributor. Be nice, and check out our Code of Conduct.











          SuperCodeBrah is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48105%2foptimizing-vector-values-for-maximum-correlation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Ружовы пелікан Змест Знешні выгляд | Пашырэнне | Асаблівасці біялогіі | Літаратура | НавігацыяДагледжаная версіяправерана1 зменаДагледжаная версіяправерана1 змена/ 22697590 Сістэматыкана ВіківідахВыявына Вікісховішчы174693363011049382

          ValueError: Error when checking input: expected conv2d_13_input to have shape (3, 150, 150) but got array with shape (150, 150, 3)2019 Community Moderator ElectionError when checking : expected dense_1_input to have shape (None, 5) but got array with shape (200, 1)Error 'Expected 2D array, got 1D array instead:'ValueError: Error when checking input: expected lstm_41_input to have 3 dimensions, but got array with shape (40000,100)ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)ValueError: Error when checking target: expected dense_2 to have shape (1,) but got array with shape (0,)Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shape (150, 150, 3) but got array with shape (256, 256, 3)Steps taking too long to completewhen checking input: expected dense_1_input to have shape (13328,) but got array with shape (317,)ValueError: Error when checking target: expected dense_3 to have shape (None, 1) but got array with shape (7715, 40000)Keras exception: Error when checking input: expected dense_input to have shape (2,) but got array with shape (1,)

          Illegal assignment from SObject to ContactFetching String, Id from Map - Illegal Assignment Id to Field / ObjectError: Compile Error: Illegal assignment from String to BooleanError: List has no rows for assignment to SObjectError on Test Class - System.QueryException: List has no rows for assignment to SObjectRemote action problemDML requires SObject or SObject list type error“Illegal assignment from List to List”Test Class Fail: Batch Class: System.QueryException: List has no rows for assignment to SObjectMapping to a user'List has no rows for assignment to SObject' Mystery