TIME MACHINE ANALYSIS (formula by Pete Palmer, Total Sports)

STEP (1) READ IN PLAYER DATA
STEP (2) READ IN LEAGUE TOTAL DATA BY LEAGUE AND YEAR (WITHOUT PITCHERS)
STEP (3) NORMALIZE PLAYER TO LEAGUE AVERAGE FOR YEARS PLAYED AND NORMALIZE PLAYER TO ANY OTHER DESIRED YEAR AND LEAGUE

D (y,i) IS PLAYER'S ORIGINAL DATA
N (y,i) IS NORMALIZED DATA TO NEW YEAR
F (y,i) IS LEAGUE AVERAGE DATA IN ORIGINAL DATA (FROM)
T (y,i) IS LEAGUE AVERAGE DATA IN NEW YEAR (TO)

y IS 1 FOR PLAYER'S FIRST YEAR, OR FIRST YEAR OF PROJECTION TO Y2 FOR PLAYER'S LAST YEAR
i IS 1-G,2-AB,3-R,4-H,5-TB,6-2B,7-3B,8-HR,9-RBI,10-SB,11-BB

GAMES AND AT-BATS FROM THE ORIGINAL DATA ARE MULTIPLIED BY GF
WHICH IS THE RATIO OF SCHEDULED GAMES (TO OVER FROM)
TO GET NORMALIZED DATA (LINE 512)

500 FOR Y%=1 TO Y2% :ABF=F(Y%,2) :ABT=T(Y%,2)
510 GF%=F(Y%,1) :GT%=T(Y%,1) :GF=GT%/GF%
512 N(Y%,1)=GF*D(Y%,1) :N(Y%,2)=GF*D(Y%,2)

ALL OTHER ITEMS ARE MULTIPLIED BY GF AND ABF/ABT, WHICH IS THE LEAGUE TOTAL OF AT-BATS (FROM AND TO) AND THE RATIO OF LEAGUE TOTALS (TO AND FROM) (LINE 520)

520 N(Y%,I%)=GF*D(Y%,I%)*ABF*T(Y%,I%)/F(Y%,I%)/ABT

EXTRA BASE HITS ARE CALCULATED AS ABOVE AND THEN FURTHER ADJUSTED BY TBR, WHICH IS THE RATIO OF EXTRA BASES (TO AND FROM). EXTRA BASES ARE TOTAL BASES MINUS HITS. THUS THE NUMBER OF EXTRA BASE HITS WILL BE CONSISTENT WITH THE NUMBER OF TOTAL BASES. (LINE 525)

523 TB=N(Y%,5)-N(Y%,4) :XB=N(Y%,6)+2*N(Y%,7)+3*N(Y%,8) 'EXTRA BASES
524 IF XB=0 GOTO 529
525 TBR=TB/XB :FOR X%=6 TO 8 :N(Y%,X%)=N(Y%,X%)*TBR :NEXT X%
529 NEXT Y%

League averages (not including pitchers)

1871-1899 1900-1928 1929-1946 1947-1969 1970-1995

Players Stats

Willie Mays / Hank Aaron / Mark McGwire
Exploratorium Baseball