Earned Run Average (ERA) measures how many earned runs a pitcher allows per nine innings pitched, calculated as (earned runs
Batting average measures how often a baseball or softball hitter gets a hit per official at-bat. The formula is hits