# Resources

This page hosts a range of resources to enrich the experience of using the book.

## General resources

This GitHub repository contains Matlab code to perform selected calculations from the book. Readers interested in seeing numerical implementations of the equations, or extending these calculations for other uses, may find this repository useful.

### Introductory videos

We have recorded a series of short videos introducing basic concepts from the first half of the book at this link.

### Errata

Identified errata in the 1st Edition.

### Community collaboration in Slack

We have established the slack channel https://pshabook.slack.com in order to provide a community forum for knowledge sharing related to specifics of the book and more generally the topics of seismic hazard and risk analysis. If you would like to join please select this **link**.

## Chapter-specific resources

### Ground-Motion Model functions (Chapter 4)

This GitHub repository contains Matlab functions for a number of popular Ground Motion Models (as discussed in Chapter 4 of the book). The functions have been formatted to use consistent inputs and outputs, so that models can easily be exchanged, or used together in a logic tree. Further documentation of these functions can be found in the following report:

Mongold and Baker (2021). "A software repository of Ground Motion Models.” Blume Earthquake Engineering Center Technical Report 207. https://purl.stanford.edu/qy113my5899

### Introductory probability videos (Appendix A)

The following videos cover content provided in Appendix A, for readers interested in additional background material on this topic.

Set theory: https://youtu.be/BA0GXX_Un9g

Total probability theorem: https://youtu.be/JChmNGQ4PkQ

Random variables: https://youtu.be/3ydswAYdep8

Joint distributions: https://youtu.be/vGHTztxS2F0

Moments and expectations: https://youtu.be/XrW5iIj9mVo

The normal distribution: https://youtu.be/jj_WoJdijQY

The bivariate normal distribution: https://youtu.be/xcN_-OQrOog

The multivariate normal distribution: https://youtu.be/h4jvu8PW8YE

### Statistical modeling resources (Appendix B)

The following resources support statistical modeling calculations described in Appendix B, for readers interested in additional background material on this topic.

Data and code reproducing the IM correlation calculations of Section B.7: https://github.com/bakerjw/NGAW2_correlations

Video describing the fragility function fitting concepts of Section B.8: https://youtu.be/Q8e0_d81a40