I apologize for the extremely vapid question, but I am trying to teach myself statistics and don't know of too many resources. through google searches I've found how to count combinations, how to count permutations, and several other things, but what I am looking for is somewhat specific and I haven't been able to find the formula.
If I have a set X = {a,b,c,d} I want to find how many lists (without repetition) can exists, when size of list can be <= size of X
eg {a},{b},{c},{d},{ab},{abc},......{dcba}
Again, I apologize for such a benign question, but I've lost count of all of the ways I've seen to count without finding what I'm looking for!
EDIT: In response to the comment left, {abcd} and {dcba} are both different lists (same set, but different lists). I am basically wanting to know if there is a formula for calculating combinations when the size of combination (which I've read is a list in this context) can be less than or equal to the entire set size. I know combination with replacement is (X size)^(possibilities) and combination without replacement is (X size)! but both of these examples are when the list size is the same as the set size.
Furthermore, empty collection isn't important, I could just add or subtract 1 as need be. And as for the connection: being able to count combinations is an integral part of statistics. It's like how integrals are, well, like integral to calculus :) But specifically, I am creating my own decision tree algorithm and want to know the total possible combinations of features that can be strung together. Hope this clarifies things! Thanks again
MORE EDIT: To those who put my question on hold. Please look at the last paragraph of my previous edit. Being able to count is the first chapter of all probability and statistics books. And specific to my needs, I need to know how many combinations of features I am looking at. As I am constantly changing and looking at new features it would be nice to have a formula that says I have x features so there are y different combinations.