08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Miscellaneous integrals<br />

∫ 1<br />

x=0<br />

x α−1 (1 − x) β−1 dx = Γ(α)Γ(β)<br />

Γ(α + β)<br />

For definition <strong>of</strong> the gamma function see Section 12.3 Binomial coefficients<br />

The binomial coefficient ( )<br />

n<br />

k =<br />

n!<br />

is the number <strong>of</strong> ways <strong>of</strong> choosing k items from n.<br />

(n−k)!k!<br />

The number <strong>of</strong> ways <strong>of</strong> choosing d + 1 items from n + 1 items equals the number <strong>of</strong> ways<br />

<strong>of</strong> choosing the d + 1 items from the first n items plus the number <strong>of</strong> ways <strong>of</strong> choosing d<br />

<strong>of</strong> the items from the first n items with the other item being the last <strong>of</strong> the n + 1 items.<br />

( ( ) ( )<br />

n n n + 1<br />

+ = .<br />

d)<br />

d + 1 d + 1<br />

The observation that the number <strong>of</strong> ways <strong>of</strong> choosing k items from 2n equals the<br />

number <strong>of</strong> ways <strong>of</strong> choosing i items from the first n and choosing k − i items from the<br />

second n summed over all i, 0 ≤ i ≤ k yields the identity<br />

k∑<br />

( )( ) ( )<br />

n n 2n<br />

= .<br />

i k − i k<br />

i=0<br />

Setting k = n in the above formula and observing that ( ) (<br />

n<br />

i = n<br />

n−i)<br />

yields<br />

More generally k ∑<br />

i=0<br />

12.3 Useful Inequalities<br />

1 + x ≤ e x for all real x.<br />

n∑<br />

( ) 2 n<br />

=<br />

i<br />

i=0<br />

( 2n<br />

n<br />

)<br />

.<br />

( n m<br />

) (<br />

i)(<br />

k−i = n+m<br />

)<br />

k by a similar derivation.<br />

One <strong>of</strong>ten establishes an inequality such as 1 + x ≤ e x by showing that the difference<br />

<strong>of</strong> the two sides, namely e x − (1 + x), is always positive. This can be done<br />

by taking derivatives. The first and second derivatives are e x − 1 and e x . Since e x<br />

is always positive, e x − 1 is monotonic and e x − (1 + x) is convex. Since e x − 1 is<br />

monotonic, it can be zero only once and is zero at x = 0. Thus, e x − (1 + x) takes<br />

on its minimum at x = 0 where it is zero establishing the inequality.<br />

(1 − x) n ≥ 1 − nx for 0 ≤ x ≤ 1<br />

380

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!