Determining if a list of numbers is a result of multiplication

Click For Summary

Discussion Overview

The discussion revolves around the challenge of determining the origin of a list of integers, specifically whether they are from a collection of random integers or from a collection generated by multiplying a random integer by an unknown fraction and rounding. The focus includes theoretical approaches and statistical methods to differentiate between the two collections.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes two collections of lists: one with random integers and another generated by multiplying a random integer by an unknown fraction and rounding.
  • Another participant critiques the vagueness of the initial description, noting that terms like "most (but not all)" and "typically (but not always)" lack clarity regarding the distributions involved.
  • A participant suggests using a Bayesian approach to model the data-generating processes and compare them using Bayes factors.
  • Another participant recommends running a Monte Carlo simulation on randomly generated numbers to test the hypothesis.
  • One participant proposes using a Chi-square goodness of fit test to differentiate between the two processes, emphasizing the need for more information about the distributions to draw further conclusions.

Areas of Agreement / Disagreement

Participants express differing views on the clarity of the initial problem description and the methods proposed for analysis. There is no consensus on a single approach, and multiple competing methods are suggested.

Contextual Notes

The discussion highlights limitations in the initial problem description, particularly regarding the probabilities and distributions of the random integers involved. There is also an acknowledgment of the potential for integers generated by the second method to exceed the specified range.

alk10
Messages
1
Reaction score
0
TL;DR
Determining if a list of numbers is a result of multiplication
Suppose I have 2 collections of lists.

In the first collection the lists consists of random integers, with most (but not all) in the range 0-1000.
In the second collection the lists consist of integers calculated in the following way:
a. start with a random integer of similar range to the first list
b. multiply by some unknown fraction, typically (but not always) in the range 0-2.
c. round to the nearest integer

Given a particular list, I would like to be able to predict which collection it comes from.

I have tried taking the modulo from every number between 2-20 and looking at the remainder (as for example if the fraction in b) was exactly 2, then the elements mod 2 would always be zero), but couldn't find a noticeable difference. Would appreciate any ideas.
 
Physics news on Phys.org
You have been very vague about the probabilities or distributions of the random behavior.
Phrases like "most (but not all)", "typically (but not always)", "random integers", etc. do not give us much to work with.
Since the second method might create a large number of integers that are beyond the range 0-1000, I would consider using that to make an educated guess about which method created the list. But your description is too vague to know if that is a feasible method.
 
Last edited:
I would use a Bayesian approach for this (of course). "Simply" write down the data-generating models for your two possibilities and then do a Bayesian analysis for any parameters of the models. Then you can compare the models using Bayes factors or your favorite alternative Bayesian model comparison technique.
 
Just run a Monte Carlo on some randomly generated numbers to test
 
In general, the distributions of the two processes will be significantly different. You should be able to use a Chi-square goodness of fit test to determine which method is more likely for a given sample. Without more information about the distributions, I don't think that much more can be said.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K