During heatwaves, mortality rates can spike due to direct effects like heatstroke and indirect effects like the worsening of chronic illnesses. Epidemiologists use statistical methods to compare mortality rates during heatwaves with baseline rates to estimate the excess deaths attributed to extreme heat. Time-series analysis is often employed to identify temporal patterns and associations.