Heart rate variability and stress/anxiety

What is the relationship between heart rate variability and stress/anxiety?