MBA worksheet
function calc() { var num = Number($('#hits').val()) + Number($('#roe').val()); var ab = Number($('#pa').val()) - Number($('#walk').val()) - Number($('#sac').val()) - Number($('#cnr').val()); if (ab == 0) { $('#mba').val(0); } else { $('#mba').val(Math.round(num / ab * 1000) / 1000); } }
$(function(){ var pa = $('#pa'); var hits = $('#hits'); var roe = $('#roe'); var cnr = $('#cnr'); var walk = $('#walk'); var sac = $('#sac'); var inputs = [pa, hits, roe, cnr, walk, sac];
// set input handlers for (let input of inputs) { $(input).on('change', () => { calc(); }); } // output $('#submit').on('click', () => { calc(); }); $(document).on('keypress', function (event) { if (event.which === 13) { calc(); event.preventDefault(); } }); });
When calculating a batting average (including MBA), there is a numerator "hits + ROE" and a denominator "at bats"
| MBA | Hits | Err/ ROE |
FC | Sac Fly | Walk |
|---|---|---|---|---|---|
| Numerator | Y | Y | N | N | N |
| Denominator | Y | Y | Y | N | N |
Hits (H) - walks, sac flies, fielder's choices do not count.
Reached on error (ROE) - a defensive error DOES count (only if it allowed the batter and any/all runners to reach base safely). This is the "M" part of MBA
At bats (AB) - walks, sac flies do not count
Fielder's choice (FC) - when a hitter gets their friend out
Practical advice - learn the above rules and situations and only slash the 1B/2B/3B/HR on the sheet IF the above were met. Make sure to slash/write SAC on sac flies as well.
How many hitting squares did the player have filled on the scoresheet?
PA =
Player reached 1st safely without getting any friends out?
(walks, singles, doubles, triples, home runs. no fielder's choices.)
H =
Player reached 1st safely (or all friends reached safely) due to a fielding error?
ROE =
Player not entitled to run to 1st? (weird stuff - outs between hits, bunt, step on plate, etc)
Don't include foul outs here.
CNR =
How many walks?
BB =
How many sac flies? (Batter had a fly ball out, but a run scored)
SAC =
MBA =