Generalized Exponentiated Gradient Algorithms and Their Application to On-Line Portfolio Selection