The story
Originally a dialectal variant of halsen (“to predict”), equivalent to halsen + -y (infinitive suffix). While nominal use is mentioned once in 19th century English dialect literature, the modern sense of "prediction, conjecture" probably originates from misinterpretation of the verb in dictionaries.
Etymology from Wiktionary, CC BY-SA 4.0.