The problem statement is as follows-
Compute $f(n,k)$ which is the mathematical expectation of the minimal element among all $k$-element subsets of a set $[1,2,...n]$.
My approach is as follows-
$1$ is the minimal element in $\binom{n-1}{k-1}$ and $2$ is the minimal element in $\binom{n-2}{k-1}$ and so on.
It can be proved that $\sum_{i=1}^{n+1-k}\binom{n-i}{k-i}=\binom{n}{k}.$
So according to me the expected value should be $\frac{\sum_{i=1}^{n+1-k}i.\binom{n-i}{k-1}}{k}$
I multiply each term with $\frac{1}{k}$ because the probability of choosing the minimal element is $\frac{1}{k}$.
The answer happens to be $\frac{n+1}{k+1}$. I do not know why my logic is wrong. As far as I am aware, this is the definition of expectation.
This is part of a problem on http://codeforces.com/problemset/problem/840/A.
https://math.stackexchange.com/questions/1095785/binomial-coefficients-identity-sum-i-binomn-ik-1-binomn1k1
– Boshu Sep 27 '18 at 00:15