Heart rate variability (HRV) is the measure of the time gap between two heart beats while the body is at…