Analysis of baseball data