Probability of 'i' occurrences K consecutive '1's in an n-bit stream

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












I am interested in finding the probability of $i$ occurrences of $k$ consecutive $1$s in an $n$-bit stream.



For example, if the bit sequence is
$$10bf 1110001010bf 111010100110bf 111001010bf 111010,$$
then $i = 4$, $k = 3$ and $n = 40$.







share|cite|improve this question





















  • @Clayton forming part of something :)
    – Antoine
    Jul 26 at 21:29










  • qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
    – Antoine
    Jul 26 at 21:32







  • 1




    qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
    – Antoine
    Jul 26 at 21:34










  • Sorry, its consequitive. Not constitutive
    – qzyDO
    Jul 27 at 9:45






  • 1




    Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
    – Antoine
    Jul 27 at 21:27















up vote
-1
down vote

favorite












I am interested in finding the probability of $i$ occurrences of $k$ consecutive $1$s in an $n$-bit stream.



For example, if the bit sequence is
$$10bf 1110001010bf 111010100110bf 111001010bf 111010,$$
then $i = 4$, $k = 3$ and $n = 40$.







share|cite|improve this question





















  • @Clayton forming part of something :)
    – Antoine
    Jul 26 at 21:29










  • qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
    – Antoine
    Jul 26 at 21:32







  • 1




    qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
    – Antoine
    Jul 26 at 21:34










  • Sorry, its consequitive. Not constitutive
    – qzyDO
    Jul 27 at 9:45






  • 1




    Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
    – Antoine
    Jul 27 at 21:27













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am interested in finding the probability of $i$ occurrences of $k$ consecutive $1$s in an $n$-bit stream.



For example, if the bit sequence is
$$10bf 1110001010bf 111010100110bf 111001010bf 111010,$$
then $i = 4$, $k = 3$ and $n = 40$.







share|cite|improve this question













I am interested in finding the probability of $i$ occurrences of $k$ consecutive $1$s in an $n$-bit stream.



For example, if the bit sequence is
$$10bf 1110001010bf 111010100110bf 111001010bf 111010,$$
then $i = 4$, $k = 3$ and $n = 40$.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 27 at 21:32









Antoine

2,485925




2,485925









asked Jul 26 at 21:21









qzyDO

11




11











  • @Clayton forming part of something :)
    – Antoine
    Jul 26 at 21:29










  • qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
    – Antoine
    Jul 26 at 21:32







  • 1




    qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
    – Antoine
    Jul 26 at 21:34










  • Sorry, its consequitive. Not constitutive
    – qzyDO
    Jul 27 at 9:45






  • 1




    Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
    – Antoine
    Jul 27 at 21:27

















  • @Clayton forming part of something :)
    – Antoine
    Jul 26 at 21:29










  • qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
    – Antoine
    Jul 26 at 21:32







  • 1




    qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
    – Antoine
    Jul 26 at 21:34










  • Sorry, its consequitive. Not constitutive
    – qzyDO
    Jul 27 at 9:45






  • 1




    Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
    – Antoine
    Jul 27 at 21:27
















@Clayton forming part of something :)
– Antoine
Jul 26 at 21:29




@Clayton forming part of something :)
– Antoine
Jul 26 at 21:29












qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
– Antoine
Jul 26 at 21:32





qzyDO: Have you tried to count, for example, the number of $n$-bit streams with $i = 0$ occurrences of $k = 2$ consecutive $1$s?
– Antoine
Jul 26 at 21:32





1




1




qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
– Antoine
Jul 26 at 21:34




qzyDO: For clarification, how many occurrences of two consecutive ones are in the stream $111$?
– Antoine
Jul 26 at 21:34












Sorry, its consequitive. Not constitutive
– qzyDO
Jul 27 at 9:45




Sorry, its consequitive. Not constitutive
– qzyDO
Jul 27 at 9:45




1




1




Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
– Antoine
Jul 27 at 21:27





Of course there is need to do so. You are interested in probability $P(i, k, n)$ of finding $i$ occ. of $k$ cons. $1$s in $n$-bit streams. This probability equals (under the assumption that all streams are equiprobable) $textnumber of streams with $i$ occ. of $k$ cons. $1$s in $n$-bit streams / textnumber of all $n$-bit streams$. The number of all $n$-bit streams is $2^n$. The other number is trickier. But we cannot help you unless you define your problem well and tell us how exactly consecutive groups are counted.
– Antoine
Jul 27 at 21:27
















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2863830%2fprobability-of-i-occurrences-k-consecutive-1s-in-an-n-bit-stream%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2863830%2fprobability-of-i-occurrences-k-consecutive-1s-in-an-n-bit-stream%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?