What is the primary function of linear regression in the context of data analysis?

In the context of linear regression, what does the term 'residual' represent?

Which software program is commonly used to perform linear regression analysis, as discussed in the text?

What is the significance of the slope and intercept values obtained from a linear regression analysis?