Spatiotemporal patterns of earthquakes and their implications for earthquake hazards