The average value of x is actually measured by experiments, which reflects the real situation of this experiment and may change according to different experimental results.
For example, in the coin toss experiment, if the front is 1 and the back is 0, then the expected value of this experiment is 0.5.
But if you flip a coin ten times, it may be six heads and four tails, with an average of 0.6.