How do I find the distribution of the following iid variables?
$X_i\sim Ber(p)$ , $n>m$
$$ P(\sum_{i=1}^m X_i | \sum_{i=1}^n X_i ) = \frac {P(\sum_{i=1}^m X_i , \sum_{i=1}^n X_i )}{P(\sum_{i=1}^n X_i )}$$
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityHow do I find the distribution of the following iid variables?
$X_i\sim Ber(p)$ , $n>m$
$$ P(\sum_{i=1}^m X_i | \sum_{i=1}^n X_i ) = \frac {P(\sum_{i=1}^m X_i , \sum_{i=1}^n X_i )}{P(\sum_{i=1}^n X_i )}$$
Hints:
In effect, you will have $\sum\limits_{i=1}^n X_i$ ones out of $n$ with the rest zeros, and you want to know how many of these ones are in the first $m$
The conditional probability will not depend on $p$ and will end up being a hypergeometric distribution
If you do not take that shortcut, you could investigate $\dfrac{P\left(\sum\limits_{i=1}^m X_i =a\right)P\left(\sum\limits_{i=m+1}^n X_i =b-a\right)}{ P\left(\sum\limits_{i=1}^n X_i=b \right)}$