
Math General Math Forum  For general math related discussion and news 
 LinkBack  Thread Tools  Display Modes 
March 20th, 2017, 02:13 PM  #1 
Newbie Joined: Mar 2017 From: UK Posts: 2 Thanks: 0  Relationship Strength between a pair of numbers
Hi All, I am trying to write some code to return be a specific pairs of numbers based on several things. Problem is I am stuck on the math to do it. So I have a set of numbers 1  30 Let's say out of 100, 10 have appeared 50 times, and 20 have appeared 25 times. Together, they have only appeared 10 times. So the probability of them coming together is 10%. Now what I am trying to work out mathematically is the ' strength ' or 'weight; of 10 to 20 and vice versa. The end outcome is I would eventually have a set of 10 numbers that have a strong relationship to one another. Don't know if there is anyone out there who knows about such things as 'number relationships' and how I might be able to achieve what I want. Appreciate it. Thank you. Last edited by skipjack; March 20th, 2017 at 02:29 PM. 
March 20th, 2017, 02:40 PM  #2 
Senior Member Joined: Sep 2015 From: USA Posts: 1,781 Thanks: 919 
Are you picking pairs of numbers? If not, what does "them coming together" mean? If so, when you say that 10 numbers have appeared 50 times does that mean 50 times as one of the pair elements, or 50 times in either of them? Last edited by skipjack; March 20th, 2017 at 03:21 PM. 
March 20th, 2017, 03:10 PM  #3 
Newbie Joined: Mar 2017 From: UK Posts: 2 Thanks: 0 
Sorry. Should have been clear what my program is currently doing. So currently it generates a random set of number let's say a set of six and it does so x amount of times. It let works out every possible pair within every generated set and keeps track of the frequency of each number as well as the frequency of each pair. Hopefully, that clarifies your first question. The second question I wrote it bad. By 10 I meant the number 10 has appeared 50 times. The end result of my program is I want to produce a set of numbers that have a good relationship. Problem I am finding is I can't base it solely on probability or frequency as they may not be a link to each pair. For e.g Pair A is (2,3) appears 50 times Pair b is (5, 10) appears 30 times Pair C is (3, 20) 5 times. Pair D is (3, 30) 20 times If I were to get two pairs back to add to my set, probability would dictate my code to use set A ans B. But I would expect A and D as 3 is in both had has a good relationship with 2 and 30. Set C would be discarded for being too weak. Hopefully, that clarifies a few things. Last edited by skipjack; March 20th, 2017 at 03:20 PM. 
March 20th, 2017, 03:23 PM  #4 
Senior Member Joined: Sep 2015 From: USA Posts: 1,781 Thanks: 919 
are you trying to validate a random number generator? if you are generating truly random numbers (which of course you aren't) then all these statistics should be identical for any given number. there's no reason to think that raw random numbers will have any sort of "strength" relationship between them. If you start adding and subtracting them this changes but raw out of the box random numbers should be just that, random. 

Tags 
numbers, pair, probabability, relationship, strength 
Search tags for this page 
Click on a term to search for related topics.

Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
The relationship of Counting number field & Prime numbers  SophiaRivera007  Math  4  January 15th, 2017 09:57 PM 
relationship between sets of numbers  dazedAndConfused  Math  3  July 1st, 2015 08:07 AM 
relationship between numbers  asgharshabro  Elementary Math  5  September 7th, 2014 07:10 AM 
[Complex Numbers] Inquiry about relationship  XmathY  Number Theory  5  April 22nd, 2012 09:42 AM 
Relationship between numbers  Hero  Advanced Statistics  3  October 20th, 2010 02:03 PM 