Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

Is there a way to simplify this equation?

$$\dbinom{8}{1} + \dbinom{8}{2} + \dbinom{8}{3} + \dbinom{8}{4} + \dbinom{8}{5} + \dbinom{8}{6} + \dbinom{8}{7} + \dbinom{8}{8}$$

Or more generally,

$$\sum_{k=1}^{n}\dbinom{n}{k}$$

share|improve this question

2 Answers

up vote 3 down vote accepted

See

http://en.wikipedia.org/wiki/Combination#Number_of_k-combinations_for_all_k

which says

$$ \sum_{k=0}^{n} \binom{n}{k} = 2^n$$

You can prove this using the binomial theorem where $x=y=1$.

Now, since $\binom{n}{0} = 1$ for any $n$, it follows that

$$ \sum_{k=1}^{n} \binom{n}{k} = 2^n - 1$$

In your case $n=8$, so the answer is $2^8 - 1 = 255$.

share|improve this answer
Thanks. I was trying to figure out all the possible sets of input features for a regression, so my mind start with statistics but I suppose this question is not stats per se. – idris Apr 27 '12 at 18:00
No problem. Please consider upvoting and/or accepting answers you've found helpful :) – Macro Apr 27 '12 at 18:08
Of course. Also I believe your i's should be k's. – idris Apr 27 '12 at 18:09
you're right - fixed. – Macro Apr 27 '12 at 18:09

Homework?

Hint:

Remember the binomial theorem:

$$ (x+y)^n = \sum_{k=0}^{n}\binom{n}{k}x^ky^{n-k} $$

Now, if you could just find x and y so that $x^ky^{n-k}$ is constant...

share|improve this answer
that's a really great hint. Thanks – idris Apr 27 '12 at 18:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.