An inverted yield curve has predicted 8 out of the last of the last 6 recessions. In other words it is necessary, but not sufficient prior to a recession. The yield curve has inverted several times in the last two years as the Fed has increased short-term rates. Eventually it remain inverted for a sustained period (like right now) and it will be right.