BAA is a little relative though, as it considers only official at bats. The formula is:
So, someone like Lincecum who only walks about half as many batters as Kershaw and faces more batters (due to pitching more innings) is going to have a slightly higher BAA since hitters will have more official AB's against him.