Regression analysis is used to quantify the relationship between a single independent variable and a single dependent variable based on past observations.