This document shows how to make 1) recurrence models and 2) PSHA.
The examples provided here are part of the homeworks I have done in a Geotechnical earthquake engineering class during my graduate studies. Python codes are provided as guide to perform the said tasks.
More discussion are given in:
Kramer, S. L. (1996). Geotechnical earthquake engineering. Pearson Education India.