$10000$ binary values get the frequency $1$ to $n$th

25 Views Asked by At

I have an exercise of probability I am trying to solve :

We have a sequence of $10000$ equiprobable binary values and we write $f_n$ the frequency from $1$ up to the $n$th value. What is the sequence $g_n = 2 f_n - n$ and plot the graphic. So my question in order to call the function plot$(x,y)$ we have to know the $f_n$ and $g_n$ as functions. So we need the law of probability. I am blocked with this step. Any idea is welcomed. Thank you very much .