How Does Online Learning Work?