X can be any random variable that satisfies the requirements of the null-hypothesis.<p>A more appropriate variable for your experiment would probably be the ratio of heads to tails (may need to add a bias to avoid division by 0).<p>&quot;you have a fair coin&quot; is not a hypothesis, at least not a well-defined one.