Chapter 5,6, & 7 Business Analytics: Probability, Statistical Inference, and Linear Regression
Foundations of Probability and Uncertainty Modeling
Managerial decisions in business analytics are made under conditions of uncertainty, defined as the state of having limited knowledge where it is impossible to describe exactly the existing state, future outcome, or more than one possible result. Probability provides the formal mathematical foundation for quantifying, modeling, and communicating uncertainty through structured probability distributions.
Random Experiments, Sample Spaces, and Outcomes
A random experiment is defined as any process that generates well-defined experimental outcomes. On any single repetition of the experiment, one and only one of the possible outcomes will occur.
The sample space, denoted by , is the collection of all possible experimental outcomes. An experimental outcome is also referred to as a sample point.
Coin Toss Experiment: Tossing a fair coin results in the sample space .
Die Roll Experiment: Rolling a standard six-sided die results in the sample space .
Simple Event Probabilities:
Rolling an even number on a six-sided die: The sample space has outcomes. The favorable event has outcomes. The probability is .
Drawing a Club from a standard 52-card deck: The sample space consists of cards. The favorable event has outcomes. The probability is .
Case Study: California Power & Light Company (CP&L)
California Power & Light Company (CP&L) initiates a capital project designed to expand the generating capacity of one of its plants in Southern California. Historical data gathered across similar past expansion projects provides the basis for assigning relative frequency probabilities to the project completion times:
: past projects, giving probability
: past projects, giving probability
: past projects, giving probability
: past projects, giving probability
: past projects, giving probability
Total: past projects, with total probability summing to .
An event is formally defined as a collection of sample points (outcomes). The probability of any event equals the sum of the probabilities of the individual outcomes comprising that event.
Event (Project completed in or less): Outcomes are .
Event (Project completed in less than ): Outcomes are .
Event (Project completed in more than ): Outcomes are .
Fundamental Laws and Relationships of Probability
Probability calculations depend on set-theoretic relationships that govern how events interact within a sample space.
The Complement of an Event
The complement of event , denoted by , is defined as the event consisting of all outcomes in the sample space that are not in .

Because an event and its complement are mutually exclusive and exhaustive across the entire sample space, their probabilities must sum to unity:
In verbal problem statements, the complementary law applies whenever phrases such as "not," "does not occur," "fails," "opposite," or "not happen" are used.
Application (Zero Trust Architecture): An enterprise network continuously monitors remote logins. System logs establish that the probability of a remote login attempt being flagged as anomalous and requiring secondary multifactor authentication (Event ) is (). The probability that a randomly selected attempt is not flagged is:
The Union of Events and the Addition Law
The union of events and , denoted by , is the event containing all outcomes that belong to event , event , or both.

When calculating the probability of a union, simply adding and double-counts any outcomes that belong simultaneously to both events. The addition law corrects for this overcounting by subtracting the joint probability of their intersection:
In verbal contexts, the addition law is signaled by terms such as "either… or…", "at least one", "any of the following", "union", "one or more", or "A or B".
Card Deck Example: When drawing a single card from a 52-card deck, let Event be drawing a Heart () and Event be drawing a King (). The King of Hearts is in both sets (). The probability of drawing a Heart or a King is:
Analytics Toolkit Survey: In an Information Systems cohort, of students are proficient in advanced Excel (Event , ), are proficient in Python (Event , ), and are proficient in both (). The probability that a randomly chosen student is proficient in at least one tool is:
Employee Turnover Study: A human resources study reveals that of departing employees leave due to dissatisfaction with salary (Event , ), leave due to dissatisfaction with work assignments (Event , ), and leave due to both (). The probability of leaving due to salary or work assignments is:
Mutually Exclusive Events
Two events are defined as mutually exclusive (or disjoint) if they have no outcomes in common. When one event occurs, the other cannot occur. Consequently, their intersection is empty:

For mutually exclusive events, the addition law simplifies to:
Hardware Configuration Example: A TP-Link TL-WA1201 access point firmware requires operating in exactly one mode at a time. The probability of configuring Access Point mode (Event ) is , while Client mode (Event ) is . Because the modes are mutually exclusive, the probability of operating in either mode is:
Marble Bag Example: A bag contains , , and marbles (). Drawing one marble yields mutually exclusive colors. The probability of drawing a red () or blue () marble is:
The Intersection of Events and the Multiplication Law
The intersection of events and , denoted by , is the event containing all outcomes belonging to both and .

Conditional probability defines the likelihood of event occurring given that event has already occurred:
Rearranging this formula yields the general multiplication law used to calculate joint probabilities:
Sequential Selection Without Replacement: A desk drawer contains , of which work perfectly and are corrupted. Grabbing two drives in sequence without replacement yields dependent probabilities:
First drive corrupted:
Second drive corrupted given the first was corrupted:
Probability both are corrupted:
E-Commerce Return Example: In a transaction dataset, of purchases are made on mobile devices (). Among mobile purchases, result in a return (). The joint probability of selecting a transaction that is both mobile and returned is:
Independent versus Dependent Events
Two events and are independent if the occurrence of one does not alter the probability of the other:
If either condition fails, the events are dependent. For independent events, the multiplication law simplifies to:
If , the events are dependent.
Joint Probability Tables and Contingency Analysis
Contingency tables (crosstabulations) categorize observed sample data across multiple categorical variables to establish empirical joint and marginal probabilities.
Lancaster Savings and Loans Mortgage Default Case
Lancaster Savings and Loans examines whether mortgage default status differs by marital status across a sample of customers. Let , , , and .
Crosstabulation of Customer Observations
Marital Status | No Default () | Default () | Total |
|---|---|---|---|
Married () | |||
Single () | |||
Total |
Dividing each cell by the total sample size () generates the joint probability table. The margins of the table represent the marginal probabilities of individual events.
Joint Probability Table
Marital Status | No Default () | Default () | Marginal Probability |
|---|---|---|---|
Married () | |||
Single () | |||
Marginal Probability |
Evaluating Conditional Probabilities and Dependence
Using the joint and marginal probabilities, the conditional probability of defaulting based on marital status is calculated:
Default probability given Married:
Default probability given Single:
Because , mortgage default and marital status are statistically dependent. Married borrowers in this portfolio default at a substantially higher rate than single borrowers.
The Logic of Conditional Probabilities: The Flush Draw
Conditional probability updates sample spaces as new information becomes known. In Texas Hold'em poker:
Unconditional Baseline: Drawing a Heart from a full, freshly shuffled 52-card deck has probability .
Conditional State: A player holds two Hearts, and the community board displays four cards, two of which are Hearts. The player seeks a Heart on the final "River" card.
Known cards: .
Remaining unseen cards: .
Known Hearts: .
Remaining unseen Hearts: .
The updated sample space contains equally likely outcomes, giving:
Mapping to the formal definition over the original 52-card space:
Bayes' Theorem and Probability Revision
Bayes' Theorem provides a mathematical method for revising prior probabilities when new sample evidence or test information becomes available, producing posterior probabilities.

Mathematical Formulation for Two Mutually Exclusive Events
Let events and form a partition of the sample space ( and ). For any observed event where :
Where:
represents the prior probability.
represents the likelihood (conditional probability of observing evidence given state ).
represents the total marginal probability of the evidence.
represents the revised posterior probability.
Medical Testing and the Base-Rate Fallacy
Consider a rare disease affecting of the population (, , where and ). A diagnostic test has a accuracy rate:
True Positive Rate:
False Negative Rate:
True Negative Rate:
False Positive Rate:
When a patient tests positive ( ), calculating the probability that the patient actually has the disease requires Bayes' Theorem:

Across a hypothetical cohort of individuals:
Base Rate Division: () and ().
True Positives: .
False Positives: .
Total Positives: .
The posterior probability that a person with a positive test is actually sick is:
Despite a test accuracy, the low base rate () causes false positives () to outnumber true positives (), resulting in an posterior probability of infection.
Industrial Quality Control Application: Supplier Parts
A manufacturing firm purchases parts from two suppliers:
Supplier 1 (): Supplies of parts (). Historical quality: good (), bad ().
Supplier 2 (): Supplies of parts (). Historical quality: good (), bad ().

A machine operator discovers a defective part ( ). The total probability of receiving a defective part is:
The posterior probability that the defective part came from Supplier 1 is:
The posterior probability that the defective part came from Supplier 2 is:
Although Supplier 1 provides the majority of parts (), a defective part is more likely to have originated from Supplier 2 () due to Supplier 2's higher defect rate ( vs. ).
Discrete Probability Distributions
A random variable is a numerical description of the outcome of an experiment.
Discrete Random Variable: Assumes either a finite number of values or an infinite sequence of countable values (e.g., ).
Continuous Random Variable: Assumes any numerical value within an interval or collection of intervals on the real number line.
Comparison of Discrete and Continuous Random Variables
Random Experiment | Random Variable () | Variable Type | Possible Values |
|---|---|---|---|
Flip a coin | Face of coin showing | Discrete | if heads; if tails |
Roll a die | Number of dots showing | Discrete | |
Contact five customers | Number of purchasing customers | Discrete | |
Operate clinic for one day | Number of patient arrivals | Discrete | |
Product selection test | Choice among two products | Discrete | if none; if Product A; if Product B |
Customer web visit | Time spent on page (minutes) | Continuous | |
Can filling line | Ounces filled (max capacity ) | Continuous | |
Chemical reaction test | Reaction temperature () | Continuous | |
Stock market investment | Value of \$10,000 investment after one year | Continuous |
Mathematical Properties of Discrete Distributions
A discrete probability distribution is defined by a probability mass function (PMF), denoted by . Any valid discrete PMF must satisfy two conditions:
Expected Value (
) The expected value measures the central location of the random variable as a probability-weighted average:
Variance (
) and Standard Deviation ( ) Variance measures dispersion around the mean as the probability-weighted average of squared deviations:
Empirical Custom Discrete Distributions: Mortgage Payment Frequency
A custom discrete distribution was developed from a sample of residential mortgage customers:
pay quarterly (), with relative frequency
pay monthly (), with relative frequency
pay bi-monthly (), with relative frequency
Computation of Expected Value and Variance
(or ) | |||||
(or ) | |||||
(or ) | |||||
Total |
In Excel:
Expected Value:
=SUMPRODUCT(A2:A4, B2:B4)yields13.800Variance:
=SUMPRODUCT(B2:B4, C2:C4)yields42.360Standard Deviation:
=SQRT(B7)yields6.508
Standard Discrete Probability Distributions
Discrete Uniform Distribution
When a random variable assumes finite outcomes with equal likelihood:
For a standard six-sided die, , so for .
Bernoulli Distribution
Models a single trial with two outcomes (Success = , Failure = ):
Binomial Probability Distribution
Models the number of successes () observed across independent and identical Bernoulli trials, each with constant success probability :
Mean:
Variance:
Standard Deviation:
Application (Martin's Targeted Email Campaign): An online retailer sends promotional emails to . The historical conversion rate is ():
In Excel, individual probabilities are computed using =BINOM.DIST(x, n, p, FALSE) and cumulative probabilities using =BINOM.DIST(x, n, p, TRUE).
Poisson Probability Distribution
Models the number of occurrences () of an event over a specified continuous interval of time or space under two conditions:
The probability of an occurrence is proportional to the length of the interval and identical for any two intervals of equal length.
The occurrence or nonoccurrence in any interval is independent of occurrences in any other interval.
Where is the mean number of occurrences over the specified interval and .
Mean:
Variance:
Standard Deviation:
Application (Hospital Emergency Room): Patients arrive at an emergency room on weekend mornings at an average rate of per 15-minute interval. The probability of observing exactly in a 15-minute window is:
To find the probability of over a 3-minute interval, scale the arrival rate proportionally:
In Excel, Poisson probabilities are computed using =POISSON.DIST(x, mean, FALSE) and cumulative probabilities using =POISSON.DIST(x, mean, TRUE).
Continuous Probability Distributions
For continuous random variables, the probability of the variable assuming any single exact value is zero (). Probabilities are defined as areas under a continuous curve called the probability density function (PDF), denoted by , over a specified interval:
Continuous Uniform Distribution
A continuous random variable is uniformly distributed over an interval when probability is directly proportional to interval length:
Cumulative probability for any value is:
Application (Flight Time Variance): A commercial flight duration varies uniformly between and (, , ). The density function is for . The probability that a flight lands between and is:
Triangular Probability Distribution
The triangular distribution is used when limited historical data exists, requiring subjective estimates for the minimum ( ), maximum ( ), and mode/most likely value ( ):
Application (Construction Project Assessment): Project completion time is estimated with , , and mode . To compute the probability that assessment takes between and :
Normal Probability Distribution
The normal distribution is a symmetric, bell-shaped continuous distribution defined by its mean and standard deviation :

Key Geometric and Mathematical Properties
The highest point of the density function occurs at the mean , which is simultaneously the median and the mode.
The distribution is symmetric around , with area to the left and to the right.
The parameter shifts the distribution horizontally along the real axis without changing its shape.
The parameter dictates dispersion. Larger values of create flatter, wider curves; smaller values create taller, narrower curves.
Empirical Rule Intervals:
contains approximately of the total probability.
contains approximately of the total probability.
contains approximately of the total probability.
Application: Grear Aircraft Engines
Grear Aircraft Engines manufactures an aircraft turbine with operational lifetime normally distributed with mean and standard deviation .

Exceeding 40,000 Flight Hours: In Excel, the cumulative probability up to is calculated via
=NORM.DIST(40000, 36500, 5000, TRUE) = 0.7580. The probability of exceeding is:
Determining Guarantee Threshold for 10% Replacement: Grear wants to establish an engine lifetime guarantee such that no more than of units fail prematurely ().

In Excel, the inverse normal function calculates this threshold:
Exponential Probability Distribution
The exponential distribution models continuous time elapsed or distance between occurrences of random Poisson events:
Where is the mean interval between events. The cumulative probability is:
Application (Commercial Loan Defaults): A commercial lending institution observes that the time between corporate client defaults follows an exponential distribution with mean . To compute the probability that the next default occurs between and :
In Excel, this is computed via =EXPON.DIST(18, 1/15, TRUE) - EXPON.DIST(6, 1/15, TRUE).
Systematic Selection of Probability Distributions
Data Characteristics | Recommended Distribution Family |
|---|---|
Binary outcomes per trial; fixed sample size | Binomial (or Bernoulli for ) |
Count of discrete events occurring across a fixed time or space interval | Poisson |
Continuous measurements within strict finite bounds; constant likelihood | Continuous Uniform |
Continuous variables with known subjective minimum, mode, and maximum | Triangular |
Continuous natural measurements with symmetric, bell-shaped clustering around a central mean | Normal |
Continuous time elapsed or distance between independent arrivals/events | Exponential |
Statistical Inference and Sampling Distributions
Statistical inference uses sample data to estimate or test hypotheses regarding unknown population parameters. Conducting a complete census is often impractical, cost-prohibitive, and time-consuming.
Target Population: The entire collection of elements about which inferences are desired.
Sampled Population: The actual population from which the sample is drawn.
Sampling Frame: The operational list or dataset of elements from which sample selections are drawn.
The Sampling Dilemma: Process Control in Manufacturing
Consider an industrial roasting plant packaging () of coffee daily. Weighing every bag disrupts operations. A quality control worker randomly samples , finding a sample mean weight of and sample standard deviation .
The plant manager must resolve whether the filler heads are uncalibrated across all (requiring an expensive assembly line shutdown) or if this lower mean was simply a random sampling fluctuation. Sampling distributions provide the theoretical framework to determine if this deviation represents background noise or a statistically significant anomaly.
Finite versus Infinite Population Sampling Methods
Finite Population Sampling: For a population of finite size , a simple random sample of size gives every possible sample combination an equal probability of selection. This is automated in Excel by assigning
=RAND()to each observation and sorting to select the top records.Infinite Population Sampling: Generated by ongoing processes (e.g., continuous manufacturing lines, web traffic) with no fixed upper bound. Valid sampling requires two conditions:
Each element drawn originates from the same underlying population.
Each element is selected independently to prevent selection bias.
Point Estimation: Electronic Associates, Inc. (EAI)
Electronic Associates, Inc. (EAI) maintains a personnel registry of . The true population parameters are:
Population mean annual salary:
Population standard deviation:
Population proportion completing management training:
An analyst draws a simple random sample of :
Sample Mean (Point Estimator of ):
Sample Standard Deviation (Point Estimator of ):
Sample Proportion (Point Estimator of ): Nineteen managers completed training:
Sampling Distribution of the Sample Mean ()
The sampling distribution of is the probability distribution of all possible sample means that could be observed from repeated random sampling.
Expected Value
is an unbiased estimator of because its expected value equals the population parameter:
Standard Error of the Mean (SEM)
The standard deviation of the sampling distribution is the standard error of the mean, denoted by . For a finite population of size :
Where is the finite population correction factor. When the sample represents less than of the population (), this factor approaches and is omitted, simplifying to:
When is unknown, the sample standard deviation is substituted, providing the estimated standard error of the mean:
Standard Deviation versus Standard Error: Standard deviation ( or ) measures the spread of individual observations within a single sample. Standard error ( or ) measures the dispersion of sample means across repeated samples.
The Central Limit Theorem (CLT)
When the population distribution is normal, the sampling distribution of is normal for any sample size .
When the population distribution is non-normal, the Central Limit Theorem establishes that as sample size increases, the sampling distribution of approaches a normal distribution, regardless of the underlying population shape.

For most populations, ensures adequate normality.
For highly skewed distributions or data with extreme outliers, is recommended.
Sample Size and Standard Error in the EAI Example
With :
\sigma_{\bar{x}} = \frac{\4,000}{\sqrt{30}} = \
With :
\sigma_{\bar{x}} = \frac{\4,000}{\sqrt{100}} = \
Increasing the sample size narrows the sampling distribution, clustering sample estimates closer to the true population parameter.
Sampling Distribution of the Sample Proportion ()
Expected Value: is an unbiased estimator of :
Standard Error of the Proportion ( ):
Estimated Standard Error ( ):
Normality Criteria: The sampling distribution of is well-approximated by a normal curve whenever:
For EAI with and :
Increasing the sample size to reduces the standard error to:
Confidence Interval Estimation
An interval estimate provides a range of plausible values for a population parameter, constructed as:
The confidence level () represents the proportion of constructed intervals that would contain the true population parameter under repeated sampling. The level of significance, , is the probability that an interval fails to capture the parameter.
Interval Estimation of the Population Mean ( Unknown)
When the population standard deviation is unknown, the sample standard deviation is used, introducing additional sampling variability. This requires using the Student's distribution rather than the standard normal distribution.

The distribution is symmetric and bell-shaped, but has heavier tails than the standard normal distribution.
Its shape depends on the degrees of freedom ().
As degrees of freedom increase, the distribution converges to the standard normal distribution.
The confidence interval for a population mean is given by:
EAI Case Construction
For EAI (, , , ):
For a confidence level (, ):
Excel:
=T.INV.2T(0.10, 29)yields
For a confidence level (, ):
Excel:
=T.INV.2T(0.05, 29)yields
\text{CI} = \71,814 \pm \
We are confident that the true population mean salary for all EAI managers falls between \$70,564 and \$73,064.
Interval Estimation of the Population Proportion
The confidence interval for a population proportion is:
Application (Golf Course Survey): A survey of finds that are satisfied with tee-time availability (). At a confidence level ():
Hypothesis Testing Methodologies
Hypothesis testing uses sample data to determine whether to reject a specific claim regarding a population parameter.
Null Hypothesis ( ): A tentative conjecture about a parameter, assumed true until sample evidence indicates otherwise. Equality () is always placed in the null hypothesis.
Alternative Hypothesis ( ): The opposite of the null hypothesis; often represents the research hypothesis the analyst seeks to support.
Standard Hypothesis Testing Structures
Test Orientation | Null Hypothesis () | Alternative Hypothesis () | Rejection Region Location |
|---|---|---|---|
Lower-Tail Test | (or ) | (or ) | Left/lower tail of sampling distribution |
Upper-Tail Test | (or ) | (or ) | Right/upper tail of sampling distribution |
Two-Tailed Test | (or ) | (or ) | Both tails of sampling distribution |
Decision Errors: Type I versus Type II
Type I Error: Rejecting the null hypothesis when it is actually true. The probability of committing a Type I error equals , the significance level of the test.
Type II Error: Failing to reject (or accepting) the null hypothesis when it is actually false. The probability of committing a Type II error is denoted by .
Action Taken | is Actually True | is Actually True |
|---|---|---|
Do Not Reject | Correct Decision (Probability ) | Type II Error (Probability ) |
Reject | Type I Error (Probability ) | Correct Decision (Probability , Power) |
Application (Fuel Injection System): Testing a new fuel injection unit hypothesized to exceed (, ):
Type I error: Concluding the system improves mileage () when it does not.
Type II error: Concluding the system does not improve mileage () when it actually does.
Hypothesis Testing for a Population Mean
The test statistic follows a distribution with :
Lower-Tail Test: Hilltop Coffee Fill Weight
The FTC evaluates Hilltop Coffee's claim that its large cans contain at least of coffee (, ). The FTC tests at .
A random sample of yields sample mean and standard deviation :

In Excel, the lower-tail -value is =T.DIST(-2.824, 35, TRUE) = 0.0039.
Decision Rule: Reject if .
Because , is rejected. There is statistically significant evidence that Hilltop Coffee underfills its cans below the 3-pound label weight.
Two-Tailed Test: Holiday Toys Retail Demand
Holiday Toys tests whether mean per-store demand for a new product equals (, ) at .
A survey of yields and :

The one-tail area is . For a two-tailed test, double this value:
Because , cannot be rejected. There is insufficient evidence to conclude that mean demand differs from 40 units.
Hypothesis Testing for a Population Proportion
When and , the test statistic follows a standard normal distribution:
Upper-Tail Test: Pine Creek Golf Course Promotion
Pine Creek tests whether a promotional campaign increased the proportion of female golfers above the historical baseline of (, ) at .
A sample of includes ():

In Excel, the upper-tail -value is =1 - NORM.S.DIST(2.50, TRUE) = 1 - 0.9938 = 0.0062.
Because , is rejected. There is statistically significant evidence that the proportion of female golfers has increased.
Methodological Summary for Computing -Values
Test Type | Alternative Hypothesis | Relevant Tail Area | Excel Formula (-Distribution) | Excel Formula (-Distribution) |
|---|---|---|---|---|
Lower Tail | Contains | Cumulative area up to test statistic |
|
|
Upper Tail | Contains | Cumulative area to the right of test statistic |
|
|
Two-Tailed | Contains | Sum of both tail areas |
|
|
Sources of Error and Large-Sample Considerations
Sampling Error: The natural difference between a sample statistic and its corresponding population parameter due to random chance. Unavoidable, but diminishes as sample size increases ().
Nonsampling Error: Systematic deviations that occur outside of random sampling. These do not decrease with larger sample sizes:
Coverage Error: Occurs when the sampling frame fails to align with the target population.
Nonresponse Error: Occurs when non-respondents systematically differ from respondents.
Measurement Error: Occurs from flawed instruments, poor question wording, or inaccurate data recording.
Big Data Paradox: In very large samples ( or more), standard errors become extremely small. As a result, trivial real-world differences between sample statistics and hypothesized values become statistically significant (). Analysts must distinguish between statistical significance (mathematical rejection of ) and practical significance (business relevance of the effect size).
Simple Linear Regression Analysis
Regression analysis develops an empirical mathematical model describing the relationship between a dependent (response) variable and one or more independent (predictor) variables .
The Simple Linear Regression Model
The theoretical population model is formulated as:
Where:
is the population -intercept.
is the population slope coefficient.
is the unobserved random error term capturing variability in not explained by the linear relationship with .
The estimated simple linear regression equation developed from sample data is:
Where and are sample point estimators of and , and represents the predicted mean value of for a given .

Ordinary Least Squares (OLS) Method
The least squares method minimizes the sum of squared residuals (errors):
Where represents the residual for the observation.
Case Study: Butler Trucking Company
Butler Trucking Company seeks to estimate daily driver route times (, in hours) based on total miles traveled (). A random sample of is collected:

Running OLS produces the estimated regression equation:
Slope ( ): Each additional mile traveled increases expected travel time by (/mile).
Intercept ( ): A route of has a predicted baseline time of (), representing fixed non-driving activities (pre-trip inspections, loading, driver logs).
Experimental Region and Extrapolation: The sampled routes range from to . Predictions outside this range represent extrapolation and are unreliable. Interpreting the intercept at is technically an extrapolation, but serves as an operational baseline.
OLS Residuals for Butler Trucking (
)
Assignment | Miles () | Travel Time () | Predicted Time () | Residual () | Squared Residual () |
|---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 | |||||
6 | |||||
7 | |||||
8 | |||||
9 | |||||
10 | |||||
Total |
Partitioning Sums of Squares and Goodness of Fit
Total variation in the dependent variable is partitioned into explained and unexplained components:
Total Sum of Squares (SST): Total variability around the sample mean ():
Sum of Squares Due to Error (SSE): Residual variation left unexplained by the regression:
Sum of Squares Due to Regression (SSR): Variation explained by the linear relationship with :
Coefficient of Determination (
) The coefficient of determination measures the proportion of total variation in explained by the regression model:
Approximately of the variability in travel time is explained by the miles driven.
Benchmark Standards for
Physical Sciences and Engineering (): Governed by physical laws with low measurement noise. Values below often indicate poor calibration or omitted physical variables.
Business, Economics, and Finance (): Governed by market dynamics and human behavior. An around is often practically useful and profitable.
Social Sciences and Psychology (): Characterized by high behavioral variation. An around can provide meaningful insight into broader trends.
Global Model Significance: The -Test
The -statistic tests whether the regression model explains a significant portion of variance compared to unexplained noise:
Where is the number of predictors and . For Butler Trucking:
With and , the resulting -value is . Because , the overall model is statistically significant.
Confidence Intervals versus Prediction Intervals
Standard Error of the Estimate ( ): The estimated standard deviation of the residuals:
Confidence Interval (CI): Estimates the mean travel time for all routes of distance :
Prediction Interval (PI): Estimates the travel time for a single route of distance . The extra "" inside the square root accounts for the variance of an individual outcome around the mean:
Example Calculation at (, , ):
95% Confidence Interval:
95% Prediction Interval:
Multiple Linear Regression Modeling
Multiple linear regression expands the model to include independent variables:
Each partial regression coefficient represents the expected change in per unit increase in , holding all other independent variables constant.
Butler Trucking Model with Mileage and Deliveries
Butler Trucking adds a second predictor: number of delivery stops ().
Estimating this model across an expanded dataset () yields:
Miles ( ): Holding deliveries constant, each additional mile adds ().
Deliveries ( ): Holding mileage constant, each additional delivery adds ().
Goodness of Fit: , showing that of the variability in travel time is explained by miles and deliveries combined.

ANOVA and Regression Output (
)
Regression Statistics: Multiple , , Adjusted , Standard Error .
ANOVA: Regression , , , , Significance . Residual , , . Total , .
Parameter Estimates:
Intercept: , , , .
Miles (): , , , .
Deliveries (): , , , .
Both predictors are statistically significant ().
Regression Diagnostics and Inference Conditions
Valid statistical inference using OLS requires satisfying four key assumptions regarding the error term :

Linearity: The relationship between predictors and the mean response is linear.
Independence of Errors: The error terms are independent. Autocorrelation (common in time-series data) violates this assumption.
Normality of Errors: For any set of predictor values, the error term is normally distributed with mean .
Homoscedasticity (Constant Variance): The variance of the error term, , is constant across all predicted values of .
Residual Plot Diagnostics

Ideal Plot: Residuals randomly distributed within a horizontal band centered at zero, with no distinct patterns.
Non-Constant Spread (Heteroscedasticity): Residuals display a "fan" or "funnel" shape. Standard errors will be biased, invalidating confidence intervals and hypothesis tests.
Nonlinear Patterns: Curved or U-shaped residual plots indicate that higher-order polynomial or interaction terms should be added.
Non-Independent Errors: Systematic oscillations, tracking, or snake-like patterns indicate autocorrelation.
Multicollinearity: Detection and Mitigation
Multicollinearity occurs when two or more independent variables are highly correlated with each other.
Consequences of Multicollinearity
Inflated standard errors for estimated coefficients, which reduces the magnitude of -statistics.
Individual predictors may appear nonsignificant () even when the overall model is highly significant (-test ).
Coefficients become unstable and sensitive to minor data alterations, sometimes taking on counterintuitive signs.
Predictive Power: Multicollinearity does not impair the overall model's predictive ability, but it does prevent isolating the individual effect of each predictor.
Butler Trucking Gasoline Consumption Case
Butler Trucking includes both miles driven () and gasoline consumption () in the model. Because gas consumption is directly tied to miles driven, their correlation is .
In the regression output, the coefficient for gasoline consumption has a -value of , erroneously suggesting that fuel used does not influence travel time.
The Variance Inflation Factor (VIF)
Multicollinearity is diagnosed using the Variance Inflation Factor for each predictor :
Where is the coefficient of determination obtained from regressing predictor on all remaining independent variables.
Correlation | Resulting VIF | Diagnostic Interpretation |
|---|---|---|
No multicollinearity | ||
Mild multicollinearity | ||
Moderate multicollinearity | ||
Concerning multicollinearity | ||
Serious multicollinearity (remedial action required) | ||
Severe multicollinearity |
Categorical Predictors and Dummy Variables
Categorical independent variables are incorporated into regression models using dummy variables coded as or .
Binary Dummy Variables: Highway Rush Hour
Residual analysis of the Butler Trucking model indicates that drivers taking the highway during afternoon rush hour experience systematic delays. A dummy variable is defined:
Estimating the expanded model yields:
Model fit increases to ( of variance explained).
: Driving on the highway during afternoon rush hour adds approximately () to route time, holding miles and deliveries constant.
Complex Categorical Variables ( Categories)
When a categorical variable has levels, exactly dummy variables must be created. One category serves as the baseline/reference group (coded as across all dummy variables).
Sales Region Coding (
Levels) A vending machine manufacturer sells across three territories: Region A, Region B, and Region C. Region A is chosen as the baseline:
Region | Dummy Variable | Dummy Variable |
|---|---|---|
Region A (Baseline) | ||
Region B | ||
Region C |
The regression model is:
Region A:
Region B:
Region C:
Here, represents the expected difference in sales between Region B and Region A, while represents the difference between Region C and Region A.
Modeling Nonlinear and Interaction Relationships
Linear regression models can capture nonlinear and interactive relationships through variable transformations.
Quadratic Regression Models
When residual plots display a curved relationship, a quadratic term is added:

Same Signs: Monotonically increasing () or decreasing () across the experimental region.
Opposite Signs: Concave with a maximum () or convex with a minimum ().
Case Study: Reynolds, Inc. Industrial Scales
Reynolds, Inc. evaluates months of sales experience () versus unit sales () across .

Fitting a linear model () yields an arched residual plot, indicating a nonlinear trend. Adding the quadratic term MonthSq () yields:
Because and , the curve reaches a maximum. Using calculus (setting the first derivative to zero):
Sales performance peaks around (), after which performance slightly declines due to fatigue or burnout.
Interaction Models
An interaction occurs when the effect of one predictor on depends on the value of another predictor:
Application (Tyler Personal Care): Sales (, in thousands) are modeled as a function of Price (, in dollars) and Advertising (, in thousands of dollars). The estimated model is:
The negative interaction term () indicates that the positive effect of advertising on sales diminishes at higher price points.
Piecewise Linear Regression Models
A piecewise linear regression connects separate linear segments at a specific threshold value of , called a knot or breakpoint ():

A dummy variable is defined:
The model is formulated as:
For the Reynolds dataset with a knot at :
Experience ( ):
Sales increase by per additional month of experience.
Experience ( ):
Beyond 70 months, sales decline by per additional month of experience.
Model Fitting, Selection, and Big Data in Regression
Variable Selection Procedures
Forward Selection: Begins with no predictors and iteratively adds the variable providing the largest statistically significant improvement in model fit until no remaining variables meet the entry threshold.
Backward Elimination: Begins with all candidate predictors and iteratively removes the least statistically significant variable until all remaining predictors are significant.
Stepwise Regression: A modified forward selection procedure where variables entered at early steps can be removed later if they become nonsignificant after other variables enter the model.
Best-Subsets Regression: Evaluates all possible subset models ( models) to identify the optimal model using criteria such as Adjusted , Mallows' , or the Akaike Information Criterion (AIC).
Overfitting and Cross-Validation
Overfitting occurs when an overly complex model captures random sample noise rather than true population relationships. Overfit models perform exceptionally well on training data, but fail when predicting new observations.
Prevention: Use variable selection procedures as guidance rather than definitive answers, include only variables supported by business theory, and evaluate models using cross-validation.
Holdout Method: The dataset is split into a training set (e.g., or of observations) used to estimate model parameters, and a validation/testing set (e.g., or of observations) used to evaluate predictive accuracy.
Practical Scenarios and Review Problems
Class Activity: Product Launch Evaluation
A product launch decision faces three market demand scenarios:
High Demand: Probability , Profit
Moderate Demand: Probability , Profit
Low Demand: Probability , Loss
Decision: Launch the product because the expected monetary value is positive ($\$100,000$). However, risk-averse decision makers must weigh whether the company can absorb a potential \$200,000 loss.
Questions on Employee Dissatisfaction
Recall the HR study: , , .
Probability of not being dissatisfied with salary:
Are salary and work dissatisfaction mutually exclusive? No. . Both forms of dissatisfaction can occur together.
Are salary and work dissatisfaction independent? Check the multiplication condition:
Because , the events are dependent.
Verification via Conditional Probability:
Because , employees dissatisfied with salary are twice as likely to also be dissatisfied with their work assignments.
Classwork: Diagnostic Screening for a Rare Disease
A disease affects of the population (, ). A diagnostic test has:
True Positive Rate:
False Positive Rate:
To find the posterior probability of having the disease given a positive test ():
Even with a true positive rate and a low false positive rate, an individual testing positive has only a probability of being infected due to the low baseline prevalence () in the general population.