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

In summary, the conversation discusses the existence of a sequence with binary elements that can simulate a coin with a given probability of "heads" showing up. The sequence is defined as the sum of the first $n$ elements, and the goal is to have the average frequency of "H" occurring be equal to the given probability. A specific sequence is proposed and it is suggested that this sequence can properly simulate the coin.
  • #1
caffeinemachine
Gold Member
MHB
816
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
  • #2
Consider the sequence:
$$
x_1=1,\\
x_{n+1}=\begin{cases} 1, \mbox{ if } f(n)/n<p \\
0, \mbox{ otherwise}
\end{cases}
$$,
 

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

What is an infinite binary sequence?

An infinite binary sequence is a sequence of 0's and 1's that goes on infinitely. It can be represented as a string of numbers, such as 011010001001...

What does the average frequency of 1's mean in this context?

The average frequency of 1's refers to the proportion of 1's in the infinite binary sequence. For example, if the sequence is 011010001001 and there are 4 1's and 8 total digits, the average frequency of 1's would be 4/8 = 0.5.

How is the average frequency of 1's calculated in an infinite binary sequence?

The average frequency of 1's is calculated by dividing the total number of 1's in the sequence by the total number of digits in the sequence.

What does it mean to have an average frequency of 1's = p?

Having an average frequency of 1's = p means that the proportion of 1's in the infinite binary sequence is equal to the value of p. For example, if p = 0.5, it means that half of the digits in the sequence are 1's.

How is an infinite binary sequence with average frequency of 1's = p useful in science?

Infinite binary sequences with average frequency of 1's = p can be used in various scientific applications such as cryptography, data compression, and random number generation. They can also be used to study the properties of infinite sequences and their relationship to other mathematical concepts.

Similar threads

Replies
9
Views
1K
Replies
44
Views
5K
Replies
2
Views
1K
Replies
3
Views
2K
Replies
10
Views
2K
Replies
2
Views
899
Back
Top