Answers.Body: <p>The question might be improved so that the answer can be more specific by defining two things more rigorously.</p>
  <ul>
  <li>Strength of the connection</li>
  <li>What the automation must infer from that value</li>
  </ul>
  <p><strong>Learning, Correlation, Projection, and Maximizing Profitability</strong></p>
  <p>Guessing from the comments, it appears that the goal is to profile the user for business purposes.  Two common applications of user profiling are</p>
  <ul>
  <li>To present buying options or</li>
  <li>To suggest friends in a social network.</li>
  </ul>
  <p>Although it may appear that a learning program would serve both of these applications, they are actually two very different problems.</p>
  <p>One is to optimize e-commerce profitability through increased sales per session.  The other is to build a social network where there are some similarities and perhaps a few deliberate differences in the pairing of user profiles from which the friend suggestion comes.</p>
  <p>The first of the two has to do with the projecting of the potential of a sale by matching the users and relying on the assumption that two people with like interests are more likely to mirror one another in purchasing patterns to some degree that could be projected with statistical analysis.</p>
  <p>But approaching the project by immediately jumping to learning algorithms may not produce the best results after a month or a year of development.</p>
  <p><strong>One Reasonable Approach for Some Problems of This Type</strong></p>
  <p>Depending on the definitions of STRENGTH and AUTOMATICALLY in the question, it may be a simple application of a probability matrix or hypercube that will create a functional application of user profiling based on interests. To create a correlation between users via an ordered list of interests to place in one of the cells of the matrix or hypercube, the <a href="https://statistics.laerd.com/statistical-guides/spearmans-rank-order-correlation-statistical-guide.php" rel="nofollow noreferrer">Spearman's Rank Order Correlation</a> is a generalized yet effective method for such applications.</p>
  <p><strong>Learning Usually Begins With a Guess</strong></p>
  <p>First, you must determine what is (preferably in precise mathematical terms) what is a favorable product presentation or favorable potential friend introduction.  After that is determined, one can develop a probability formula to project what would be favorable based on the correlation matrix or hypercube.  Bayes's Theorem may be quite applicable in the development of a probability formula from the constraints and relationships of the application.</p>
  <p><strong>Learning Added</strong></p>
  <p>Once improved favorablility gained through the application of the correlations  can be demonstrated, it would then be wise to apply a learning algorithm.  The sequence is thus.</p>
  <ul>
  <li>Results gained by random selection of options to present the user</li>
  <li>Results gained by using the correlation matrix or hypercube</li>
  <li>Results gained by iteratively converging on an optimal presentation</li>
  <li>Tuning the iterative convergence track change and yet not oscillate</li>
  </ul>
  <p>A multi-tier, back propagating Hopfield neural net could be one option for varying parameters in the use of the correlations (or the choice of correlations, since Spearman's is only one correlation model for ordered discrete interests).  Neural networks are only one type of convergent approach too.  Modelling with as a system of differential equations and using extensions of the Taylor Series to evaluate with a defined independent input vector is another.</p>
  <p>To see how simple convergence can be and how primitive what appears to be a learning algorithm can become, think about the <a href="https://web.archive.org/web/20180314015232/http://mathforum.org/library/drmath/view/52623.html" rel="nofollow noreferrer">divide and average method of iteratively determining a square root</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-07-30T01:34:11.937Z
Answers.LastActivityDate: 2022-09-25T12:53:57.400Z
Answers.LastEditDate: 2022-09-25T12:53:57.400Z
Answers.UserDisplayName: Douglas Daseeco
Body: <p>Given this data set:</p>
  
  <pre><code>User 1: {'Artist': 1, 'Public Figure': 9, 'Film Director': 1, 'Education': 1, 'Musician/Band': 4, 'Musician': 1, 'Community': 1, 'Author': 4, 'Politician': 1, 'TV Show': 2, 'Entrepreneur': 1, 'Journalist': 4, 'Product/Service': 1, 'Defense Company': 1, 'Computer Company': 2, 'Nonprofit Organization': 3, 'Computers &amp; Internet Website': 4, 'Media/News Company': 3, 'Podcast': 1, 'News &amp; Media Website': 2, 'Charity Organization': 1, 'Government Organization': 1, 'Magazine': 1}
  User 2: {'Nonprofit Organization': 1, 'Movie': 2, 'Musician/Band': 22, 'Public Figure': 2, 'Entrepreneur': 2, 'TV Show': 2, 'Medical Company': 1, 'American Restaurant': 1, 'Sports &amp; Recreation': 1, 'Media/News Company': 2, 'Sports Team': 1, 'Artist': 3, 'Musician': 1, 'College &amp; University': 1, 'Athlete': 1, 'Music': 1, 'App Page': 1, 'Comedian': 1, 'Interest': 2, 'Product/Service': 1, 'Book Series': 1
  </code></pre>
  
  <p>I believe I can draw conclusions that the strength of the connection is high or low based on the fact that they like or dislike the same categories of topics. What machine learning technique would be best to apply to these connection types, if I had, say, 500 users with categories and weights for each?</p>
  
  <p>I would like to automatically apply varying weights, if most people have Musician/Band or like Movies, that should be less interesting than when people like "Defense Company" like in User 1.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-30T11:06:50.973Z
Comments.Text: @DouglasDaseeco ,before all that i would request the OP to go through the community guide lines [Artificial Intelligence](https://ai.stackexchange.com).No need to rush.
Comments.UserDisplayName: quintumnia
Tags: <machine-learning><algorithm>
Title: Weighing connections between two users using machine learning
UserDisplayName: Dan
ThreadText: # Weighing connections between two users using machine learning
  
  (Asked by: username_0 on 2017-07-29)
  
  Given this data set:
  
  ```
  User 1: {'Artist': 1, 'Public Figure': 9, 'Film Director': 1, 'Education': 1, 'Musician/Band': 4, 'Musician': 1, 'Community': 1, 'Author': 4, 'Politician': 1, 'TV Show': 2, 'Entrepreneur': 1, 'Journalist': 4, 'Product/Service': 1, 'Defense Company': 1, 'Computer Company': 2, 'Nonprofit Organization': 3, 'Computers & Internet Website': 4, 'Media/News Company': 3, 'Podcast': 1, 'News & Media Website': 2, 'Charity Organization': 1, 'Government Organization': 1, 'Magazine': 1}
  User 2: {'Nonprofit Organization': 1, 'Movie': 2, 'Musician/Band': 22, 'Public Figure': 2, 'Entrepreneur': 2, 'TV Show': 2, 'Medical Company': 1, 'American Restaurant': 1, 'Sports & Recreation': 1, 'Media/News Company': 2, 'Sports Team': 1, 'Artist': 3, 'Musician': 1, 'College & University': 1, 'Athlete': 1, 'Music': 1, 'App Page': 1, 'Comedian': 1, 'Interest': 2, 'Product/Service': 1, 'Book Series': 1
  
  ```
  
  I believe I can draw conclusions that the strength of the connection is high or low based on the fact that they like or dislike the same categories of topics. What machine learning technique would be best to apply to these connection types, if I had, say, 500 users with categories and weights for each?
  
  I would like to automatically apply varying weights, if most people have Musician/Band or like Movies, that should be less interesting than when people like "Defense Company" like in User 1.
  
  **Tags:** machine-learning, algorithm
  
  > **Comments:**
  > **username_1**: @username_2 ,before all that i would request the OP to go through the community guide lines [Artificial Intelligence](https://ai.stackexchange.com).No need to rush.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-07-30. Score: 2
  
  The question might be improved so that the answer can be more specific by defining two things more rigorously.
  
  * Strength of the connection
  * What the automation must infer from that value
  
  **Learning, Correlation, Projection, and Maximizing Profitability**
  
  Guessing from the comments, it appears that the goal is to profile the user for business purposes. Two common applications of user profiling are
  
  * To present buying options or
  * To suggest friends in a social network.
  
  Although it may appear that a learning program would serve both of these applications, they are actually two very different problems.
  
  One is to optimize e-commerce profitability through increased sales per session. The other is to build a social network where there are some similarities and perhaps a few deliberate differences in the pairing of user profiles from which the friend suggestion comes.
  
  The first of the two has to do with the projecting of the potential of a sale by matching the users and relying on the assumption that two people with like interests are more likely to mirror one another in purchasing patterns to some degree that could be projected with statistical analysis.
  
  But approaching the project by immediately jumping to learning algorithms may not produce the best results after a month or a year of development.
  
  **One Reasonable Approach for Some Problems of This Type**
  
  Depending on the definitions of STRENGTH and AUTOMATICALLY in the question, it may be a simple application of a probability matrix or hypercube that will create a functional application of user profiling based on interests. To create a correlation between users via an ordered list of interests to place in one of the cells of the matrix or hypercube, the [Spearman's Rank Order Correlation](https://statistics.laerd.com/statistical-guides/spearmans-rank-order-correlation-statistical-guide.php) is a generalized yet effective method for such applications.
  
  **Learning Usually Begins With a Guess**
  
  First, you must determine what is (preferably in precise mathematical terms) what is a favorable product presentation or favorable potential friend introduction. After that is determined, one can develop a probability formula to project what would be favorable based on the correlation matrix or hypercube. Bayes's Theorem may be quite applicable in the development of a probability formula from the constraints and relationships of the application.
  
  **Learning Added**
  
  Once improved favorablility gained through the application of the correlations can be demonstrated, it would then be wise to apply a learning algorithm. The sequence is thus.
  
  * Results gained by random selection of options to present the user
  * Results gained by using the correlation matrix or hypercube
  * Results gained by iteratively converging on an optimal presentation
  * Tuning the iterative convergence track change and yet not oscillate
  
  A multi-tier, back propagating Hopfield neural net could be one option for varying parameters in the use of the correlations (or the choice of correlations, since Spearman's is only one correlation model for ordered discrete interests). Neural networks are only one type of convergent approach too. Modelling with as a system of differential equations and using extensions of the Taylor Series to evaluate with a defined independent input vector is another.
  
  To see how simple convergence can be and how primitive what appears to be a learning algorithm can become, think about the [divide and average method of iteratively determining a square root](https://web.archive.org/web/20180314015232/http://mathforum.org/library/drmath/view/52623.html).
  
  
  ---
  
  