I've been wracking my brains for a while to try to come up with a non-brute-force solution for this problem.
If you have have a random binary sequence of length $N$, what is the probability that some sub-sequence $X$ is present? My first thought was that it only depends on $N$ and the length of $X$, but from experimentation it's clear that it depends on the contents of $X$.
It seems similar to the problem where you want to know the probability of at least $A$ heads and $B$ tails when flipping a coin $C$ times, but I'm not sure how to then impose the restriction of a specific sequence (Not that I know how to solve that problem either).
I've computed a few results using brute force:
$N=5$ , $X = "111"$, $P(N,X) = 0.25$
$N=5$, $X = "101"$, $P(N,X) = 0.34375$
$N=5$, $X = "100"$, $P(N,X) = 0.375$
Here is a way to get at least a recurrence relation:
Let us look at the string "100". We want to find out how many strings of length $n$ do not contain it.
Clearly such a string can only end in ...1, ...10, or ...000.
Now define:
$a_n$: Number of bitstrings of length $n$ that do not contain "100" and end in ...1
$b_n$: Number of bitstrings of length $n$ that do not contain "100" and end in ...10
$c_n$: Number of bitstrings of length $n$ that do not contain "100" and end in ...000
Then we have the recurrence relations $$\begin{align*} a_{n+1} &= a_n + b_n + c_n \\ b_{n+1} &= a_n \\ c_{n+1} &= c_n \end{align*}$$
(because, for example, a string of length $n+1$ that counts towards $a_{n+1}$ can be created by appending "1" to any string belonging to $a_n$, $b_n$ or $c_n$; a string that counts towards $b_n$ can only be created by appending "0" to a string belonging to $a_n$)
Starting with $a_3 = 4$, $b_3 = 2$ and $c_3 = 1$ we can iteratively calculate the values $a_n$, $b_n$ and $c_n$.
The number of binary sequences of length $n$ that do contain "100" is then given by $2^n - (a_n+b_n+c_n)$.