Binomial distribution with dependent trials?

Click For Summary
The discussion revolves around calculating the mean and variance of error-free sliding windows in a string of n characters, where each character has a probability p of being incorrect. The sliding window of length k moves across the string, and the challenge lies in determining the number of windows that contain no errors. A discrete random variable is suggested to count these error-free windows, but participants note the complexity of this approach. Clarification is requested regarding the specific goal of the calculations, particularly the number of windows, which is stated to be n-k+1. The conversation highlights the difficulty in applying binomial distribution principles to dependent trials in this context.
Reynolds
Messages
1
Reaction score
0
Hi to you all!
I need your help with following problem:

String with n characters is given. For each character in string there is probability p that it is wrong. Now you take a sliding window of length k, k<= n, that slides over that string. For the given parameters p,k and n one must must determine the mean and variance of the number of the moving windows without any error.

For n = 5 and k = 2 we have sliding windows that contain letters of sting on positions 12, 23, 34 and 45.

I was thinking that I may define discrete random variable that counts how many windows are there without any error, but very soon it becomes quite difficult to count. I was also trying to define some sort of generating function, but i did not get far. Thank you in advance!
 
Physics news on Phys.org
Your question is confusing. The number of windows is n-k+1. What are you trying to do?
 
If there are an infinite number of natural numbers, and an infinite number of fractions in between any two natural numbers, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and... then that must mean that there are not only infinite infinities, but an infinite number of those infinities. and an infinite number of those...

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
6K
Replies
3
Views
2K
Replies
10
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K