What's The Probability?

For fixed integers n n and k k , find all k k -tuples of non-negative integers ( a 1 , a 2 , a k ) (a_1, a_2, \ldots a_k) such that

a 1 + a 2 + + a k = n a_1 + a_2 + \cdots + a_k = n

For each integer i i from 0 to n n , let p i p_i be the probability that one of the a j a_j is equal to i i . What is the value of

1 × p 1 + 2 × p 2 + n × p n ? 1\times p_1 + 2 \times p_2 + \cdots n \times p_n ?

n 2 k \frac n{2k} n k \frac nk n 1 k \frac{n-1}k n k 1 \frac n{k-1}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Calvin Lin Staff
Nov 9, 2016

Observe that the expression 0 × p 0 + 1 × p 1 + 2 × p 2 + n × p n 0 \times p_0 + 1\times p_1 + 2 \times p_2 + \cdots n \times p_n is actually asking for the expected value of a term.

For each equation, suppose that we have a solution A 1 + A 2 + + A k = n A_1 + A_2 + \cdots + A_k = n , it is clear that the expected value of each term is simply a i 1 = n k . \frac { \sum a_i }{ \sum 1 } = \frac{n}{k} . This tells us that E [ X a 1 = A 1 , a 2 = A 2 , , a k = A k ] = n k . E[ X | a_1=A_1, a_2=A_2, \ldots, a_k = A_k] = \frac{n}{k} .

Now, we apply the law of iterated expectation , which tells us that

E [ X ] = E [ X P i ] × P ( P i ) E[X] = \sum E[X | P_i ] \times P ( P_i )

Letting P i P_i be the individual events of each solution set { A 1 , A 2 , A k } \{ A_1, A_2, \ldots A_k \} , we get that E [ X ] = E [ X P i ] × P ( P i ) E[X] = \sum E[X | P_i ] \times P(P_i) . Since each of the E [ X P i ] E[X|P_i] values are equal to n k \frac{n}{k} , hence we conclude that

E [ X ] = n k × P ( P i ) = n k P ( P 1 ) = n k × 1 E[X] = \sum \frac{n}{k} \times P ( P _ i ) = \frac{n}{k} \sum P(P_1) = \frac{n}{k} \times 1

Thus, the answer to the question is n k \frac{n}{k} .


Note: This solution is independent of which specific sets of equations we have to use (e.g. do we allow repeated terms, do we count permutations as distinct solution sets, etc).
In fact, it is also independent of the types of integers that we're allowed to have. In particular, the answer is the same for positive integers or the positive odd integers! All that it uses is P ( P i ) = 1 \sum P(P_i) = 1 , so we just need to ensure that there exists non-zero but finitely many solutions to the equation, for the uniform distribution selection to make sense.

Very nice solution. I did it exactly the same way interpreting the sum as an expectation.

Samrat Mukhopadhyay - 4 years, 6 months ago

Log in to reply

That is a very nice solution by Calvin sir.I did using the same approach.However, in case you just want the answer and not the proof,then take n=k=1.In that case p1=1.So the value of the expression asked becomes 1.Only one option,that is n/k will give the answer as 1.Hence the answer is n/k.

Indraneel Mukhopadhyaya - 4 years, 6 months ago

Log in to reply

Well it is always safer to have a proof when you're trying to generalize a result; though strong intuition is also key to "see through" the problem.

Samrat Mukhopadhyay - 4 years, 6 months ago

For solutions, the idea is to explain why the answer is true, and not just assume that there must be a true answer in the options.

Calvin Lin Staff - 4 years, 6 months ago

Log in to reply

@Calvin Lin Very true sir.

Indraneel Mukhopadhyaya - 4 years, 6 months ago
Mark Hennings
Nov 20, 2016

The key to this is that there is nothing special about the integer j j . We are being asked for the expected value E [ a j ] \mathbb{E}[a_j] of the j j th integer. The symmetry of the problem makes it clear that E [ a 1 ] = E [ a 2 ] = = E [ a k ] \mathbb{E}[a_1] = \mathbb{E}[a_2]= \cdots = \mathbb{E}[a_k] and so, since a 1 + a 2 + + a k = n a_1 + a_2 +\cdots + a_k = n , it is clear that each expectation is equal to n k \tfrac{n}{k} .

Abhishek Sinha
Nov 23, 2016

Here is a simpler solution that uses only an elementary counting argument. List the set of all solutions of the equations in a particular order. Assume that there is a total of N N solutions and the integer i i appears in the j j th solution N i j N_{ij} times. Then, we have i = 0 n i N i j = n , j = 1 , 2 , N , ( 1 ) \sum_{i=0}^{n} iN_{ij}=n, \hspace{10pt} \forall j=1,2, \ldots N, \hspace{10pt} (1) Note that, there is a total of N k Nk coordinates (i.e., a i a_i 's). Fraction of the coordinates in which the integer i i appears is p i = 1 N k j = 1 N N i j p_i = \frac{1}{Nk}\sum_{j=1}^{N} N_{ij} Hence, i = 0 n i p i = ( a ) 1 N k ( j = 1 N i = 0 n i N i j ) = ( b ) N n N k = n k , \sum_{i=0}^{n} ip_i\stackrel{(a)}{=} \frac{1}{Nk} \big(\sum_{j=1}^{N} \sum_{i=0}^{n} iN_{ij}\big) \stackrel{(b)}{=} \frac{Nn}{Nk}= \frac{n}{k}, where in (a), we have interchanged the order of summation and in (b), we have used the equation (1).

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...