Week 11 - Understanding Correlation and Regression for Business Decisions in Business
Introduction and Learning Objectives
- Presenter: Petar Zivkovic
- Date: 02.06.2026
- Theme: Understanding relationships in data to make better business decisions using correlation and regression.
- Agenda:
- Key Concepts: Variables and Relationships.
- Measuring Relationships: Correlation and Covariance.
- Building regression models to quantify effects.
- Evaluating model quality: , residuals, and assumptions.
- Real-world applications: Business examples.
- Core Learning Objectives:
- Identify and interpret relationships between variables within a business context.
- Develop and apply regression models to explain and predict specific outcomes.
- Assess the reliability and quality of regression models to support data-driven decision-making processes.
Bivariate Analysis
- Definition: Bivariate analysis is the study of the relationship between exactly two variables.
- Primary Goal: To explore if and how two variables are related, associated, or influence one another.
- Applications in Hospitality:
- Analyzing guest age and the likelihood to book a spa treatment.
- Analyzing room type and its effect on satisfaction ratings.
- Analyzing guest nationality and breakfast preference.
- Analyzing staff experience levels and the rate of guest complaints.
- Relationship to Multivariate Analysis: Bivariate analysis serves as a foundational step. Multivariate analysis moves further by examining how multiple variables interact simultaneously (e.g., how age, nationality, and income level together influence booking behavior).
Key Roles of Variables
- Independent Variable ():
- Alternative Names: Predictor variable, Explanatory variable, Input, Feature.
- Purpose: The variable believed to influence or explain changes in another variable.
- Hospitality Example: Room rate.
- Dependent Variable ():
- Alternative Names: Response variable, Outcome variable, Output, Target.
- Purpose: The variable the researcher is attempting to understand, predict, or explain.
- Hospitality Example: Customer satisfaction.
- Analysis Comparison:
- Bivariate Analysis: One independent variable () and one dependent variable (). Example: , .
- Multivariate Analysis: One dependent variable () and two or more independent variables (). Example: , , , .
- Assignment of Roles:
- Prediction: is the target to be predicted; is the input used for prediction.
- Causal Analysis: is explicitly assumed to affect (e.g., more amenities leads to higher satisfaction).
- Exploration: Roles are not always strict; tools like pairplots or correlation matrices may treat all variables equally.
Statistical Indicators for Measuring Relationships
- Covariance:
- Formula:
- Excel Function:
COVARIANCE.S(range1, range2) - Usage: Measures how two variables change together. Positive values indicate they move in the same direction; negative values indicate they move in opposite directions.
- Correlation ():
- Formula:
- Excel Function:
CORREL(range1, range2) - Usage: Standardizes covariance to a scale of to . It shows the strength and direction of a linear relationship.
- Interpreting Correlation:
- Range: to . Positive means same direction; negative means opposite direction; near means weak or no linear relationship.
- Linearity: Correlation only measures linear relationships. Data must be visualized with scatterplots to confirm linearity.
- Outliers: Unusual data points can distort correlation values, necessitating investigation through scatterplots.
- Causation: Correlation does not imply causation.
- Business Uses: Standardized metrics allow for comparing relationship strengths across different variables, help prioritize variables for predictive modeling, and reveal patterns for business insights.
Qualitative Mechanics of Correlation and Covariance
- Deviation Interaction:
- Positive deviation from and positive deviation from results in a positive () overall effect.
- Negative deviation from and negative deviation from results in a positive () overall effect.
- Positive deviation from and negative deviation from results in a negative () overall effect.
- Negative deviation from and positive deviation from results in a negative () overall effect.
- Strength Identification: Correlation is used specifically to determine if a relationship is strong or weak, which covariance alone cannot signify because covariance is not standardized.
Causation vs. Coincidence
- The Principle: Correlation is not causation.
- Example Case: A graph showing a high correlation between "Divorce rate in Maine" and "Per capita consumption of margarine (US)".
- Conclusion: While variations in divorce rate and margarine consumption appear synchronized, there is no causal link; the relationship is a pure coincidence.
Regression Analysis Objectives
- Test and Quantify Relationships:
- Existence: Use significance tests like p-values and t-tests to determine if an relationship exists.
- Impact: Use regression coefficients () to interpret the amount changes when changes.
- Evaluate Model Quality:
- Fit: Evaluate model fit using or adjusted .
- Residuals: Inspect residuals for patterns.
- Reliability: Check for outliers and verify regression assumptions.
- Predict Outcomes:
- Forecasting: Use the regression equation to estimate the value of based on known inputs ().
The Linear Regression Model and Equation
- Conceptual Model:
- Estimated Regression Equation:
- Least Squares Criterion: This method finds values for and that minimize the sum of squared residuals: .
- Calculations:
- Visualization of the Equation:
- Slope (): . Represents the change in the predicted value of for every one-unit increase in .
- Intercept (): The value of when .
Business Examples of Regression
- Battery Degradation:
- Model:
- Interpretation: If and p-value = , the result is significant. Battery range decreases as mileage increases.
- Hotel Room Price:
- Model: \text{Room Price ($)} = \beta_0 + \beta_1 \times \text{Distance from beach (km)} + \nu
- Interpretation: If and p-value = , the result is not significant (Accept ). Distance from the beach does not significantly affect room price in this model.
- House Price Prediction:
- Model: \text{House Price ($)} = \beta_0 + \beta_1 \times \text{Square Footage} + \nu
- Interpretation: If and p-value = , the result is significant. House price increases significantly by for every additional square foot.
Types of Regression Relationships
- Positive Linear Relationship: Upward straight line ( holds).
- Negative Linear Relationship: Downward straight line ( holds).
- Positive Curvilinear Relationship: Upward curve.
- Negative Curvilinear Relationship: Downward curve.
- U-shaped Curvilinear Relationship: A parabolic curve.
- No Relationship: Flat line or scattered data points with no trend ( holds).
Hypothesis Testing and the t-Test
- Null Hypothesis (): . Suggests there is no slope and therefore no relationship between the variables.
- Alternative Hypothesis (): . Suggests a significant slope exists, indicating a relationship.
- Test Statistic:
- Decision Rule: Accept (proving no relationship) if the p-value is greater than the Significance Level (SL). Reject (confirming a relationship) if the p-value is less than or equal to the SL.
ANOVA and the Coefficient of Determination ()
- Definition: Measures the proportion of variation in the dependent variable that is explained by the independent variable in the model.
- Formula:
- Variables:
- : The actual measured value.
- : The predicted value from the regression line.
- : The average value of all actual measured points.
- Sum of Squares Components:
- Total Sum of Squares (SST): . Represents the total variation in the data.
- Error Sum of Squares (SSE): . Represents variation not explained by the model.
- Regression Sum of Squares (SSR): . Represents variation explained by the relationship between and .
Model Assumptions
The validity of the regression model relies on four assumptions about the error term (nu/epsilon):
- Expected Value: The error term is a random variable with an expected value (mean) of zero: .
- Independence: The values of error terms are independent of each other.
- Normality: The error term is normally distributed.
- Constant Variance: The variance of the error term, denoted by , is the same for all values of (Homoscedasticity).
Outliers
- Definition: An outlier is a data point that deviates significantly from the trend shown by the rest of the observations.
- Handling Outliers:
- Erroneous Data: If caused by error, they should be corrected.
- Assumption Violation: If they signal the model is incorrect, a different model should be considered.
- Chance Occurrence: If they are valid unusual values occurring by chance, they should be retained.
- Detection: Standardized residuals are used to identify outliers. Any observation with a standardized residual less than or greater than is classified as an outlier.