🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Statistics for Data Science & Analytics › Lesson 9
TEC-DATA85-02 · Lesson 9 · 10 clock hours · practice

Multiple Regression, Statistical Pitfalls, and Communication

Objective. Students build and interpret a multiple linear regression model, identify common statistical errors in published analyses, and present findings in plain language to a non-technical audience.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Multiple Regression, Statistical Pitfalls, and Communication

Why Add More Predictors?

Simple linear regression uses one predictor to explain variation in an outcome. In real datasets, outcomes are shaped by many factors at once. Multiple linear regression extends the simple model by including two or more predictor variables simultaneously. For example, a house price might depend on square footage, number of bedrooms, and distance to the city center — all at the same time. The general form is:

ŷ = b₀ + b₁x₁ + b₂x₂ + … + bₖxₖ

Each coefficient (b) tells you the expected change in the outcome for a one-unit increase in that predictor, holding all other predictors constant. That phrase — holding all other predictors constant — is the key difference from simple regression and is essential when you explain results to anyone.

Adjusted R-Squared

When you add predictors, ordinary R-squared always increases or stays the same, even if the new variable adds no real information. Adjusted R-squared corrects for this by penalizing the model for each extra predictor. Use adjusted R-squared to compare models with different numbers of predictors. A higher adjusted R-squared means the added predictor genuinely improves the model's explanatory power.

Multicollinearity and VIF

Multicollinearity occurs when two or more predictors are strongly correlated with each other. This makes individual coefficient estimates unreliable — the model cannot cleanly separate the effect of one correlated variable from another. You diagnose multicollinearity with the Variance Inflation Factor (VIF).

In Python, `statsmodels.stats.outliers_influence.variance_inflation_factor` computes VIF for each predictor. Always run this check before finalizing a multiple regression model.

Common Statistical Pitfalls

Data professionals must recognize errors in their own work and in published analyses. Four pitfalls appear constantly in practice:

Simpson's Paradox — A trend that appears in several subgroups of data reverses or disappears when the groups are combined. This happens because group sizes or baseline rates differ. The fix is to analyze subgroups separately and report both the aggregate and the disaggregated results.

P-hacking — Repeatedly testing many hypotheses or sub-slices of data until a p-value below 0.05 appears by chance. Because every statistical test carries a false-positive risk, running many tests inflates the overall error rate. The corrective approach is to pre-register your analysis plan, apply corrections for multiple comparisons (such as the Bonferroni correction), and distinguish exploratory from confirmatory analyses.

Survivorship Bias — Drawing conclusions only from the cases that "survived" a selection process and ignoring those that did not. A classic example: studying only successful companies to learn what makes businesses succeed, while ignoring the many failed companies with the same traits. The fix is to identify the full original population and account for those who dropped out or failed.

Confounding — An unmeasured third variable is associated with both the predictor and the outcome, creating a false impression of a direct relationship. For instance, ice cream sales and drowning rates both rise in summer — but ice cream does not cause drowning; warm weather is the confounder. Solutions include collecting data on likely confounders and including them as covariates in the regression model.

Presenting Findings to a Non-Technical Audience

Accurate analysis is only useful if decision-makers can act on it. When presenting to managers or clients:

A good written model summary paragraph covers: what the model predicts, which predictors were included, the adjusted R-squared, whether multicollinearity was checked, and the one or two findings most relevant to the audience's decision.

Data Accuracy and Professional Responsibility

Statistical errors have real consequences — flawed pricing models, biased hiring tools, or misleading health analyses can harm people and organizations. Before sharing any analysis, verify your data sources, document your cleaning steps, and have a peer review your code and conclusions. This is the professional standard in data science, and it is tested across all four credentials you are preparing for.

Key terms8

Multiple linear regressionA statistical model that uses two or more predictor variables to explain or predict a continuous outcome variable.
Adjusted R-squaredA version of R-squared that penalizes the addition of predictors that do not genuinely improve the model, allowing fair comparison between models with different numbers of variables.
MulticollinearityA condition in which two or more predictor variables in a regression model are highly correlated with each other, making individual coefficient estimates unreliable.
Variance Inflation Factor (VIF)A numeric diagnostic that quantifies how much the variance of a regression coefficient is inflated due to multicollinearity; values above 5–10 signal a problem.
Simpson's ParadoxA phenomenon in which a trend present in several subgroups of data reverses or disappears when those subgroups are combined into one aggregate analysis.
P-hackingThe practice of repeatedly testing data subsets or hypotheses until a statistically significant result appears by chance, inflating the false-positive error rate.
Survivorship biasAn error that occurs when analysis focuses only on cases that passed a selection filter, ignoring those that did not, leading to misleading conclusions.
Confounding variableAn unmeasured third variable that is associated with both the predictor and the outcome, creating the false appearance of a direct relationship between them.

Worked examples4

1. A student fits a multiple regression model predicting house price (in $1,000s) using square footage (x₁) and number of bathrooms (x₂). The output shows: intercept = 50, b₁ = 0.12, b₂ = 15. Interpret the coefficient for number of bathrooms.
  1. Recall that each coefficient represents the expected change in the outcome for a one-unit increase in that predictor, holding all other predictors constant.
  2. The coefficient for number of bathrooms (b₂) is 15.
  3. Holding square footage constant, each additional bathroom is associated with a $15,000 increase in predicted house price.
  4. Write a plain-language sentence: 'After accounting for square footage, each additional bathroom is associated with a price increase of about $15,000.'
Answer: Each additional bathroom is associated with a $15,000 higher predicted price, holding square footage constant.
2. Model A (one predictor: square footage) has R-squared = 0.68 and adjusted R-squared = 0.67. Model B (adds bathrooms as a second predictor) has R-squared = 0.72 and adjusted R-squared = 0.71. Which model is better, and why?
  1. R-squared always increases when a predictor is added, so comparing raw R-squared values alone is misleading.
  2. Compare the adjusted R-squared values: Model A = 0.67, Model B = 0.71.
  3. Model B's adjusted R-squared is higher (0.71 > 0.67), meaning the second predictor (bathrooms) genuinely improves model fit after penalizing for the extra variable.
  4. Conclude that Model B is the better model.
Answer: Model B is better because its adjusted R-squared (0.71) is higher than Model A's (0.67), indicating the additional predictor adds real explanatory value.
3. After fitting a model with three predictors, the VIF values are: square footage = 1.4, number of bathrooms = 7.8, number of rooms = 8.1. What does this indicate, and what action should the analyst take?
  1. VIF of 1.4 for square footage is well below 5, indicating no multicollinearity concern for that predictor.
  2. VIF values of 7.8 and 8.1 for bathrooms and rooms are both above 5 (and approach 10), indicating high multicollinearity between those two predictors.
  3. High VIF means the model cannot reliably separate the individual effects of bathrooms and rooms — they are likely strongly correlated with each other.
  4. Recommended actions: check the correlation between bathrooms and rooms; consider removing one of them, combining them into a single feature (e.g., total rooms), or using a dimensionality reduction technique.
Answer: Bathrooms and rooms show high multicollinearity (VIF > 5). The analyst should remove one predictor or combine them, because individual coefficient estimates for those two variables are unreliable.
4. A data analyst reports: 'Students who attended tutoring sessions scored 12 points higher on average, so tutoring causes better scores.' A colleague says this is confounded. Explain why, and suggest a corrected approach.
  1. Identify the claimed relationship: tutoring (predictor) → test score (outcome).
  2. Ask whether a third variable could explain both: students who seek tutoring may already be more motivated or have more family support — motivation or prior academic performance is the likely confounder.
  3. Because motivated students both seek tutoring and score higher, the observed 12-point difference may reflect motivation, not tutoring effectiveness.
  4. Corrected approach: collect data on prior GPA or motivation level and include it as a covariate in a multiple regression model, or use a study design that randomly assigns students to tutoring (randomized controlled trial) to eliminate confounding.
Answer: The analysis is confounded by student motivation or prior achievement. Including those variables as covariates in a regression model, or randomly assigning tutoring, would allow a fairer estimate of tutoring's effect.
In class: Multiple regression exercise: students add two additional predictors to their regression model from Lesson 8, check for multicollinearity using VIF, compare adjusted R-squared values, and write a model summary paragraph suitable for a manager. · Statistical pitfalls case study: instructor presents four short case studies illustrating Simpson's paradox, p-hacking, survivorship bias, and confounding; students in groups diagnose the error and propose a corrected analysis approach. · Presentation practice: each student prepares a three-minute verbal summary (no jargon) of their regression findings, including one chart; peers evaluate using a four-item rubric (clarity, accuracy, visual quality, actionability); instructor scores the final draft.
Materials: Jupyter Notebook, statsmodels (variance_inflation_factor), seaborn; housing dataset from Lesson 8; pitfalls case study handout; peer-review rubric
Check: Instructor scores presentation and written model summary on a 10-point rubric: VIF check and correct multicollinearity interpretation (3 pts), correct adjusted R-squared comparison (3 pts), plain-language summary accuracy (4 pts); pass mark 70%.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Data analysis and statistics
1. A multiple regression model predicts monthly sales using advertising spend (x₁) and store size (x₂). The coefficient for store size is 3.2. What is the correct interpretation?
Data analysis and statistics
2. You compare two regression models. Model X has an R-squared of 0.80 and an adjusted R-squared of 0.71. Model Y has an R-squared of 0.82 and an adjusted R-squared of 0.69. Which model should you prefer, and why?
Data analysis and statistics
3. In a regression model with three predictors, the VIF values are 1.2, 1.5, and 9.4. What is the most appropriate next step?
Data analysis and statistics
4. A hospital reports that patients who received a new treatment had a lower survival rate than those who did not, but when patients are grouped by illness severity, the treatment improved survival in both mild and severe cases. This is an example of which phenomenon?
Data quality and governance
5. A researcher tests 40 different hypotheses on the same dataset and reports the three that achieved p < 0.05 as significant findings without correction. This practice is best described as:
Data quality and governance
6. An analyst concludes that red sports cars cause accidents because cars involved in accidents are more often red. She obtained her data from insurance accident reports only. Which bias is most likely affecting this conclusion?
Data visualization and communication
7. You are presenting regression results to a marketing manager. Which of the following plain-language statements best communicates a coefficient of 0.08 on 'email open rate' in a model predicting weekly revenue?
Data analysis and statistics
8. Ice cream sales and sunscreen sales are both high in summer and low in winter. A student concludes that ice cream sales cause sunscreen sales to rise. What is the most accurate description of this error?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.