Linear regression is one of the most widely used analysis methods from statistics and machine learning. It examines the linear relationship between a (dependent) target variable (Y) and one or more independent variables (X). More precisely, one tries to estimate the influence of X on Y by means of linear regression. For each regressor, a coefficient βi is estimated, usually using ordinary least squares (OLS). The coefficients describe the influence strength (magnitude of the coefficient) and influence direction (sign of the coefficient).
Applied to the sales context, linear regression can be used to objectively estimate the potential value of leads (measured in expected sales in EUR), for example. The value determined in this way can in turn be used for lead prioritization by sales employees and thus systematically support lead processing that maximizes sales. The basis for this are sales volumes (in EUR) from previous periods and the corresponding metrics (X), such as the size of the customer company, address of the company, number of employees, and sales revenue.
from sklearn.linear_model import LinearRegression
reg = LinearRegression().fit(X_train, y_train)
reg.coef
The code snippet is written in Python and based on the module scikit-learn.
Gleichung:
Potential value of the lead (in EUR) = β0 + β1*Company size + β2*Company sales – β3*Distance to the company
The larger the company and the higher the turnover of the company, the higher the potential value of the lead, since larger companies usually have a higher demand than smaller companies. In the manufacturing industry, the distance to the company can have a negative influence on the potential value of the lead, since transport costs increase with increasing distance and the expected demand can in turn be negatively influenced.
With the help of linear regression, the strength of influence of the respective regressors (X) on the potential value of the lead (Y) can now be determined and calculated in the form of regression coefficients. After calculating the corresponding regression coefficients based on historical data, this information can now be used for forecasting. For example, if a potential customer fills out a form on your website and enters the relevant information, the expected value of the lead can be calculated and made available directly to the sales employee in the background. In many cases, the company name is sufficient and the remaining information can be supplied from external sources.
Note that linear regression is suitable for estimating metrically scaled target variables. For binary target variables such as purchase vs. non-purchase or click vs. non-click, for example, logistic regression or a decision tree is used.
The regression plot above could depict the linear relationship between two variables, for example potential value of the lead (Y-axis) and Company Size (X-Axis) with the colours describing a categorical variable such as country.