Probability: Average Size of Group A when Choosing Item from 1 to n

  • Thread starter Thread starter Gekko
  • Start date Start date
  • Tags Tags
    Probability
Gekko
Messages
69
Reaction score
0

Homework Statement



We choose two groups where group A can be of size X where X ranges from 1 to n-1. Group B is the remaining (n-X).
All values of X are equally likely and all group sizes are equally likely

If we choose one item from 1 to n where all choices are equally likely, what is the average size of the group containing the item?

The Attempt at a Solution



Originally I tried the following:

Average size of group A is simply n/2 as it is uniformly distributed and therefore, since the item can be in either group, the size must also be n/2

However, given that the item is more likely to be in the larger of the two groups, we must skew the average to greater than n/2 and indeed, when I run an Excel simulation, that proves correct. Any thoughts on this?
 
Physics news on Phys.org
The solution can be obtained form considering the first 1 to n-1 samples which must all be equally likely to be chosen

This yields

1/n(n-1) * [sum from 1 to (n-1) (x^2 + (n-x)^2)]

and has been verified. Can be simplified further. There must be another way to do this though? A more elegant method perhaps?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top