MIT-derived algorithm helps forecast the frequency of extrem