Docsity

Probability and Combinatorics Problems and Solutions, Assignments of Statistics

Toggle sidebar
bg1
University of Illinois Spring 2007
ECE 413: Solutions to Problem Set 2
1. Since there are 31 non-empty subsets of the set of 5 flavors (you wouldn’t want to buy or eat
unflavored ice-cream, would you?), the manufacturer can create and sell 31 specialty flavors.
2. (a) Since there are 27= 128 outcomes with LSB = 1, we have that P(A) = 128
256 =1
2.
(b) There are µ8
5=µ8
3= 56 outcomes in Band hence P(B) = 56
256 =7
32.
(c) When the event A∩Boccurs, we know that the 7 more significant bits have exactly 4
ONEs and 3 ZEROes. Hence |A∩B|=µ7
4=µ7
3= 35. Thus, P(A∩B) = 35
256 and
P(A∪B) = P(A) + P(B)−P(A∩B) = 128
256 +56
256 −35
256 =149
256,while
P(A⊕B) = P(A) + P(B)−2·P(A∩B) = 128
256 +56
256 −2·35
256 =114
256 =57
128.
3. (a) There are µ6
3= 20 possible short lists.
(b) i. P(Beth is on the short list) = µ5
2/20 = 1
2.
ii. P(Chuck is on the short list) = µ5
2/20 = 1
2also.
iii. P(Beth and Chuck both are on the short list) = µ4
1/20 = 1
5.
iv. P(Chuck and two women are on the short list) = µ3
2/20 = 3
20.
4. (a) The 0-th derivative f(0)(x) is just f(x) = (1 + x)nitself. The first derivative is f(1)(x) =
n(1 + x)n−1, the second is f(2)(x) = n(n−1)(1 + x)n−2, and so on. The k-th derivative
is f(k)(x) = n(n−1) · · · (n−k+ 1)(1 + x)n−k, and finally the n-th derivative is f(n)(x) =
n(n−1) ···2·1 = n! which is a constant. Hence, the first n+ 1 terms of the Maclaurin
series for f(x) are
f(x) = (1 + x)n≈
n
X
k=0
f(k)(0)
k!xk=
n
X
k=0
n(n−1) · · · (n−k+ 1)
k!xk.
(b) Since f(n)(x) is a constant, f(k)(x) = 0 for all k > n. Thus, the above is the complete
Maclaurin series for f(x); there is no approximation.
(c) µn
k=n!
k!(n−k)! =n(n−1) · · · (n−k+ 1)(n−k)(n−k−1) · · · 2·1
((n−k)(n−k−1) · · · 2·1)k!
=n(n−1) · · · (n−k+ 1)
k!and so the results match.
(d) Using the chain rule,
g(k)(x)=(−n)(−n−1)(−n−2) · · · (−n−k+ 1)(1 −x)−n−k(−1)k
=n(n+ 1)(n+ 2) ···(n+k−1)(1 −x)−n−k
Thus, g(k)(0) = n(n+ 1)(n+ 2) · · · (n+k−1) 6= 0 for all integers k≥0. Hence, the
MacLaurin series for g(x) contains terms of all degrees, and we have that
g(x) = (1 −x)−n=
∞
X
k=0
g(k)(0)
k!xk=
∞
X
k=0
n(n+ 1) ···(n+k−1)
k!xk.
pf3

Partial preview of the text

Download Probability and Combinatorics Problems and Solutions and more Assignments Statistics in PDF only on Docsity!

University of Illinois Spring 2007 ECE 413: Solutions to Problem Set 2

  1. Since there are 31 non-empty subsets of the set of 5 flavors (you wouldn’t want to buy or eat unflavored ice-cream, would you?), the manufacturer can create and sell 31 specialty flavors.
  2. (a) Since there are 2^7 = 128 outcomes with LSB = 1, we have that P (A) =

(b) There are

= 56 outcomes in B and hence P (B) = 56 256

(c) When the event A ∩ B occurs, we know that the 7 more significant bits have exactly 4 ONEs and 3 ZEROes. Hence |A ∩ B| =

= 35. Thus, P (A ∩ B) =

and

P (A ∪ B) = P (A) + P (B) − P (A ∩ B) =

, while P (A ⊕ B) = P (A) + P (B) − 2 · P (A ∩ B) =

  1. (a) There are

= 20 possible short lists.

(b) i. P (Beth is on the short list) =

ii. P (Chuck is on the short list) =

also.

iii. P (Beth and Chuck both are on the short list) =

iv. P (Chuck and two women are on the short list) =

  1. (a) The 0-th derivative f (0)(x) is just f (x) = (1 + x)n^ itself. The first derivative is f (1)(x) = n(1 + x)n−^1 , the second is f (2)(x) = n(n − 1)(1 + x)n−^2 , and so on. The k-th derivative is f (k)(x) = n(n − 1) · · · (n − k + 1)(1 + x)n−k, and finally the n-th derivative is f (n)(x) = n(n − 1) · · · 2 · 1 = n! which is a constant. Hence, the first n + 1 terms of the Maclaurin series for f (x) are

f (x) = (1 + x)n^ ≈

∑^ n k=

f (k)(0) k! xk^ =

∑^ n k=

n(n − 1) · · · (n − k + 1) k! xk.

(b) Since f (n)(x) is a constant, f (k)(x) = 0 for all k > n. Thus, the above is the complete Maclaurin series for f (x); there is no approximation. (c)

n k

n! k!(n − k)!

n(n − 1) · · · (n − k + 1)(n − k)(n − k − 1) · · · 2 · 1 ((n − k)(n − k − 1) · · · 2 · 1)k! = n(n − 1) · · · (n − k + 1) k! and so the results match. (d) Using the chain rule, g(k)(x) = (−n)(−n − 1)(−n − 2) · · · (−n − k + 1)(1 − x)−n−k(−1)k = n(n + 1)(n + 2) · · · (n + k − 1)(1 − x)−n−k Thus, g(k)(0) = n(n + 1)(n + 2) · · · (n + k − 1) 6 = 0 for all integers k ≥ 0. Hence, the MacLaurin series for g(x) contains terms of all degrees, and we have that

g(x) = (1 − x)−n^ =

∑^ ∞

k=

g(k)(0) k! xk^ =

∑^ ∞

k=

n(n + 1) · · · (n + k − 1) k! xk.

(e) For n = 1, n(n + 1) · · · (n + k − 1) = k! while for n = 2, n(n + 1) · · · (n + k − 1) = (k + 1)!. Hence,

(1 − x)−^1 =

∑^ ∞

k=

xk^ = 1 + x + x^2 + · · · and (1 − x)−^2 =

∑^ ∞

k=

(k + 1)xk^ = 1 + 2x + 3x^2 + · · ·

(f) The k-th derivative of h(x) = (1 + x)a^ where a is a real number and not necessarily an integer is h(k)(x) = a(a − 1) · · · (a − k + 1)(1 + x)a−k^ where the exponent cannot equal 0 except when a = k is a positive integer. Thus, the MacLaurin series has terms of all degrees and we have that

h(x) = (1 + x)a^ =

∑^ ∞

k=

h(k)(0) k! xk^ =

∑^ ∞

k=

a(a − 1) · · · (a − k + 1) k! xk.

  1. (a) The complement of a set of size k is a subset of size n − k and vice versa. Hence, there are as many subsets of size n − k as there are of size k, i.e.

n n − k

n k

(b) The first term on the right in

n k

n − 1 k − 1

n − 1 k

is the number of subsets that contain a specific element, say x 1 , with the remaining k − 1 elements being chosen from the remaining n − 1 elements. The second term on the right is the number of subsets of size k that do not include x 1. (c)

m + n k

committees of size k can be drawn from a set of m men and n women. Of

these,

m i

n k − i

committees have i men and k − i women. Summing over all possible

values of i, we conclude that

m + n k

∑^ k i=

m i

n k − i

(d) The coefficient of xk^ in the polynomial (1 + x)m+n^ is

m + n k

Now, if h(x) = f (x)g(x), then hk =

i figk−i.^ Applying this to^ f^ (x) = (1 +^ x) m (^) and

g(x) = (1 + x)n, we get that

m + n k

∑^ k i=

m i

n k − i

as before.

(e) With ( m = k = n, 2 n n

∑^ n i=

n i

n n − i

∑^ n i=

[(

n i

)] 2

since

n n − i

n i

(f) (1 + x)n^ =

n 0

n 1

x +

n 2

x^2 +

n 3

x^3 +

n 4

x^4 + · · ·

(1 − x)n^ =

n 0

n 1

x +

n 2

x^2 −

n 3

x^3 +

n 4

x^4 − · · ·

from which we get that (1 + x)n^ + (1 − x)n^ = 2

[(

n 0

n 2

x^2 +

n 4

x^4 + · · ·

]

. Set x = 1 and note that the left side has value 2n^ while the right side is twice the number of sets with an even number of elements. More simply, set x = 1 in (1 − x)n^ to get

0 =

n 0

n 1

n 2

n 3

n 0

n 2

n 1

n 3

  • · · · = 2n−^1.