These Jupyter notebooks include the exposition and R code from the R sections of Introduction to Probability, Second Edition, Blitzstein & Hwang.
If Python is preferred to R, see this repository.
The easiest way to view the notebooks is in Google Colab:
You can also clone this repository and view the notebooks locally.
Joseph K. Blitzstein and Jessica Hwang, Harvard University and Stanford University, © 2019 by Taylor and Francis Group, LLC