In baseball , an at bat ( AB ) or time at bat is used for certain statistics . These statistics include batting average , on base percentage , and slugging percentage . In baseball , an at bat ( AB ) or time at bat is used to calculate certain statistics , including batting average , on base percentage , and slugging percentage .