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 SS, 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 S={Head,Tail}S = \{\text{Head}, \text{Tail}\}.

  • Die Roll Experiment: Rolling a standard six-sided die results in the sample space S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}.

  • Simple Event Probabilities:

    • Rolling an even number on a six-sided die: The sample space has 66 outcomes. The favorable event C={2,4,6}C = \{2, 4, 6\} has 33 outcomes. The probability is P(C)=36=0.50=50%P(C) = \frac{3}{6} = 0.50 = 50\%.

    • Drawing a Club from a standard 52-card deck: The sample space consists of 5252 cards. The favorable event C={A through K of Clubs}C = \{\text{A through K of Clubs}\} has 1313 outcomes. The probability is P(C)=1352=0.25=25%P(C) = \frac{13}{52} = 0.25 = 25\%.

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 4040 similar past expansion projects provides the basis for assigning relative frequency probabilities to the project completion times:

  • 8 months8\,\text{months}: 66 past projects, giving probability P(8)=640=0.15P(8) = \frac{6}{40} = 0.15

  • 9 months9\,\text{months}: 1010 past projects, giving probability P(9)=1040=0.25P(9) = \frac{10}{40} = 0.25

  • 10 months10\,\text{months}: 1212 past projects, giving probability P(10)=1240=0.30P(10) = \frac{12}{40} = 0.30

  • 11 months11\,\text{months}: 66 past projects, giving probability P(11)=640=0.15P(11) = \frac{6}{40} = 0.15

  • 12 months12\,\text{months}: 66 past projects, giving probability P(12)=640=0.15P(12) = \frac{6}{40} = 0.15

  • Total: 4040 past projects, with total probability summing to 1.001.00.

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 CC (Project completed in 10 months10\,\text{months} or less): Outcomes are {8,9,10}\{8, 9, 10\}.

P(C)=P(8)+P(9)+P(10)=0.15+0.25+0.30=0.70P(C) = P(8) + P(9) + P(10) = 0.15 + 0.25 + 0.30 = 0.70

  • Event LL (Project completed in less than 10 months10\,\text{months}): Outcomes are {8,9}\{8, 9\}.

P(L)=P(8)+P(9)=0.15+0.25=0.40P(L) = P(8) + P(9) = 0.15 + 0.25 = 0.40

  • Event MM (Project completed in more than 10 months10\,\text{months}): Outcomes are {11,12}\{11, 12\}.

P(M)=P(11)+P(12)=0.15+0.15=0.30P(M) = P(11) + P(12) = 0.15 + 0.15 = 0.30

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 AA, denoted by AcA^c, is defined as the event consisting of all outcomes in the sample space SS that are not in AA.

Venn diagram illustrating Event A and its complement inside Sample Space S

Because an event and its complement are mutually exclusive and exhaustive across the entire sample space, their probabilities must sum to unity:

P(A)+P(Ac)=1P(A) + P(A^c) = 1

P(A)=1−P(Ac)P(A) = 1 - P(A^c)

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 AA) is P(A)=0.28P(A) = 0.28 (28%28\%). The probability that a randomly selected attempt is not flagged is:

P(Ac)=1−P(A)=1−0.28=0.72P(A^c) = 1 - P(A) = 1 - 0.28 = 0.72

The Union of Events and the Addition Law

The union of events AA and BB, denoted by A∪BA \cup B, is the event containing all outcomes that belong to event AA, event BB, or both.

Venn diagram illustrating the union of Event A and Event B

When calculating the probability of a union, simply adding P(A)P(A) and P(B)P(B) 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:

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)

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 AA be drawing a Heart (P(A)=1352P(A) = \frac{13}{52}) and Event BB be drawing a King (P(B)=452P(B) = \frac{4}{52}). The King of Hearts is in both sets (P(A∩B)=152P(A \cap B) = \frac{1}{52}). The probability of drawing a Heart or a King is:

P(A∪B)=1352+452−152=1652≈0.307=30.7%P(A \cup B) = \frac{13}{52} + \frac{4}{52} - \frac{1}{52} = \frac{16}{52} \approx 0.307 = 30.7\%

  • Analytics Toolkit Survey: In an Information Systems cohort, 65%65\% of students are proficient in advanced Excel (Event EE, P(E)=0.65P(E) = 0.65), 40%40\% are proficient in Python (Event PP, P(P)=0.40P(P) = 0.40), and 25%25\% are proficient in both (P(E∩P)=0.25P(E \cap P) = 0.25). The probability that a randomly chosen student is proficient in at least one tool is:

P(E∪P)=P(E)+P(P)−P(E∩P)=0.65+0.40−0.25=0.80=80%P(E \cup P) = P(E) + P(P) - P(E \cap P) = 0.65 + 0.40 - 0.25 = 0.80 = 80\%

  • Employee Turnover Study: A human resources study reveals that 30%30\% of departing employees leave due to dissatisfaction with salary (Event SS, P(S)=0.30P(S) = 0.30), 20%20\% leave due to dissatisfaction with work assignments (Event WW, P(W)=0.20P(W) = 0.20), and 12%12\% leave due to both (P(S∩W)=0.12P(S \cap W) = 0.12). The probability of leaving due to salary or work assignments is:

P(S∪W)=P(S)+P(W)−P(S∩W)=0.30+0.20−0.12=0.38=38%P(S \cup W) = P(S) + P(W) - P(S \cap W) = 0.30 + 0.20 - 0.12 = 0.38 = 38\%

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:

Venn diagram illustrating Mutually Exclusive Events A and B with no overlap

P(A∩B)=0P(A \cap B) = 0

For mutually exclusive events, the addition law simplifies to:

P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

  • 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 AA) is 0.600.60, while Client mode (Event CC) is 0.150.15. Because the modes are mutually exclusive, the probability of operating in either mode is:

P(A∪C)=0.60+0.15=0.75P(A \cup C) = 0.60 + 0.15 = 0.75

  • Marble Bag Example: A bag contains 5 red5\,\text{red}, 4 green4\,\text{green}, and 2 blue2\,\text{blue} marbles (11 total11\,\text{total}). Drawing one marble yields mutually exclusive colors. The probability of drawing a red (511\frac{5}{11}) or blue (211\frac{2}{11}) marble is:

P(R∪B)=511+211=711≈0.6364=63.64%P(R \cup B) = \frac{5}{11} + \frac{2}{11} = \frac{7}{11} \approx 0.6364 = 63.64\%

The Intersection of Events and the Multiplication Law

The intersection of events AA and BB, denoted by A∩BA \cap B, is the event containing all outcomes belonging to both AA and BB.

Venn diagram showing the shaded intersection of Event A and Event B

Conditional probability defines the likelihood of event AA occurring given that event BB has already occurred:

P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

Rearranging this formula yields the general multiplication law used to calculate joint probabilities:

P(A∩B)=P(A∣B)P(B)=P(B∣A)P(A)P(A \cap B) = P(A|B)P(B) = P(B|A)P(A)

  • Sequential Selection Without Replacement: A desk drawer contains 10 flash drives10\,\text{flash drives}, of which 77 work perfectly and 33 are corrupted. Grabbing two drives in sequence without replacement yields dependent probabilities:

    • First drive corrupted: P(C1)=310P(C_1) = \frac{3}{10}

    • Second drive corrupted given the first was corrupted: P(C2∣C1)=29P(C_2|C_1) = \frac{2}{9}

    • Probability both are corrupted:

P(C1∩C2)=P(C1)×P(C2∣C1)=310×29=690=115≈0.0667=6.67%P(C_1 \cap C_2) = P(C_1) \times P(C_2|C_1) = \frac{3}{10} \times \frac{2}{9} = \frac{6}{90} = \frac{1}{15} \approx 0.0667 = 6.67\%

  • E-Commerce Return Example: In a transaction dataset, 45%45\% of purchases are made on mobile devices (P(M)=0.45P(M) = 0.45). Among mobile purchases, 30%30\% result in a return (P(R∣M)=0.30P(R|M) = 0.30). The joint probability of selecting a transaction that is both mobile and returned is:

P(M∩R)=P(M)×P(R∣M)=0.45×0.30=0.135=13.5%P(M \cap R) = P(M) \times P(R|M) = 0.45 \times 0.30 = 0.135 = 13.5\%

Independent versus Dependent Events

Two events AA and BB are independent if the occurrence of one does not alter the probability of the other:

P(A∣B)=P(A)orP(B∣A)=P(B)P(A|B) = P(A) \quad \text{or} \quad P(B|A) = P(B)

If either condition fails, the events are dependent. For independent events, the multiplication law simplifies to:

P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)

If P(A∩B)≠P(A)P(B)P(A \cap B) \neq P(A)P(B), 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 300300 customers. Let M=MarriedM = \text{Married}, S=SingleS = \text{Single}, D=DefaultD = \text{Default}, and Dc=No DefaultD^c = \text{No Default}.

Crosstabulation of Customer Observations

Marital Status

No Default (DcD^c)

Default (DD)

Total

Married (MM)

6464

7979

143143

Single (SS)

116116

4141

157157

Total

180180

120120

300300

Dividing each cell by the total sample size (N=300N = 300) generates the joint probability table. The margins of the table represent the marginal probabilities of individual events.

Joint Probability Table

Marital Status

No Default (DcD^c)

Default (DD)

Marginal Probability

Married (MM)

0.21330.2133

0.26330.2633

P(M)=0.4766P(M) = 0.4766

Single (SS)

0.38670.3867

0.13670.1367

P(S)=0.5234P(S) = 0.5234

Marginal Probability

P(Dc)=0.6000P(D^c) = 0.6000

P(D)=0.4000P(D) = 0.4000

1.00001.0000

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:

P(D∣M)=P(D∩M)P(M)=0.26330.4766≈0.5524=55.24%P(D|M) = \frac{P(D \cap M)}{P(M)} = \frac{0.2633}{0.4766} \approx 0.5524 = 55.24\%

  • Default probability given Single:

P(D∣S)=P(D∩S)P(S)=0.13670.5234≈0.2610=26.10%P(D|S) = \frac{P(D \cap S)}{P(S)} = \frac{0.1367}{0.5234} \approx 0.2610 = 26.10\%

Because P(D∣M)=0.5524≠P(D)=0.4000P(D|M) = 0.5524 \neq P(D) = 0.4000, 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 P(Heart)=1352=0.25=25%P(\text{Heart}) = \frac{13}{52} = 0.25 = 25\%.

  • 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: 2 hole cards+4 board cards=6 cards2\,\text{hole cards} + 4\,\text{board cards} = 6\,\text{cards}.

    • Remaining unseen cards: 52−6=46 cards52 - 6 = 46\,\text{cards}.

    • Known Hearts: 2+2=4 Hearts2 + 2 = 4\,\text{Hearts}.

    • Remaining unseen Hearts: 13−4=9 Hearts13 - 4 = 9\,\text{Hearts}.

    • The updated sample space contains 4646 equally likely outcomes, giving:

P(Heart on River∣Visible Cards)=946≈0.1957=19.57%P(\text{Heart on River} \mid \text{Visible Cards}) = \frac{9}{46} \approx 0.1957 = 19.57\%

Mapping to the formal definition over the original 52-card space:

P(A∣B)=P(A∩B)P(B)=9/5246/52=946≈19.57%P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{9/52}{46/52} = \frac{9}{46} \approx 19.57\%

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.

Bayes Theorem sequential process flow diagram

Mathematical Formulation for Two Mutually Exclusive Events

Let events A1A_1 and A2A_2 form a partition of the sample space (A1∩A2=∅A_1 \cap A_2 = \emptyset and A1∪A2=SA_1 \cup A_2 = S). For any observed event BB where P(B)>0P(B) > 0:

P(Ai∣B)=P(Ai)P(B∣Ai)P(A1)P(B∣A1)+P(A2)P(B∣A2),i=1,2P(A_i|B) = \frac{P(A_i)P(B|A_i)}{P(A_1)P(B|A_1) + P(A_2)P(B|A_2)}, \quad i = 1, 2

Where:

  • P(Ai)P(A_i) represents the prior probability.

  • P(B∣Ai)P(B|A_i) represents the likelihood (conditional probability of observing evidence BB given state AiA_i).

  • P(B)=P(A1)P(B∣A1)+P(A2)P(B∣A2)P(B) = P(A_1)P(B|A_1) + P(A_2)P(B|A_2) represents the total marginal probability of the evidence.

  • P(Ai∣B)P(A_i|B) represents the revised posterior probability.

Medical Testing and the Base-Rate Fallacy

Consider a rare disease affecting 1%1\% of the population (P(S)=0.01P(S) = 0.01, P(H)=0.99P(H) = 0.99, where S=SickS = \text{Sick} and H=HealthyH = \text{Healthy}). A diagnostic test has a 90%90\% accuracy rate:

  • True Positive Rate: P(+∣S)=0.90P(+|S) = 0.90

  • False Negative Rate: P(−∣S)=0.10P(-|S) = 0.10

  • True Negative Rate: P(−∣H)=0.90P(-|H) = 0.90

  • False Positive Rate: P(+∣H)=0.10P(+|H) = 0.10

When a patient tests positive (++ ), calculating the probability that the patient actually has the disease requires Bayes' Theorem:

Probability tree for medical testing with 10,000 patients

Across a hypothetical cohort of 10,00010,000 individuals:

  1. Base Rate Division: 100 sick people100\,\text{sick people} (1%×10,0001\%\times 10,000) and 9,900 healthy people9,900\,\text{healthy people} (99%×10,00099\%\times 10,000).

  2. True Positives: 100×0.90=90 positive tests100 \times 0.90 = 90\,\text{positive tests}.

  3. False Positives: 9,900×0.10=990 positive tests9,900 \times 0.10 = 990\,\text{positive tests}.

  4. Total Positives: 90+990=1,080 positive tests90 + 990 = 1,080\,\text{positive tests}.

The posterior probability that a person with a positive test is actually sick is:

P(S∣+)=P(S)P(+∣S)P(S)P(+∣S)+P(H)P(+∣H)=0.01(0.90)0.01(0.90)+0.99(0.10)=0.00900.0090+0.0990=0.00900.1080=901080≈0.0833=8.33%P(S|+) = \frac{P(S)P(+|S)}{P(S)P(+|S) + P(H)P(+|H)} = \frac{0.01(0.90)}{0.01(0.90) + 0.99(0.10)} = \frac{0.0090}{0.0090 + 0.0990} = \frac{0.0090}{0.1080} = \frac{90}{1080} \approx 0.0833 = 8.33\%

Despite a 90%90\% test accuracy, the low base rate (1%1\%) causes false positives (990990) to outnumber true positives (9090), resulting in an 8.33%8.33\% posterior probability of infection.

Industrial Quality Control Application: Supplier Parts

A manufacturing firm purchases parts from two suppliers:

  • Supplier 1 (A1A_1): Supplies 65%65\% of parts (P(A1)=0.65P(A_1) = 0.65). Historical quality: 98%98\% good (P(G∣A1)=0.98P(G|A_1) = 0.98), 2%2\% bad (P(B∣A1)=0.02P(B|A_1) = 0.02).

  • Supplier 2 (A2A_2): Supplies 35%35\% of parts (P(A2)=0.35P(A_2) = 0.35). Historical quality: 95%95\% good (P(G∣A2)=0.95P(G|A_2) = 0.95), 5%5\% bad (P(B∣A2)=0.05P(B|A_2) = 0.05).

Bayes Theorem probability tree for supplier parts quality

A machine operator discovers a defective part (BB ). The total probability of receiving a defective part is:

P(B)=P(A1∩B)+P(A2∩B)=(0.65)(0.02)+(0.35)(0.05)=0.0130+0.0175=0.0305P(B) = P(A_1 \cap B) + P(A_2 \cap B) = (0.65)(0.02) + (0.35)(0.05) = 0.0130 + 0.0175 = 0.0305

The posterior probability that the defective part came from Supplier 1 is:

P(A1∣B)=0.01300.0305≈0.4262=42.62%P(A_1|B) = \frac{0.0130}{0.0305} \approx 0.4262 = 42.62\%

The posterior probability that the defective part came from Supplier 2 is:

P(A2∣B)=0.01750.0305≈0.5738=57.38%P(A_2|B) = \frac{0.0175}{0.0305} \approx 0.5738 = 57.38\%

Although Supplier 1 provides the majority of parts (65%65\%), a defective part is more likely to have originated from Supplier 2 (57.38%57.38\%) due to Supplier 2's higher defect rate (5%5\% vs. 2%2\%).

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., 0,1,2,…0, 1, 2, \dots).

  • 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 (xx)

Variable Type

Possible Values

Flip a coin

Face of coin showing

Discrete

11 if heads; 00 if tails

Roll a die

Number of dots showing

Discrete

1,2,3,4,5,61, 2, 3, 4, 5, 6

Contact five customers

Number of purchasing customers

Discrete

0,1,2,3,4,50, 1, 2, 3, 4, 5

Operate clinic for one day

Number of patient arrivals

Discrete

0,1,2,3,…0, 1, 2, 3, \dots

Product selection test

Choice among two products

Discrete

00 if none; 11 if Product A; 22 if Product B

Customer web visit

Time spent on page (minutes)

Continuous

x≥0x \ge 0

Can filling line

Ounces filled (max capacity 12.1 oz12.1\,\text{oz})

Continuous

0≤x≤12.10 \le x \le 12.1

Chemical reaction test

Reaction temperature (∘F^\circ\text{F})

Continuous

150≤x≤212150 \le x \le 212

Stock market investment

Value of \$10,000 investment after one year

Continuous

x≥0x \ge 0

Mathematical Properties of Discrete Distributions

A discrete probability distribution is defined by a probability mass function (PMF), denoted by f(x)=P(X=x)f(x) = P(X = x). Any valid discrete PMF must satisfy two conditions:

f(x)≥0f(x) \ge 0

∑f(x)=1\sum f(x) = 1

Expected Value (μ\mu

) The expected value measures the central location of the random variable as a probability-weighted average:

E(x)=μ=∑xf(x)E(x) = \mu = \sum x f(x)

Variance (σ2\sigma^2

) and Standard Deviation (σ\sigma ) Variance measures dispersion around the mean as the probability-weighted average of squared deviations:

Var(x)=σ2=∑(x−μ)2f(x)\text{Var}(x) = \sigma^2 = \sum (x - \mu)^2 f(x)

σ=σ2\sigma = \sqrt{\sigma^2}

Empirical Custom Discrete Distributions: Mortgage Payment Frequency

A custom discrete distribution was developed from a sample of 300300 residential mortgage customers:

  • 45 customers45\,\text{customers} pay quarterly (x=4x = 4), with relative frequency f(4)=45300=0.15f(4) = \frac{45}{300} = 0.15

  • 180 customers180\,\text{customers} pay monthly (x=12x = 12), with relative frequency f(12)=180300=0.60f(12) = \frac{180}{300} = 0.60

  • 75 customers75\,\text{customers} pay bi-monthly (x=24x = 24), with relative frequency f(24)=75300=0.25f(24) = \frac{75}{300} = 0.25

Computation of Expected Value and Variance

xx

f(x)f(x)

xf(x)x f(x)

x−μx - \mu

(x−μ)2(x - \mu)^2

(x−μ)2f(x)(x - \mu)^2 f(x)

44

0.150.15

0.600.60

4−13.8=−9.84 - 13.8 = -9.8

96.0496.04

96.04×0.15=14.40696.04 \times 0.15 = 14.406 (or 15.60615.606)

1212

0.600.60

7.207.20

12−13.8=−1.812 - 13.8 = -1.8

3.243.24

3.24×0.60=1.9443.24 \times 0.60 = 1.944 (or 2.9042.904)

2424

0.250.25

6.006.00

24−13.8=10.224 - 13.8 = 10.2

104.04104.04

104.04×0.25=26.010104.04 \times 0.25 = 26.010 (or 24.01024.010)

Total

1.001.00

E(x)=13.80E(x) = 13.80



Var(x)=42.360\text{Var}(x) = 42.360

σ=42.360≈6.508\sigma = \sqrt{42.360} \approx 6.508

In Excel:

  • Expected Value: =SUMPRODUCT(A2:A4, B2:B4) yields 13.800

  • Variance: =SUMPRODUCT(B2:B4, C2:C4) yields 42.360

  • Standard Deviation: =SQRT(B7) yields 6.508

Standard Discrete Probability Distributions

Discrete Uniform Distribution

When a random variable assumes nn finite outcomes with equal likelihood:

f(x)=1nf(x) = \frac{1}{n}

For a standard six-sided die, n=6n = 6, so f(x)=16f(x) = \frac{1}{6} for x∈{1,2,3,4,5,6}x \in \{1, 2, 3, 4, 5, 6\}.

Bernoulli Distribution

Models a single trial with two outcomes (Success = 11, Failure = 00):

f(x)={pif x=11−pif x=0f(x) = \begin{cases} p & \text{if } x = 1 \\ 1 - p & \text{if } x = 0 \end{cases}

Binomial Probability Distribution

Models the number of successes (xx) observed across nn independent and identical Bernoulli trials, each with constant success probability pp:

f(x)=(nx)px(1−p)n−x=n!x!(n−x)!px(1−p)n−xf(x) = \binom{n}{x} p^x (1-p)^{n-x} = \frac{n!}{x!(n-x)!} p^x (1-p)^{n-x}

  • Mean: E(x)=npE(x) = np

  • Variance: Var(x)=np(1−p)\text{Var}(x) = np(1-p)

  • Standard Deviation: σ=np(1−p)\sigma = \sqrt{np(1-p)}

  • Application (Martin's Targeted Email Campaign): An online retailer sends promotional emails to n=3 customersn = 3\,\text{customers}. The historical conversion rate is p=0.30p = 0.30 (1−p=0.701 - p = 0.70):

f(0)=3!0!3!(0.30)0(0.70)3=1(1)(0.343)=0.343f(0) = \frac{3!}{0!3!} (0.30)^0 (0.70)^3 = 1(1)(0.343) = 0.343

f(1)=3!1!2!(0.30)1(0.70)2=3(0.30)(0.49)=0.441f(1) = \frac{3!}{1!2!} (0.30)^1 (0.70)^2 = 3(0.30)(0.49) = 0.441

f(2)=3!2!1!(0.30)2(0.70)1=3(0.09)(0.70)=0.189f(2) = \frac{3!}{2!1!} (0.30)^2 (0.70)^1 = 3(0.09)(0.70) = 0.189

f(3)=3!3!0!(0.30)3(0.70)0=1(0.027)(1)=0.027f(3) = \frac{3!}{3!0!} (0.30)^3 (0.70)^0 = 1(0.027)(1) = 0.027

∑f(x)=0.343+0.441+0.189+0.027=1.000\sum f(x) = 0.343 + 0.441 + 0.189 + 0.027 = 1.000

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 (xx) of an event over a specified continuous interval of time or space under two conditions:

  1. The probability of an occurrence is proportional to the length of the interval and identical for any two intervals of equal length.

  2. The occurrence or nonoccurrence in any interval is independent of occurrences in any other interval.

f(x)=μxe−μx!f(x) = \frac{\mu^x e^{-\mu}}{x!}

Where μ\mu is the mean number of occurrences over the specified interval and e≈2.71828e \approx 2.71828.

  • Mean: E(x)=μE(x) = \mu

  • Variance: Var(x)=μ\text{Var}(x) = \mu

  • Standard Deviation: σ=μ\sigma = \sqrt{\mu}

  • Application (Hospital Emergency Room): Patients arrive at an emergency room on weekend mornings at an average rate of μ=10 arrivals\mu = 10\,\text{arrivals} per 15-minute interval. The probability of observing exactly x=5 arrivalsx = 5\,\text{arrivals} in a 15-minute window is:

f(5)=105e−105!=100,000×0.0000454120≈0.0378=3.78%f(5) = \frac{10^5 e^{-10}}{5!} = \frac{100,000 \times 0.0000454}{120} \approx 0.0378 = 3.78\%

To find the probability of x=1 arrivalx = 1\,\text{arrival} over a 3-minute interval, scale the arrival rate proportionally:

μ=10×(315)=2.0 arrivals\mu = 10 \times \left(\frac{3}{15}\right) = 2.0\,\text{arrivals}

f(1)=21e−21!=2×0.135341≈0.2707=27.07%f(1) = \frac{2^1 e^{-2}}{1!} = \frac{2 \times 0.13534}{1} \approx 0.2707 = 27.07\%

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 (P(X=c)=0P(X = c) = 0). Probabilities are defined as areas under a continuous curve called the probability density function (PDF), denoted by f(x)f(x), over a specified interval:

P(a≤x≤b)=∫abf(x) dxP(a \le x \le b) = \int_a^b f(x)\,dx

Continuous Uniform Distribution

A continuous random variable is uniformly distributed over an interval [a,b][a, b] when probability is directly proportional to interval length:

f(x)={1b−afor a≤x≤b0elsewheref(x) = \begin{cases} \frac{1}{b - a} & \text{for } a \le x \le b \\ 0 & \text{elsewhere} \end{cases}

Cumulative probability for any value x0∈[a,b]x_0 \in [a, b] is:

P(x≤x0)=x0−ab−aP(x \le x_0) = \frac{x_0 - a}{b - a}

  • Application (Flight Time Variance): A commercial flight duration varies uniformly between 120 minutes120\,\text{minutes} and 140 minutes140\,\text{minutes} (a=120a = 120, b=140b = 140, b−a=20b - a = 20). The density function is f(x)=120f(x) = \frac{1}{20} for 120≤x≤140120 \le x \le 140. The probability that a flight lands between 120120 and 130 minutes130\,\text{minutes} is:

P(120≤x≤130)=120×(130−120)=1020=0.50=50%P(120 \le x \le 130) = \frac{1}{20} \times (130 - 120) = \frac{10}{20} = 0.50 = 50\%

Triangular Probability Distribution

The triangular distribution is used when limited historical data exists, requiring subjective estimates for the minimum (aa ), maximum (bb ), and mode/most likely value (mm ):

P(x≤x0)=(x0−a)2(b−a)(m−a)for a≤x0≤mP(x \le x_0) = \frac{(x_0 - a)^2}{(b - a)(m - a)} \quad \text{for } a \le x_0 \le m

P(x≥x0)=(b−x0)2(b−a)(b−m)for m≤x0≤bP(x \ge x_0) = \frac{(b - x_0)^2}{(b - a)(b - m)} \quad \text{for } m \le x_0 \le b

  • Application (Construction Project Assessment): Project completion time is estimated with a=6 monthsa = 6\,\text{months}, b=24 monthsb = 24\,\text{months}, and mode m=12 monthsm = 12\,\text{months}. To compute the probability that assessment takes between 1010 and 18 months18\,\text{months}:

P(x≤10)=(10−6)2(24−6)(12−6)=4218×6=16108≈0.1481P(x \le 10) = \frac{(10 - 6)^2}{(24 - 6)(12 - 6)} = \frac{4^2}{18 \times 6} = \frac{16}{108} \approx 0.1481

P(x≥18)=(24−18)2(24−6)(24−12)=6218×12=36216=0.1667P(x \ge 18) = \frac{(24 - 18)^2}{(24 - 6)(24 - 12)} = \frac{6^2}{18 \times 12} = \frac{36}{216} = 0.1667

P(x≤18)=1−P(x≥18)=1−0.1667=0.8333P(x \le 18) = 1 - P(x \ge 18) = 1 - 0.1667 = 0.8333

P(10≤x≤18)=P(x≤18)−P(x≤10)=0.8333−0.1481=0.6852(exact formulation 0.6111)P(10 \le x \le 18) = P(x \le 18) - P(x \le 10) = 0.8333 - 0.1481 = 0.6852 \quad (\text{exact formulation } 0.6111)

Normal Probability Distribution

The normal distribution is a symmetric, bell-shaped continuous distribution defined by its mean μ\mu and standard deviation σ\sigma:

f(x)=1σ2πe−12(x−μσ)2f(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x - \mu}{\sigma}\right)^2}

Normal distribution probability density curve
Key Geometric and Mathematical Properties
  • The highest point of the density function occurs at the mean μ\mu, which is simultaneously the median and the mode.

  • The distribution is symmetric around μ\mu, with area 0.500.50 to the left and 0.500.50 to the right.

  • The parameter μ\mu shifts the distribution horizontally along the real axis without changing its shape.

  • The parameter σ\sigma dictates dispersion. Larger values of σ\sigma create flatter, wider curves; smaller values create taller, narrower curves.

  • Empirical Rule Intervals:

    • μ±1σ\mu \pm 1\sigma contains approximately 68.3%68.3\% of the total probability.

    • μ±2σ\mu \pm 2\sigma contains approximately 95.4%95.4\% of the total probability.

    • μ±3σ\mu \pm 3\sigma contains approximately 99.7%99.7\% of the total probability.

Application: Grear Aircraft Engines

Grear Aircraft Engines manufactures an aircraft turbine with operational lifetime normally distributed with mean μ=36,500 hours\mu = 36,500\,\text{hours} and standard deviation σ=5,000 hours\sigma = 5,000\,\text{hours}.

Normal curve for Grear engine lifetime exceeding 40,000 flight hours
  1. Exceeding 40,000 Flight Hours: In Excel, the cumulative probability up to 40,00040,000 is calculated via =NORM.DIST(40000, 36500, 5000, TRUE) = 0.7580. The probability of exceeding 40,000 hours40,000\,\text{hours} is:

P(x≥40,000)=1−P(x≤40,000)=1−0.7580=0.2420=24.20%P(x \ge 40,000) = 1 - P(x \le 40,000) = 1 - 0.7580 = 0.2420 = 24.20\%

  1. Determining Guarantee Threshold for 10% Replacement: Grear wants to establish an engine lifetime guarantee x∗x^* such that no more than 10%10\% of units fail prematurely (P(x≤x∗)=0.10P(x \le x^*) = 0.10).

Normal distribution lower 10% guarantee threshold

In Excel, the inverse normal function calculates this threshold:

x∗=NORM.INV(0.10,36500,5000)=30,092.24 hours≈30,000 hoursx^* = \text{NORM.INV}(0.10, 36500, 5000) = 30,092.24\,\text{hours} \approx 30,000\,\text{hours}

Exponential Probability Distribution

The exponential distribution models continuous time elapsed or distance between occurrences of random Poisson events:

f(x)=1μe−xμfor x≥0f(x) = \frac{1}{\mu} e^{-\frac{x}{\mu}} \quad \text{for } x \ge 0

Where μ\mu is the mean interval between events. The cumulative probability is:

P(x≤x0)=1−e−x0μP(x \le x_0) = 1 - e^{-\frac{x_0}{\mu}}

  • Application (Commercial Loan Defaults): A commercial lending institution observes that the time between corporate client defaults follows an exponential distribution with mean μ=15 months\mu = 15\,\text{months}. To compute the probability that the next default occurs between 66 and 18 months18\,\text{months}:

P(x≤18)=1−e−1815=1−e−1.2=1−0.3012=0.6988P(x \le 18) = 1 - e^{-\frac{18}{15}} = 1 - e^{-1.2} = 1 - 0.3012 = 0.6988

P(x≤6)=1−e−615=1−e−0.4=1−0.6703=0.3297P(x \le 6) = 1 - e^{-\frac{6}{15}} = 1 - e^{-0.4} = 1 - 0.6703 = 0.3297

P(6≤x≤18)=P(x≤18)−P(x≤6)=0.6988−0.3297=0.3691=36.91%P(6 \le x \le 18) = P(x \le 18) - P(x \le 6) = 0.6988 - 0.3297 = 0.3691 = 36.91\%

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 nn

Binomial (or Bernoulli for n=1n=1)

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 100,000 one-pound bags100,000\,\text{one-pound bags} (16 ounces16\,\text{ounces}) of coffee daily. Weighing every bag disrupts operations. A quality control worker randomly samples 50 bags50\,\text{bags}, finding a sample mean weight of xˉ=15.8 ounces\bar{x} = 15.8\,\text{ounces} and sample standard deviation s=0.20 ouncess = 0.20\,\text{ounces}.

The plant manager must resolve whether the filler heads are uncalibrated across all 100,000 bags100,000\,\text{bags} (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 NN, a simple random sample of size nn 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 nn 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:

    1. Each element drawn originates from the same underlying population.

    2. Each element is selected independently to prevent selection bias.

Point Estimation: Electronic Associates, Inc. (EAI)

Electronic Associates, Inc. (EAI) maintains a personnel registry of N=2,500 managersN = 2,500\,\text{managers}. The true population parameters are:

  • Population mean annual salary: μ=$71,800\mu = \$71,800

  • Population standard deviation: σ=$4,000\sigma = \$4,000

  • Population proportion completing management training: p=1,5002,500=0.60p = \frac{1,500}{2,500} = 0.60

An analyst draws a simple random sample of n=30 managersn = 30\,\text{managers}:

  • Sample Mean (Point Estimator of μ\mu ):

xˉ=∑xin=$2,154,42030=$71,814\bar{x} = \frac{\sum x_i}{n} = \frac{\$2,154,420}{30} = \$71,814

  • Sample Standard Deviation (Point Estimator of σ\sigma ):

s=∑(xi−xˉ)2n−1=325,009,26029=$3,348s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}} = \sqrt{\frac{325,009,260}{29}} = \$3,348

  • Sample Proportion (Point Estimator of pp ): Nineteen managers completed training:

pˉ=xn=1930≈0.6333=63.33%\bar{p} = \frac{x}{n} = \frac{19}{30} \approx 0.6333 = 63.33\%

Sampling Distribution of the Sample Mean (xˉ\bar{x})

The sampling distribution of xˉ\bar{x} is the probability distribution of all possible sample means that could be observed from repeated random sampling.

Expected Value

xˉ\bar{x} is an unbiased estimator of μ\mu because its expected value equals the population parameter:

E(xˉ)=μE(\bar{x}) = \mu

Standard Error of the Mean (SEM)

The standard deviation of the sampling distribution is the standard error of the mean, denoted by σxˉ\sigma_{\bar{x}}. For a finite population of size NN:

σxˉ=N−nN−1(σn)\sigma_{\bar{x}} = \sqrt{\frac{N - n}{N - 1}} \left(\frac{\sigma}{\sqrt{n}}\right)

Where N−nN−1\sqrt{\frac{N - n}{N - 1}} is the finite population correction factor. When the sample represents less than 5%5\% of the population (nN<0.05\frac{n}{N} < 0.05), this factor approaches 1.01.0 and is omitted, simplifying to:

σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}

When σ\sigma is unknown, the sample standard deviation ss is substituted, providing the estimated standard error of the mean:

sxˉ=sns_{\bar{x}} = \frac{s}{\sqrt{n}}

Standard Deviation versus Standard Error: Standard deviation (σ\sigma or ss) measures the spread of individual observations within a single sample. Standard error (σxˉ\sigma_{\bar{x}} or sxˉs_{\bar{x}}) measures the dispersion of sample means across repeated samples.

The Central Limit Theorem (CLT)

When the population distribution is normal, the sampling distribution of xˉ\bar{x} is normal for any sample size nn.

When the population distribution is non-normal, the Central Limit Theorem establishes that as sample size nn increases, the sampling distribution of xˉ\bar{x} approaches a normal distribution, regardless of the underlying population shape.

Illustration of Central Limit Theorem across Uniform, Rabbit-eared, and Exponential distributions
  • For most populations, n≥30n \ge 30 ensures adequate normality.

  • For highly skewed distributions or data with extreme outliers, n≥50n \ge 50 is recommended.

Sample Size and Standard Error in the EAI Example
  • With n=30n = 30:

\sigma_{\bar{x}} = \frac{\4,000}{\sqrt{30}} = \730.30730.30

  • With n=100n = 100:

\sigma_{\bar{x}} = \frac{\4,000}{\sqrt{100}} = \400.00400.00

Increasing the sample size narrows the sampling distribution, clustering sample estimates closer to the true population parameter.

Sampling Distribution of the Sample Proportion (pˉ\bar{p})

  • Expected Value: pˉ\bar{p} is an unbiased estimator of pp:

E(pˉ)=pE(\bar{p}) = p

  • Standard Error of the Proportion (σpˉ\sigma_{\bar{p}} ):

σpˉ=p(1−p)n\sigma_{\bar{p}} = \sqrt{\frac{p(1 - p)}{n}}

  • Estimated Standard Error (spˉs_{\bar{p}} ):

spˉ=pˉ(1−pˉ)ns_{\bar{p}} = \sqrt{\frac{\bar{p}(1 - \bar{p})}{n}}

  • Normality Criteria: The sampling distribution of pˉ\bar{p} is well-approximated by a normal curve whenever:

np≥5andn(1−p)≥5np \ge 5 \quad \text{and} \quad n(1 - p) \ge 5

For EAI with n=30n = 30 and p=0.60p = 0.60:

np=30(0.60)=18≥5andn(1−p)=30(0.40)=12≥5np = 30(0.60) = 18 \ge 5 \quad \text{and} \quad n(1 - p) = 30(0.40) = 12 \ge 5

σpˉ=0.60(0.40)30=0.2430≈0.0894\sigma_{\bar{p}} = \sqrt{\frac{0.60(0.40)}{30}} = \sqrt{\frac{0.24}{30}} \approx 0.0894

Increasing the sample size to n=100n = 100 reduces the standard error to:

σpˉ=0.60(0.40)100=0.0024≈0.0490\sigma_{\bar{p}} = \sqrt{\frac{0.60(0.40)}{100}} = \sqrt{0.0024} \approx 0.0490

Confidence Interval Estimation

An interval estimate provides a range of plausible values for a population parameter, constructed as:

Point Estimate±Margin of Error\text{Point Estimate} \pm \text{Margin of Error}

The confidence level (1−α1 - \alpha) represents the proportion of constructed intervals that would contain the true population parameter under repeated sampling. The level of significance, α\alpha, is the probability that an interval fails to capture the parameter.

Interval Estimation of the Population Mean (σ\sigma Unknown)

When the population standard deviation σ\sigma is unknown, the sample standard deviation ss is used, introducing additional sampling variability. This requires using the Student's tt distribution rather than the standard normal distribution.

Family of Student's t distributions compared to standard normal curve
  • The tt distribution is symmetric and bell-shaped, but has heavier tails than the standard normal distribution.

  • Its shape depends on the degrees of freedom (df=n−1\text{df} = n - 1).

  • As degrees of freedom increase, the tt distribution converges to the standard normal distribution.

The confidence interval for a population mean is given by:

xˉ±tα/2(sn)\bar{x} \pm t_{\alpha/2} \left(\frac{s}{\sqrt{n}}\right)

EAI Case Construction

For EAI (n=30n = 30, xˉ=$71,814\bar{x} = \$71,814, s=$3,348s = \$3,348, df=29\text{df} = 29):

  • For a 90%90\% confidence level (α=0.10\alpha = 0.10, α/2=0.05\alpha/2 = 0.05):

    • Excel: =T.INV.2T(0.10, 29) yields t0.05,29=1.699t_{0.05, 29} = 1.699

Margin of Error=1.699×(334830)=1.699×611.28≈$1,038.56\text{Margin of Error} = 1.699 \times \left(\frac{3348}{\sqrt{30}}\right) = 1.699 \times 611.28 \approx \$1,038.56

  • For a 95%95\% confidence level (α=0.05\alpha = 0.05, α/2=0.025\alpha/2 = 0.025):

    • Excel: =T.INV.2T(0.05, 29) yields t0.025,29=2.045t_{0.025, 29} = 2.045

Margin of Error=2.045×611.28≈$1,250.07\text{Margin of Error} = 2.045 \times 611.28 \approx \$1,250.07

\text{CI} = \71,814 \pm \1,250→[$70,564,$73,064]1,250 \rightarrow [\$70,564, \$73,064]

We are 95%95\% 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 pp is:

pˉ±zα/2pˉ(1−pˉ)n\bar{p} \pm z_{\alpha/2} \sqrt{\frac{\bar{p}(1 - \bar{p})}{n}}

  • Application (Golf Course Survey): A survey of n=900 female golfersn = 900\,\text{female golfers} finds that 396396 are satisfied with tee-time availability (pˉ=396900=0.44\bar{p} = \frac{396}{900} = 0.44). At a 95%95\% confidence level (z0.025=1.96z_{0.025} = 1.96):

Margin of Error=1.96×0.44(0.56)900=1.96×0.2464900=1.96×0.016546≈0.0324\text{Margin of Error} = 1.96 \times \sqrt{\frac{0.44(0.56)}{900}} = 1.96 \times \sqrt{\frac{0.2464}{900}} = 1.96 \times 0.016546 \approx 0.0324

CI=0.44±0.0324→[0.4076,0.4724]=[40.76%,47.24%]\text{CI} = 0.44 \pm 0.0324 \rightarrow [0.4076, 0.4724] = [40.76\%, 47.24\%]

Hypothesis Testing Methodologies

Hypothesis testing uses sample data to determine whether to reject a specific claim regarding a population parameter.

  • Null Hypothesis (H0H_0 ): A tentative conjecture about a parameter, assumed true until sample evidence indicates otherwise. Equality (=,≤,≥=, \le, \ge) is always placed in the null hypothesis.

  • Alternative Hypothesis (HaH_a ): The opposite of the null hypothesis; often represents the research hypothesis the analyst seeks to support.

Standard Hypothesis Testing Structures

Test Orientation

Null Hypothesis (H0H_0)

Alternative Hypothesis (HaH_a)

Rejection Region Location

Lower-Tail Test

H0:μ≥μ0H_0: \mu \ge \mu_0 (or p≥p0p \ge p_0)

Ha:μ<μ0H_a: \mu < \mu_0 (or p<p0p < p_0)

Left/lower tail of sampling distribution

Upper-Tail Test

H0:μ≤μ0H_0: \mu \le \mu_0 (or p≤p0p \le p_0)

Ha:μ>μ0H_a: \mu > \mu_0 (or p>p0p > p_0)

Right/upper tail of sampling distribution

Two-Tailed Test

H0:μ=μ0H_0: \mu = \mu_0 (or p=p0p = p_0)

Ha:μ≠μ0H_a: \mu \neq \mu_0 (or p≠p0p \neq p_0)

Both tails of sampling distribution

Decision Errors: Type I versus Type II

  • Type I Error: Rejecting the null hypothesis H0H_0 when it is actually true. The probability of committing a Type I error equals α\alpha, the significance level of the test.

  • Type II Error: Failing to reject (or accepting) the null hypothesis H0H_0 when it is actually false. The probability of committing a Type II error is denoted by β\beta.

Action Taken

H0H_0 is Actually True

HaH_a is Actually True

Do Not Reject H0H_0

Correct Decision (Probability 1−α1 - \alpha)

Type II Error (Probability β\beta)

Reject H0H_0

Type I Error (Probability α\alpha)

Correct Decision (Probability 1−β1 - \beta, Power)

Application (Fuel Injection System): Testing a new fuel injection unit hypothesized to exceed 24 mpg24\,\text{mpg} (H0:μ≤24H_0: \mu \le 24, Ha:μ>24H_a: \mu > 24):

  • Type I error: Concluding the system improves mileage (μ>24\mu > 24) when it does not.

  • Type II error: Concluding the system does not improve mileage (μ≤24\mu \le 24) when it actually does.

Hypothesis Testing for a Population Mean

The test statistic follows a tt distribution with df=n−1\text{df} = n - 1:

t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}

Lower-Tail Test: Hilltop Coffee Fill Weight

The FTC evaluates Hilltop Coffee's claim that its large cans contain at least 3.0 pounds3.0\,\text{pounds} of coffee (H0:μ≥3.0H_0: \mu \ge 3.0, Ha:μ<3.0H_a: \mu < 3.0). The FTC tests at α=0.01\alpha = 0.01.

A random sample of n=36 cansn = 36\,\text{cans} yields sample mean xˉ=2.92 lbs\bar{x} = 2.92\,\text{lbs} and standard deviation s=0.17 lbss = 0.17\,\text{lbs}:

sxˉ=0.1736=0.176≈0.02833s_{\bar{x}} = \frac{0.17}{\sqrt{36}} = \frac{0.17}{6} \approx 0.02833

t=2.92−3.000.02833=−0.080.02833≈−2.824t = \frac{2.92 - 3.00}{0.02833} = \frac{-0.08}{0.02833} \approx -2.824

Lower tail hypothesis test distribution with t = -2.824 and p-value = 0.0039

In Excel, the lower-tail pp-value is =T.DIST(-2.824, 35, TRUE) = 0.0039.

Decision Rule: Reject H0H_0 if p-value≤αp\text{-value} \le \alpha.

Because p-value=0.0039≤α=0.01p\text{-value} = 0.0039 \le \alpha = 0.01, H0H_0 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 40 units40\,\text{units} (H0:μ=40H_0: \mu = 40, Ha:μ≠40H_a: \mu \neq 40) at α=0.05\alpha = 0.05.

A survey of n=25 retailersn = 25\,\text{retailers} yields xˉ=37.4 units\bar{x} = 37.4\,\text{units} and s=11.79 unitss = 11.79\,\text{units}:

t=37.4−4011.79/25=−2.62.358≈−1.103t = \frac{37.4 - 40}{11.79 / \sqrt{25}} = \frac{-2.6}{2.358} \approx -1.103

Two-tailed hypothesis test distribution with t = -1.10 and two-tailed p-value = 0.2812

The one-tail area is P(t≤−1.10)=0.1406P(t \le -1.10) = 0.1406. For a two-tailed test, double this value:

p-value=2×0.1406=0.2812p\text{-value} = 2 \times 0.1406 = 0.2812

Because p-value=0.2812>α=0.05p\text{-value} = 0.2812 > \alpha = 0.05, H0H_0 cannot be rejected. There is insufficient evidence to conclude that mean demand differs from 40 units.

Hypothesis Testing for a Population Proportion

When np0≥5n p_0 \ge 5 and n(1−p0)≥5n(1 - p_0) \ge 5, the test statistic follows a standard normal distribution:

z=pˉ−p0p0(1−p0)nz = \frac{\bar{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}

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 20%20\% (H0:p≤0.20H_0: p \le 0.20, Ha:p>0.20H_a: p > 0.20) at α=0.05\alpha = 0.05.

A sample of n=400 playersn = 400\,\text{players} includes 100 women100\,\text{women} (pˉ=100400=0.25\bar{p} = \frac{100}{400} = 0.25):

np0=400(0.20)=80≥5andn(1−p0)=400(0.80)=320≥5n p_0 = 400(0.20) = 80 \ge 5 \quad \text{and} \quad n(1 - p_0) = 400(0.80) = 320 \ge 5

z=0.25−0.200.20(0.80)400=0.050.16400=0.050.02=2.50z = \frac{0.25 - 0.20}{\sqrt{\frac{0.20(0.80)}{400}}} = \frac{0.05}{\sqrt{\frac{0.16}{400}}} = \frac{0.05}{0.02} = 2.50

One-tailed upper tail test with z = 2.50 and p-value = 0.0062

In Excel, the upper-tail pp-value is =1 - NORM.S.DIST(2.50, TRUE) = 1 - 0.9938 = 0.0062.

Because p-value=0.0062≤α=0.05p\text{-value} = 0.0062 \le \alpha = 0.05, H0H_0 is rejected. There is statistically significant evidence that the proportion of female golfers has increased.

Methodological Summary for Computing pp-Values

Test Type

Alternative Hypothesis

Relevant Tail Area

Excel Formula (tt-Distribution)

Excel Formula (zz-Distribution)

Lower Tail

Contains <<

Cumulative area up to test statistic

=T.DIST(t, n-1, TRUE)

=NORM.S.DIST(z, TRUE)

Upper Tail

Contains >>

Cumulative area to the right of test statistic

=1 - T.DIST(t, n-1, TRUE)

=1 - NORM.S.DIST(z, TRUE)

Two-Tailed

Contains ≠\neq

Sum of both tail areas

=2 * MIN(T.DIST(t, n-1, TRUE), 1 - T.DIST(t, n-1, TRUE))

=2 * MIN(NORM.S.DIST(z, TRUE), 1 - NORM.S.DIST(z, TRUE))

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 (∝1n\propto \frac{1}{\sqrt{n}}).

  • 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 (n=3,000n = 3,000 or more), standard errors become extremely small. As a result, trivial real-world differences between sample statistics and hypothesized values become statistically significant (p<0.05p < 0.05). Analysts must distinguish between statistical significance (mathematical rejection of H0H_0) 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 yy and one or more independent (predictor) variables xx.

The Simple Linear Regression Model

The theoretical population model is formulated as:

y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon

Where:

  • β0\beta_0 is the population yy-intercept.

  • β1\beta_1 is the population slope coefficient.

  • ϵ\epsilon is the unobserved random error term capturing variability in yy not explained by the linear relationship with xx.

The estimated simple linear regression equation developed from sample data is:

y^=b0+b1x\hat{y} = b_0 + b_1 x

Where b0b_0 and b1b_1 are sample point estimators of β0\beta_0 and β1\beta_1, and y^\hat{y} represents the predicted mean value of yy for a given xx.

Estimation process cycle in simple linear regression

Ordinary Least Squares (OLS) Method

The least squares method minimizes the sum of squared residuals (errors):

min⁡∑ei2=min⁡∑(yi−y^i)2=min⁡∑(yi−b0−b1xi)2\min \sum e_i^2 = \min \sum (y_i - \hat{y}_i)^2 = \min \sum (y_i - b_0 - b_1 x_i)^2

Where ei=yi−y^ie_i = y_i - \hat{y}_i represents the residual for the ithi^{\text{th}} observation.

Case Study: Butler Trucking Company

Butler Trucking Company seeks to estimate daily driver route times (yy, in hours) based on total miles traveled (xx). A random sample of n=10 assignmentsn = 10\,\text{assignments} is collected:

Fitted simple linear regression line with residual vectors for Butler Trucking

Running OLS produces the estimated regression equation:

y^=1.2739+0.0678x\hat{y} = 1.2739 + 0.0678 x

  • Slope (b1=0.0678b_1 = 0.0678 ): Each additional mile traveled increases expected travel time by 0.0678 hours0.0678\,\text{hours} (≈4.07 minutes\approx 4.07\,\text{minutes}/mile).

  • Intercept (b0=1.2739b_0 = 1.2739 ): A route of 0 miles0\,\text{miles} has a predicted baseline time of 1.2739 hours1.2739\,\text{hours} (≈76.4 minutes\approx 76.4\,\text{minutes}), representing fixed non-driving activities (pre-trip inspections, loading, driver logs).

  • Experimental Region and Extrapolation: The sampled routes range from 5050 to 100 miles100\,\text{miles}. Predictions outside this range represent extrapolation and are unreliable. Interpreting the intercept at x=0x = 0 is technically an extrapolation, but serves as an operational baseline.

OLS Residuals for Butler Trucking (n=10n = 10

)

Assignment ii

Miles (xix_i)

Travel Time (yiy_i)

Predicted Time (y^i\hat{y}_i)

Residual (ei=yi−y^ie_i = y_i - \hat{y}_i)

Squared Residual (ei2e_i^2)

1

100100

9.39.3

8.05398.0539

1.24611.2461

1.55281.5528

2

5050

4.84.8

4.66394.6639

0.13610.1361

0.01850.0185

3

100100

8.98.9

8.05398.0539

0.84610.8461

0.71590.7159

4

100100

6.56.5

8.05398.0539

−1.5539-1.5539

2.41462.4146

5

5050

4.24.2

4.66394.6639

−0.4639-0.4639

0.21520.2152

6

8080

6.26.2

6.69796.6979

−0.4979-0.4979

0.24790.2479

7

7575

7.47.4

6.35896.3589

1.04111.0411

1.08391.0839

8

6565

6.06.0

5.68095.6809

0.31910.3191

0.10180.1018

9

9090

7.67.6

7.37597.3759

0.22410.2241

0.05020.0502

10

9090

6.16.1

7.37597.3759

−1.2759-1.2759

1.62791.6279

Total




∑ei=0.0000\sum e_i = 0.0000

SSE=8.0288\text{SSE} = 8.0288

Partitioning Sums of Squares and Goodness of Fit

Total variation in the dependent variable is partitioned into explained and unexplained components:

SST=SSR+SSE\text{SST} = \text{SSR} + \text{SSE}

  • Total Sum of Squares (SST): Total variability around the sample mean (yˉ=67.010=6.70 hours\bar{y} = \frac{67.0}{10} = 6.70\,\text{hours}):

SST=∑(yi−yˉ)2=23.90\text{SST} = \sum (y_i - \bar{y})^2 = 23.90

  • Sum of Squares Due to Error (SSE): Residual variation left unexplained by the regression:

SSE=∑(yi−y^i)2=8.0288\text{SSE} = \sum (y_i - \hat{y}_i)^2 = 8.0288

  • Sum of Squares Due to Regression (SSR): Variation explained by the linear relationship with xx:

SSR=SST−SSE=23.90−8.0288=15.8712\text{SSR} = \text{SST} - \text{SSE} = 23.90 - 8.0288 = 15.8712

Coefficient of Determination (R2R^2

) The coefficient of determination measures the proportion of total variation in yy explained by the regression model:

R2=SSRSST=1−SSESST=1−8.028823.90=0.6641=66.41%R^2 = \frac{\text{SSR}}{\text{SST}} = 1 - \frac{\text{SSE}}{\text{SST}} = 1 - \frac{8.0288}{23.90} = 0.6641 = 66.41\%

Approximately 66.41%66.41\% of the variability in travel time is explained by the miles driven.

Benchmark Standards for R2R^2
  • Physical Sciences and Engineering (R2∈[0.80,0.99]R^2 \in [0.80, 0.99]): Governed by physical laws with low measurement noise. Values below 0.800.80 often indicate poor calibration or omitted physical variables.

  • Business, Economics, and Finance (R2∈[0.30,0.60]R^2 \in [0.30, 0.60]): Governed by market dynamics and human behavior. An R2R^2 around 0.400.40 is often practically useful and profitable.

  • Social Sciences and Psychology (R2∈[0.05,0.30]R^2 \in [0.05, 0.30]): Characterized by high behavioral variation. An R2R^2 around 0.150.15 can provide meaningful insight into broader trends.

Global Model Significance: The FF-Test

The FF-statistic tests whether the regression model explains a significant portion of variance compared to unexplained noise:

F=MSRMSE=SSR/pSSE/(n−p−1)=R2/p(1−R2)/(n−p−1)F = \frac{\text{MSR}}{\text{MSE}} = \frac{\text{SSR} / p}{\text{SSE} / (n - p - 1)} = \frac{R^2 / p}{(1 - R^2) / (n - p - 1)}

Where p=1p = 1 is the number of predictors and n=10n = 10. For Butler Trucking:

F=0.664071/1(1−0.664071)/(10−1−1)=0.6640710.335929/8=0.6640710.041991≈15.8145F = \frac{0.664071 / 1}{(1 - 0.664071) / (10 - 1 - 1)} = \frac{0.664071}{0.335929 / 8} = \frac{0.664071}{0.041991} \approx 15.8145

With df1=1\text{df}_1 = 1 and df2=8\text{df}_2 = 8, the resulting pp-value is 0.00410.0041. Because p=0.0041≤0.05p = 0.0041 \le 0.05, the overall model is statistically significant.

Confidence Intervals versus Prediction Intervals

  • Standard Error of the Estimate (ses_e ): The estimated standard deviation of the residuals:

se=SSEn−2=8.02888=1.0036≈1.0018 hourss_e = \sqrt{\frac{\text{SSE}}{n - 2}} = \sqrt{\frac{8.0288}{8}} = \sqrt{1.0036} \approx 1.0018\,\text{hours}

  • Confidence Interval (CI): Estimates the mean travel time for all routes of distance x∗x^*:

y^±tα/2se1n+(x∗−xˉ)2∑(xi−xˉ)2\hat{y} \pm t_{\alpha/2} s_e \sqrt{\frac{1}{n} + \frac{(x^* - \bar{x})^2}{\sum (x_i - \bar{x})^2}}

  • Prediction Interval (PI): Estimates the travel time for a single route of distance x∗x^*. The extra "+1+1" inside the square root accounts for the variance of an individual outcome around the mean:

y^±tα/2se1+1n+(x∗−xˉ)2∑(xi−xˉ)2\hat{y} \pm t_{\alpha/2} s_e \sqrt{1 + \frac{1}{n} + \frac{(x^* - \bar{x})^2}{\sum (x_i - \bar{x})^2}}

Example Calculation at x∗=70 milesx^* = 70\,\text{miles} (xˉ=80\bar{x} = 80, ∑(xi−xˉ)2=3450\sum (x_i - \bar{x})^2 = 3450, t0.025,8=2.306t_{0.025, 8} = 2.306):

y^=1.2739+0.0678(70)=6.02 hours\hat{y} = 1.2739 + 0.0678(70) = 6.02\,\text{hours}

  • 95% Confidence Interval:

CI=6.02±2.306(1.0018)110+(70−80)23450=6.02±2.310(0.359)=6.02±0.83→[5.19,6.85] hours\text{CI} = 6.02 \pm 2.306(1.0018)\sqrt{\frac{1}{10} + \frac{(70 - 80)^2}{3450}} = 6.02 \pm 2.310(0.359) = 6.02 \pm 0.83 \rightarrow [5.19, 6.85]\,\text{hours}

  • 95% Prediction Interval:

PI=6.02±2.306(1.0018)1+0.10+0.029=6.02±2.310(1.0625)=6.02±2.45→[3.57,8.47] hours\text{PI} = 6.02 \pm 2.306(1.0018)\sqrt{1 + 0.10 + 0.029} = 6.02 \pm 2.310(1.0625) = 6.02 \pm 2.45 \rightarrow [3.57, 8.47]\,\text{hours}

Multiple Linear Regression Modeling

Multiple linear regression expands the model to include qq independent variables:

y=β0+β1x1+β2x2+⋯+βqxq+ϵy = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \dots + \beta_q x_q + \epsilon

Each partial regression coefficient βj\beta_j represents the expected change in yy per unit increase in xjx_j, holding all other independent variables constant.

Butler Trucking Model with Mileage and Deliveries

Butler Trucking adds a second predictor: number of delivery stops (x2x_2).

y^=b0+b1x1+b2x2\hat{y} = b_0 + b_1 x_1 + b_2 x_2

Estimating this model across an expanded dataset (n=300n = 300) yields:

y^=0.1273+0.0672x1+0.6900x2\hat{y} = 0.1273 + 0.0672 x_1 + 0.6900 x_2

  • Miles (x1x_1 ): Holding deliveries constant, each additional mile adds 0.0672 hours0.0672\,\text{hours} (≈4.03 minutes\approx 4.03\,\text{minutes}).

  • Deliveries (x2x_2 ): Holding mileage constant, each additional delivery adds 0.6900 hours0.6900\,\text{hours} (≈41.4 minutes\approx 41.4\,\text{minutes}).

  • Goodness of Fit: R2=0.8173R^2 = 0.8173, showing that 81.73%81.73\% of the variability in travel time is explained by miles and deliveries combined.

3D regression response plane for travel time versus miles and deliveries
ANOVA and Regression Output (n=300n = 300

)

  • Regression Statistics: Multiple R=0.9041R = 0.9041, R2=0.8173R^2 = 0.8173, Adjusted R2=0.8161R^2 = 0.8161, Standard Error se=0.8300s_e = 0.8300.

  • ANOVA: Regression df=2\text{df} = 2, SS=915.516\text{SS} = 915.516, MS=457.758\text{MS} = 457.758, F=664.53F = 664.53, Significance F=2.24×10−110F = 2.24 \times 10^{-110}. Residual df=297\text{df} = 297, SS=204.587\text{SS} = 204.587, MS=0.6888\text{MS} = 0.6888. Total df=299\text{df} = 299, SS=1120.103\text{SS} = 1120.103.

  • Parameter Estimates:

    • Intercept: b0=0.1273b_0 = 0.1273, SE=0.2052\text{SE} = 0.2052, t=0.621t = 0.621, p=0.5354p = 0.5354.

    • Miles (x1x_1): b1=0.0672b_1 = 0.0672, SE=0.00245\text{SE} = 0.00245, t=27.37t = 27.37, p=3.54×10−83p = 3.54 \times 10^{-83}.

    • Deliveries (x2x_2): b2=0.6900b_2 = 0.6900, SE=0.02952\text{SE} = 0.02952, t=23.37t = 23.37, p=2.85×10−69p = 2.85 \times 10^{-69}.

Both predictors are statistically significant (p<0.001p < 0.001).

Regression Diagnostics and Inference Conditions

Valid statistical inference using OLS requires satisfying four key assumptions regarding the error term ϵ\epsilon:

Graphic showing the four conditions for valid inference
  1. Linearity: The relationship between predictors and the mean response is linear.

  2. Independence of Errors: The error terms ϵi\epsilon_i are independent. Autocorrelation (common in time-series data) violates this assumption.

  3. Normality of Errors: For any set of predictor values, the error term ϵ\epsilon is normally distributed with mean 00.

  4. Homoscedasticity (Constant Variance): The variance of the error term, σ2\sigma^2, is constant across all predicted values of yy.

Residual Plot Diagnostics

Four common error term violations shown in residual plots
  • 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 tt-statistics.

  • Individual predictors may appear nonsignificant (p>0.05p > 0.05) even when the overall model is highly significant (FF-test p<0.001p < 0.001).

  • 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 (x1x_1) and gasoline consumption (x2x_2) in the model. Because gas consumption is directly tied to miles driven, their correlation is r=0.9572r = 0.9572.

In the regression output, the coefficient for gasoline consumption has a pp-value of 0.65880.6588, 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 jj:

VIFj=11−Rj2\text{VIF}_j = \frac{1}{1 - R_j^2}

Where Rj2R_j^2 is the coefficient of determination obtained from regressing predictor xjx_j on all remaining independent variables.

Correlation r(x1,x2)r(x_1, x_2)

Resulting VIF

Diagnostic Interpretation

0.000.00

1.001.00

No multicollinearity

0.500.50

1.331.33

Mild multicollinearity

0.700.70

1.961.96

Moderate multicollinearity

0.900.90

5.265.26

Concerning multicollinearity

0.950.95

10.2610.26

Serious multicollinearity (remedial action required)

0.990.99

50.2550.25

Severe multicollinearity

Categorical Predictors and Dummy Variables

Categorical independent variables are incorporated into regression models using dummy variables coded as 00 or 11.

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:

x3={1if route includes highway driving during rush hour0otherwisex_3 = \begin{cases} 1 & \text{if route includes highway driving during rush hour} \\ 0 & \text{otherwise} \end{cases}

Estimating the expanded model yields:

y^=−0.3302+0.0672x1+0.6735x2+0.9980x3\hat{y} = -0.3302 + 0.0672 x_1 + 0.6735 x_2 + 0.9980 x_3

  • Model fit increases to R2=0.8838R^2 = 0.8838 (88.4%88.4\% of variance explained).

  • b3=0.9980b_3 = 0.9980: Driving on the highway during afternoon rush hour adds approximately 0.9980 hours0.9980\,\text{hours} (≈60 minutes\approx 60\,\text{minutes}) to route time, holding miles and deliveries constant.

Complex Categorical Variables (kk Categories)

When a categorical variable has kk levels, exactly k−1k - 1 dummy variables must be created. One category serves as the baseline/reference group (coded as 00 across all dummy variables).

Sales Region Coding (k=3k = 3

 Levels) A vending machine manufacturer sells across three territories: Region A, Region B, and Region C. Region A is chosen as the baseline:

x1={1if Region B0otherwisex2={1if Region C0otherwisex_1 = \begin{cases} 1 & \text{if Region B} \\ 0 & \text{otherwise} \end{cases} \quad x_2 = \begin{cases} 1 & \text{if Region C} \\ 0 & \text{otherwise} \end{cases}

Region

Dummy Variable x1x_1

Dummy Variable x2x_2

Region A (Baseline)

00

00

Region B

11

00

Region C

00

11

The regression model is:

E(y)=β0+β1x1+β2x2E(y) = \beta_0 + \beta_1 x_1 + \beta_2 x_2

  • Region A: E(y∣Region A)=β0E(y|\text{Region A}) = \beta_0

  • Region B: E(y∣Region B)=β0+β1E(y|\text{Region B}) = \beta_0 + \beta_1

  • Region C: E(y∣Region C)=β0+β2E(y|\text{Region C}) = \beta_0 + \beta_2

Here, β1\beta_1 represents the expected difference in sales between Region B and Region A, while β2\beta_2 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:

y=β0+β1x+β2x2+ϵy = \beta_0 + \beta_1 x + \beta_2 x^2 + \epsilon

Four types of quadratic regression curves based on parameter signs
  • Same Signs: Monotonically increasing (β1>0,β2>0\beta_1 > 0, \beta_2 > 0) or decreasing (β1<0,β2<0\beta_1 < 0, \beta_2 < 0) across the experimental region.

  • Opposite Signs: Concave with a maximum (β1>0,β2<0\beta_1 > 0, \beta_2 < 0) or convex with a minimum (β1<0,β2>0\beta_1 < 0, \beta_2 > 0).

Case Study: Reynolds, Inc. Industrial Scales

Reynolds, Inc. evaluates months of sales experience (xx) versus unit sales (yy) across n=123 salespeoplen = 123\,\text{salespeople}.

Curvilinear scatter pattern in Reynolds sales data

Fitting a linear model (y^=183.291+2.358x\hat{y} = 183.291 + 2.358 x) yields an arched residual plot, indicating a nonlinear trend. Adding the quadratic term MonthSq (x2x^2) yields:

y^=101.985+6.136x−0.0341x2\hat{y} = 101.985 + 6.136 x - 0.0341 x^2

Because β1>0\beta_1 > 0 and β2<0\beta_2 < 0, the curve reaches a maximum. Using calculus (setting the first derivative to zero):

dy^dx=6.136−2(0.0341)x=0  ⟹  x∗=6.1360.0682≈90 months\frac{d\hat{y}}{dx} = 6.136 - 2(0.0341)x = 0 \implies x^* = \frac{6.136}{0.0682} \approx 90\,\text{months}

Maximum Sales=101.985+6.136(90)−0.0341(902)≈378 units\text{Maximum Sales} = 101.985 + 6.136(90) - 0.0341(90^2) \approx 378\,\text{units}

Sales performance peaks around 90 months90\,\text{months} (7.5 years7.5\,\text{years}), after which performance slightly declines due to fatigue or burnout.

Interaction Models

An interaction occurs when the effect of one predictor on yy depends on the value of another predictor:

y^=b0+b1x1+b2x2+b3x1x2\hat{y} = b_0 + b_1 x_1 + b_2 x_2 + b_3 x_1 x_2

  • Application (Tyler Personal Care): Sales (yy, in thousands) are modeled as a function of Price (x1x_1, in dollars) and Advertising (x2x_2, in thousands of dollars). The estimated model is:

y^=−275.83+175.00x1+19.68x2−6.08x1x2\hat{y} = -275.83 + 175.00 x_1 + 19.68 x_2 - 6.08 x_1 x_2

The negative interaction term (−6.08-6.08) 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 xx, called a knot or breakpoint (x(k)x^{(k)}):

Piecewise linear regression plot showing knot breakpoint at 70 months

A dummy variable is defined:

D={0if x≤x(k)1if x>x(k)D = \begin{cases} 0 & \text{if } x \le x^{(k)} \\ 1 & \text{if } x > x^{(k)} \end{cases}

The model is formulated as:

y^=b0+b1x+b2(x−x(k))D\hat{y} = b_0 + b_1 x + b_2 (x - x^{(k)}) D

For the Reynolds dataset with a knot at x(k)=70 monthsx^{(k)} = 70\,\text{months}:

y^=147.46+3.354x−3.661(x−70)D\hat{y} = 147.46 + 3.354 x - 3.661 (x - 70) D

  • Experience ≤70 months\le 70\,\text{months} (D=0D = 0 ):

y^=147.46+3.354x\hat{y} = 147.46 + 3.354 x

Sales increase by 3.354 units3.354\,\text{units} per additional month of experience.

  • Experience >70 months> 70\,\text{months} (D=1D = 1 ):

y^=147.46+3.354x−3.661(x−70)=403.73−0.307x\hat{y} = 147.46 + 3.354 x - 3.661(x - 70) = 403.73 - 0.307 x

Beyond 70 months, sales decline by 0.307 units0.307\,\text{units} 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 (2q2^q models) to identify the optimal model using criteria such as Adjusted R2R^2, Mallows' CpC_p, 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., 70%70\% or 80%80\% of observations) used to estimate model parameters, and a validation/testing set (e.g., 20%20\% or 30%30\% 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 =0.30= 0.30, Profit =$500,000= \$500,000

  • Moderate Demand: Probability =0.30= 0.30, Profit =$100,000= \$100,000

  • Low Demand: Probability =0.40= 0.40, Loss =−$200,000= -\$200,000

Expected Value=0.30($500,000)+0.30($100,000)+0.40(−$200,000)=$150,000+$30,000−$80,000=$100,000\text{Expected Value} = 0.30(\$500,000) + 0.30(\$100,000) + 0.40(-\$200,000) = \$150,000 + \$30,000 - \$80,000 = \$100,000

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: P(S)=0.30P(S) = 0.30, P(W)=0.20P(W) = 0.20, P(S∩W)=0.12P(S \cap W) = 0.12.

  1. Probability of not being dissatisfied with salary:

P(Sc)=1−P(S)=1−0.30=0.70P(S^c) = 1 - P(S) = 1 - 0.30 = 0.70

  1. Are salary and work dissatisfaction mutually exclusive?     No. P(S∩W)=0.12≠0P(S \cap W) = 0.12 \neq 0. Both forms of dissatisfaction can occur together.

  2. Are salary and work dissatisfaction independent?     Check the multiplication condition:

P(S)×P(W)=0.30×0.20=0.06P(S) \times P(W) = 0.30 \times 0.20 = 0.06

Because P(S∩W)=0.12≠0.06P(S \cap W) = 0.12 \neq 0.06, the events are dependent.

  1. Verification via Conditional Probability:

P(W∣S)=P(S∩W)P(S)=0.120.30=0.40P(W|S) = \frac{P(S \cap W)}{P(S)} = \frac{0.12}{0.30} = 0.40

Because P(W∣S)=0.40≠P(W)=0.20P(W|S) = 0.40 \neq P(W) = 0.20, 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 1%1\% of the population (P(D)=0.01P(D) = 0.01, P(Dc)=0.99P(D^c) = 0.99). A diagnostic test has:

  • True Positive Rate: P(Pos∣D)=0.99P(\text{Pos}|D) = 0.99

  • False Positive Rate: P(Pos∣Dc)=0.05P(\text{Pos}|D^c) = 0.05

To find the posterior probability of having the disease given a positive test (P(D∣Pos)P(D|\text{Pos})):

P(Pos)=P(D)P(Pos∣D)+P(Dc)P(Pos∣Dc)=(0.01)(0.99)+(0.99)(0.05)=0.0099+0.0495=0.0594P(\text{Pos}) = P(D)P(\text{Pos}|D) + P(D^c)P(\text{Pos}|D^c) = (0.01)(0.99) + (0.99)(0.05) = 0.0099 + 0.0495 = 0.0594

P(D∣Pos)=0.00990.0594=16≈0.1667=16.67%P(D|\text{Pos}) = \frac{0.0099}{0.0594} = \frac{1}{6} \approx 0.1667 = 16.67\%

Even with a 99%99\% true positive rate and a low 5%5\% false positive rate, an individual testing positive has only a 16.67%16.67\% probability of being infected due to the low baseline prevalence (1%1\%) in the general population.