My Math Forum > Math Relationship Strength between a pair of numbers

 Math General Math Forum - For general math related discussion and news

 March 20th, 2017, 03: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 03:29 PM.
 March 20th, 2017, 03:40 PM #2 Senior Member     Joined: Sep 2015 From: USA Posts: 2,202 Thanks: 1157 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 04:21 PM.
 March 20th, 2017, 04: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 04:20 PM.
 March 20th, 2017, 04:23 PM #4 Senior Member     Joined: Sep 2015 From: USA Posts: 2,202 Thanks: 1157 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

### connection between a pairs of number for math

Click on a term to search for related topics.
 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post SophiaRivera007 Math 4 January 15th, 2017 10:57 PM dazedAndConfused Math 3 July 1st, 2015 09:07 AM asgharshabro Elementary Math 5 September 7th, 2014 08:10 AM XmathY Number Theory 5 April 22nd, 2012 10:42 AM Hero Advanced Statistics 3 October 20th, 2010 03:03 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top