For more details, check out http://laurelhurstmanagement.wordpress.com/2013/05/09/using-random-patterns-to-predict-the-sp-500/