Attached Jupyter Notebook is the Bayesian analysis of batting average I implemented as a part of my blog post. Accompanying blog posts can be found from my Medium account: https://medium.com/@rickykim78
Below implementations can be found in the attached notebook.
prerequisite: Pymc3
pip install git+https://github.com/pymc-devs/pymc3