Files, Data & Storage

Regression Analysis

Also known as: linear regression, logistic regression, multiple regression, regression model, regression coefficient, R-squared

Regression analysis is a collection of statistical methods for modeling the relationship between an outcome variable (dependent variable) and one or more predictor variables (independent variables).

Linear regression estimates the linear relationship between a continuous outcome and predictors; logistic regression models binary outcomes (yes/no, convert/not-convert). Regression answers questions like 'how much does revenue change for each dollar of advertising spend?' or 'which factors are most strongly associated with customer churn?' Beyond prediction, regression is widely used for understanding the relative importance and direction of relationships between variables.

Regression Analysis, explained at three levels

At home

Regression analysis draws a mathematical line (or curve) through data points to describe the relationship between two (or more) variables. If you plotted advertising spending on the x-axis and sales on the y-axis for 100 months, regression draws the line that best fits through those points. This line lets you predict: 'if we spend $50,000 on advertising this month, we expect about this much in sales'. The slope of the line tells you the relationship: how much does the y-variable change for each unit change in x. Positive slope means both increase together; negative slope means one goes up as the other goes down.

At work

In business, regression analysis is used to understand what drives outcomes: which factors most predict customer churn? How does pricing affect sales volume? How much does a specific marketing channel contribute to revenue, holding other channels constant? Regression answers these questions by isolating the relationship between each predictor and the outcome while statistically controlling for the effect of other variables. This 'controlling for other variables' is what distinguishes regression from simple correlation -- regression estimates the independent contribution of each factor.

Real-world examples

At home

Jerome was curious why some people paid more for the same used car. He found data on 500 used car sales and ran a regression with price as the outcome and mileage, age, brand, and color as predictors. The regression showed: each additional 10,000 miles reduced price by approximately $800 (holding other factors constant); each additional year of age reduced price by about $600; brand had large effects; and color had a small but significant effect (silver and black commanded modest premiums). He used these coefficients to estimate whether a specific car he was considering was fairly priced.

At work

Sophie built a customer lifetime value model for a subscription software company. She ran a logistic regression with 12-month churn as the outcome, using predictors: days since last login, number of features used, support ticket count in last 90 days, plan tier, and company size. The model identified the three strongest churn predictors (days since last login, features used, and support ticket count) with specific coefficient estimates. The customer success team used the model's daily probability scores to prioritize outreach to customers with high churn probability, intervening before cancellation.

Common confusions

  • Many people assume regression establishes causation between the predictor and outcome variables — Regression estimates the statistical association between variables while holding other measured variables constant -- but it does not establish causation. Unmeasured confounders can still drive the observed relationship. A regression showing that countries with higher chocolate consumption have more Nobel Prize winners does not mean chocolate causes intellectual achievement -- wealth is a confounder affecting both. Causal interpretation of regression coefficients requires careful argument about confounders, ideally using experimental or natural experimental variation in the predictor variable rather than observational data alone.
  • Some assume that a high R-squared value means the model is accurate and the predictors are important — R-squared measures the proportion of variance in the outcome explained by the predictors -- but high R-squared doesn't mean the model predicts well out of sample, and low R-squared doesn't mean the predictors are unimportant. In social science data, R-squared values of 0.1-0.3 are common and can represent meaningful findings. In financial markets, small but statistically significant predictors with low R-squared can have large economic value. A model with high R-squared that is overfitted to training data may perform poorly on new data. Cross-validation performance is a better measure of predictive usefulness than R-squared.

For analysts

Regression analysis is one of the most widely applicable analytical tools for clients across industries: marketing mix modeling (how much does each channel contribute to sales?), pricing analysis (how does price affect demand?), employee analytics (what factors predict tenure?), and customer analytics (what predicts churn or lifetime value?). The practical recommendation is to establish the analysis question clearly before choosing regression type, identify which confounders need to be controlled for, and be honest about whether the analysis supports causal claims or correlation. For most business regression applications, logistic regression (for binary outcomes) and linear regression (for continuous outcomes) with good interpretable coefficients provide more actionable insight than black-box ML models.

History & origin

Francis Galton developed the concept of regression in 1885, studying the relationship between parents' and children's heights. He observed that children of unusually tall parents tended to be closer to average height -- he called this 'regression to the mean'. Karl Pearson formalized the mathematical framework. Linear regression became the dominant analytical method for quantitative social science through the 20th century. The computational demands of fitting regression models limited their application until computers made large-scale calculation feasible. Logistic regression for binary outcomes was developed by David Cox in 1958. The explosion of data science in the 2010s brought machine learning methods (gradient boosting, random forests, neural networks) that outperform linear regression for prediction tasks but sacrifice the interpretability that makes regression valuable for understanding causal relationships.