This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It was the San Francisco Giants’ most important game of the season, in the glorious daylight of Chicago’s Wrigley Field, and I wasn’t able to watch it live. No problem — that’s the beauty of a DVR — except I accidentally stumbled over that Wednesday score on an internet cruise, checked a few details from the 8-2 loss, and came to an inescapable conclusion. | |
Why would I want to watch that? Why would anyone? | |
I did so, out of professional obligation, but with heavy use of the fast-forward button. In a game the Giants needed to avoid a three-game sweep, the beleaguered Alex Wood was starting. The Giants were down 7-0 after six innings. They went 1-for-8 with runners in scoring position. With Patrick Bailey out of the lineup, there wasn’t one player I was interested in monitoring. | |
EXCLUSIVE OFFER | Only 25¢ for Unlimited Digital Access. | |
EXCLUSIVE OFFER | Only 25¢! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7 | |
ENV PYTHONUNBUFFERED 1 | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV TERM xterm | |
ENV PYTHONPATH /app | |
ARG ENVTYPE=base | |
# update, upgrade, and install packages | |
RUN apt-get update \ | |
&& apt-get upgrade -y \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Check Fed rate hike probability | |
2. Look at economic calendar for month | |
3. Look @ S&P500 index history for D/12M | |
4. Look @ USD/EUR-JPY-CNY for D/12M | |
5. Look @ Case-Schiller 20C Housing M/M | |
6. Look @ Gold$/Oz and CL$/bbl D/12M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cap@tron:~/src/misc/fbb$ python fbb.py | |
loaded 4063 hitters 3946 pitchers and 1434 ids | |
loaded 9 years of Harry's Bar and Grill data from 2006 to 2014 | |
league average stats are {'RBI': 764.0, 'HR': 201.0, 'SV': 98.0, 'R': 785.0, 'SO': 1095.0, 'ERA': 3.64, 'W': 78.0, 'SB': 113.0, 'AVG': 0.277, 'WHIP': 1.24} | |
league average winning stats are {'W': 91.0, 'HR': 237.0, 'SV': 149.0, 'R': 871.0, 'SO': 1229.0, 'ERA': 3.11, 'RBI': 850.0, 'SB': 150.0, 'AVG': 0.293, 'WHIP': 1.16} | |
league SGP coefficients are {'RBI': 17.6695, 'HR': 7.533, 'SV': 12.811, 'R': 17.3979, 'SO': 29.4209, 'ERA': -0.1015, 'W': 2.5357, 'SB': 7.7151, 'AVG': 0.0028, 'WHIP': -0.0177} | |
9 teams 144 players 514 avg ABs and 142 avg hits/player | |
top hitters are [('Mike Trout', 18.2), ('Giancarlo Stanton', 16.4), ('Jose Abreu', 16.34), ('Andrew McCutchen', 15.84), ('Miguel Cabrera', 15.68), ('Billy Hamilton', 15.34), ('Paul Goldschmidt', 14.97), ('Jose Altuve', 14.96), ('Anthony Rizzo', 14.86), ('Yasiel Puig', 14.08)] |