User tangent - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-25T10:39:23Z http://mathoverflow.net/feeds/user/17157 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/72912/statistical-computation-in-matrix-rows-before-columns-riddle Statistical computation in matrix. Rows before columns? riddle.. Tangent 2011-08-15T08:16:22Z 2011-08-15T20:02:38Z <p>First I'll phrase the question as a riddle, and than as a general math problem. </p> <p>We have 12 lettered vases $(A,B,...,L)$, in each vase there are 30 numbered balls (1-30). In each ball there is some random amount of money between 1-1000 dollars (the distribution of the money in the balls is some IID). Now we have two options:</p> <p>1) We can ask which number (1-30) contains in average the largest amount of money, and than we get 12 balls of that number, we open them all and we take the ball with the highest amount of the 12.</p> <p>2) We can ask which vase (A-L) contains the largest sum of money, and than we get 30 balls from that vase, we open them all and we take the ball with the highest amount of the 30.</p> <p>What is the better strategy, assuming that we want a lot of money...</p> <p>Now to phrase it more generally:</p> <p>Let $A \in\mathbb{N}^{m\times n} , n>m$,</p> <p>Let $x_{ij}$ be i.i.d. (real) random variables with mean 0 and variance 1</p> <p>Let $X_1=\max_{1\leq i\leq m}{\sum_{1\leq j\leq n}a_{ij}}$</p> <p>and let $X_2=\max_{1\leq j\leq n}{\sum_{1\leq i\leq m}a_{ij}}$</p> <p>What is larger (in average, or the expected value of) $X_1$ or $X_2$? That is, what we should take first, the maximum value of the rows and than the highest value in that row, or the maximum value of the columns and than the highest value in that column?</p> <p><strong>Another question</strong> (more combinatorial): We can ask in a case where all of the values in the matrix are different and between 1 to $m\cdot n$. So we have a pure combinatorial question about the possible $m\cdot n!$ permutations of the numbers in the matrix.</p> <p>The riddle is of course like this:</p> <p>Let $A \in\mathbb{N}^{12\times 30}$ ,$1\leq a_{ij} \leq 1000$ (by i.i.d distibution)</p> <p>Let $X_1=\max_{1\leq i\leq 12}{\sum_{1\leq j\leq 30}a_{ij}}$ (Option 1)</p> <p>and let $X_2=\max_{1\leq j\leq 30}{\sum_{1\leq i\leq 12}a_{ij}}$ (Option 2)</p> <p>Thanks! David</p> <p>Edited. Thanks for the comments of Yemon, Gerry and James.</p> http://mathoverflow.net/questions/72912/statistical-computation-in-matrix-rows-before-columns-riddle/72929#72929 Comment by Tangent Tangent 2011-08-16T05:25:21Z 2011-08-16T05:25:21Z Sorry if I'm missing something trivial. Does this version with one &quot;prize ball&quot; is when failing to find the ball with the maximum amount is &quot;bad&quot;, or it also solve the case with scores and we want in average the highest score? Maybe it is the same thing. Maybe the method that is more probable to give you the best ball is also the method that will give you in average the highest amount of money, but I fail to see why it will be the case in every condition. If it is a known fact about i.i.d, can you give me a reference? http://mathoverflow.net/questions/72912/statistical-computation-in-matrix-rows-before-columns-riddle/72925#72925 Comment by Tangent Tangent 2011-08-15T16:14:51Z 2011-08-15T16:14:51Z About the numerical test. I'm ashamed to show it in a mathematical forum, but I ran a simulation in MATLAB, averaged over 10000 simulations. For $m=2, n=100$: Average for the 1st method (choosing column first) is $0.926$ and for 2nd method is $0.967$. I counted how many times each method was better: 1st&gt;2nd: $0.18$, 2nd&gt;1st: $0.59$, 1st==2n: $0.22$ For $(m,n)=(2,3)$: Avg for 1st: $0.958$ for 2nd: $0.968$. times 1st&gt;2nd: $0.194$, 2nd&gt;1st: $0.234$, 1st==2nd: $0.57$ For $(m,n)=(12,30)$: Avg for 1st: $0.88$ for 2nd: $0.9$. times 1st&gt;2nd: $0.382$, 2nd&gt;1st: $0.547$, 1st==2nd: $0.07$