Probability of consecutive elements in set

In summary, the probability of there being Y consecutive initial-numbers remaining after removing a fraction F of numbers is approximately 1 - (1 - (1-F)^(Y-1))^(N(1-F)). This formula works best for larger values of N and when N > 50Y.
  • #1
lzkelley
277
2
Lets say i have some number 'N' of numbers - in a particular order.
I then remove some fraction 'F' of those numbers.

I want to know the probability of there being (some number) 'Y' consecutive initial-numbers remaining.

Any ideas?

Would it just be F^Y ?
 
Physics news on Phys.org
  • #2
If the numbers are removed independently with probability p, then the chance that Y numbers follow some given sequence member (not too close to the end) is (1-p)^Y.

If one element is removed uniformly at random from the sequence, then a second, a third, and so on until FN have been removed, then (for large N) this approximates the above with p = F.

Thus for each remaining member, the chance that it is followed by Y-1 members is approximately (1-F)^(Y-1).

Since we're assuming N is large, then very few members are close to the end, so we'll assume all N(1-F) remaining members are far from the end.

Now the chance that a given member is not followed by Y-1 others is, of course, 1 - (1-F)^(Y-1) in our approximation. Thus the chance that all N(1-F) remaining members are not followed by Y-1 others is about
(1 - (1-F)^(Y-1))^(N(1-F))
and so the chance that at least one not-removed member is followed by Y-1 others
1 - (1 - (1-F)^(Y-1))^(N(1-F))

For example, removing half of a million members, the chance that 20 in a row remain is about 62%.

If N is not large, the formula falls apart. I'm not sure how large you'd need, but maybe N > 50Y would be good enough.
 

1. What is the probability of obtaining consecutive elements in a set of numbers?

The probability of obtaining consecutive elements in a set of numbers depends on the size of the set and the range of numbers. For example, if you have a set of 10 numbers ranging from 1-10, the probability of getting consecutive numbers is 10%. This can be calculated by dividing the number of possible consecutive pairs (9) by the total number of pairs in the set (45).

2. How do you determine the probability of consecutive elements in a larger set?

To determine the probability of consecutive elements in a larger set, you need to calculate the number of possible consecutive pairs and divide it by the total number of pairs in the set. For example, if you have a set of 100 numbers ranging from 1-100, the probability of getting consecutive numbers is 1%. This can be calculated by dividing the number of possible consecutive pairs (99) by the total number of pairs in the set (4950).

3. Can consecutive elements occur more than once in a set?

Yes, consecutive elements can occur more than once in a set. For example, in a set of 10 numbers ranging from 1-10, it is possible to have multiple consecutive pairs such as (3,4) and (7,8).

4. How does the number of elements in a set affect the probability of getting consecutive elements?

The number of elements in a set directly affects the probability of getting consecutive elements. As the number of elements increases, the probability of getting consecutive elements decreases. This is because there are more possible combinations and the chances of getting a consecutive pair decreases.

5. How does the range of numbers in a set affect the probability of getting consecutive elements?

The range of numbers in a set also affects the probability of getting consecutive elements. If the range of numbers is smaller, the probability of getting consecutive elements is higher. This is because there are fewer possible combinations and the chances of getting a consecutive pair increases.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
342
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
13
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
Back
Top