In: Statistics and Probability
4. Determine the number of integer solutions of x1 + x2 + x3 + x4 = 17, where
a. xi ≥ 0, 1 ≤ i ≤ 4
b. x1, x2 ≥ 3 and x3, x4 ≥ 1
c. xi ≥ -2, 1 ≤ i ≤ 4
d. x1 , x2 , x3 > 0 and 0 < x4 ≤ 10
This is a case of a multinomial distribution.
a) Total number of solutions here such that each number is greater than 0 is computed using the multinomial distribution formula as:
b) Let y1 = x1 - 2 and y2 = x2 - 2.
Therefore, if x1, x2 >= 3, then y1, y2 >= 3 - 2 = 1
Therefore, we have here:
y1 + y2 + x3 + x4 = 17 - 2 - 2
y1 + y2 + x3 + x4 = 13
Now the number of solutions is computed here using the same formula as:
c) We are given here that:
xi >= -2 here for all i, lets keep: yi = xi + 3 for all i.
Then, we have here:
y1 + y2 + y3 + y4 = 17 + 3*4 = 29
Therefore, the number of solutions here is computed as:
d) Here, as each of xi for all i is greater than 0, therefore it has to be greater than equal to 1.
Also, we are given that all x4 <= 10
The number of solutions here is computed as:
Let x4 > 10
Then keeping y4 = x4 - 10, we have: y4 > 0
Therefore,
x1 + x2 + x3 + y4 = 17 - 10 = 7
Number of solutions of above equation is computed as:
And total number of solutions:
Therefore total number of allowable solutions is computed as:
= 560 - 20 = 540
Therefore 540 is the required number of solutions here.