Timeline for How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:35 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Apr 13, 2017 at 12:56 | history | edited | CommunityBot |
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
|
|
Feb 10, 2016 at 15:07 | comment | added | LifeWorks | Thanks very much! I think this is the best solution! Appreciate it! | |
Feb 10, 2016 at 15:00 | vote | accept | LifeWorks | ||
Feb 17, 2016 at 21:59 | |||||
Feb 5, 2016 at 16:41 | comment | added | Szabolcs | @JasonB The question is not well stated (or rather: contradictory), see my comments above. | |
Feb 5, 2016 at 14:41 | history | edited | Jason B. | CC BY-SA 3.0 |
added 1752 characters in body
|
Feb 5, 2016 at 13:18 | comment | added | Jason B. | That isn't what was asked for in the question. As I understood the question, OP needs two lists that have the same sum, both of which have a uniform distribution between 0 and 1. This does that. I literally cannot get your code to run so I can't even evaluate it. | |
Feb 5, 2016 at 13:08 | comment | added | Coolwater |
Note that this approach doesn't cause the sums to follow the UniformSumDistribution[n] , because the smallest sum is chosen every time. QuantilePlot[Sort[Table[(lists = RandomReal[1, {20, 2}] // Transpose; lists = lists (Min[Total /@ lists]/Total@# & /@ lists); Total[First[lists]]), {200}]], UniformSumDistribution[20], Method -> {"ReferenceLineMethod" -> "Diagonal"}]
|
|
Feb 5, 2016 at 12:44 | history | edited | Jason B. | CC BY-SA 3.0 |
added 92 characters in body
|
Feb 5, 2016 at 12:25 | history | answered | Jason B. | CC BY-SA 3.0 |