I'm having a hard time trying to figure out a formula or pattern for averages when iterations are involved. For example:
Let's say you have four apples, and you want an equal chance for any apple to be picked, but they can only be picked or discarded from right to left. One apple MUST be picked by the end of the iteration.
My first thought was to say Apple 1 has a 25% (1 in 4) chance of being picked, so 75% of the time, it's discarded. If A1 is discarded, Apple 2 would then have a 33.3% chance of being picked, and a 66.7% chance of being discarded. If A2 is discarded, Apple 3 has a 50% chance of being picked, and a 50% chance of being discarded. Since the rule is that an apple must be chosen, Apple 4 has a 100% chance of being picked if Apple 3 is discarded.
I feel like the weight of Apple 4 being chosen isn't right, though I can't say if it's higher or lower than Apple 4 being chosen. Perhaps my above scenario is the correct distribution of chance, but it doesn't quite feel right.