Rates of geophysical precursors, such as seismicity and ground deformation, can increase prior to volcanic eruptions and landslides. These signals are often interpreted as reflecting the material failure of parts of the volcanic or landslide system under increased stress. I develop new statistical methods to analyse these datasets, trying to understand the processes that generate them, and how they can be used to provide forecasts of future activity.