MHB Finding an Infinite Binary Sequence with Average Frequency of 1's = p

caffeinemachine
Gold Member
MHB
Messages
799
Reaction score
15
The following question came up when me and a friend of mine were discussing some basic things about probability:Let $p$ be a real number in $[0,1]$.

Does there exist a sequence $(x_1, x_2, x_3, \ldots)$ with each $x_i$ being either $0$ or $1$, such that

$$
\lim_{n\to \infty} \frac{f(n)}{n} =p
$$

where $f(n)= x_1+x_2+\cdots+x_n$, that is, $f(n)$ is the number of times $1$ has appeared in the first $n$ slots. Motivation: Consider a coin which may or may not be fair, and say the probability of "heads" showing up is $p$.
Suppose we want to have a machine which simulates this coin.
That is, we want to have a machine which shows either "H" or "T" every second ('second' here is a unit of time) on its screen.
If the machine properly simulates the coin, then we must have the average frequency of "H" occurring is $p$.
 
Physics news on Phys.org
Consider the sequence:
$$
x_1=1,\\
x_{n+1}=\begin{cases} 1, \mbox{ if } f(n)/n<p \\
0, \mbox{ otherwise}
\end{cases}
$$,
 
I posted this question on math-stackexchange but apparently I asked something stupid and I was downvoted. I still don't have an answer to my question so I hope someone in here can help me or at least explain me why I am asking something stupid. I started studying Complex Analysis and came upon the following theorem which is a direct consequence of the Cauchy-Goursat theorem: Let ##f:D\to\mathbb{C}## be an anlytic function over a simply connected region ##D##. If ##a## and ##z## are part of...
Back
Top