Gamblers usually make the cognitive error that falsely assumes that past outcomes affect future outcomes. In reality, if it is a fair trial, the probability of each trial is
independent of past outcomes. Just because there have been 5 successive heads in a row, does not change the probability of the next trial to be more or less likely heads.