Historically, the inverted yield curve has been a reliable indicator that a recession will hit in the next 12 to 18 months.