Two-Variable Statistics Review: Frequency Tables, Linear Regression, and Causation

Two-Way Frequency Tables and Conditional Relative Frequencies

  • Two-way frequency tables organize bivariate categorical data by cross-classifying observations across two distinct variables to examine distributions and potential associations.

  • Survey of 200200 Freshmen at Madonna University regarding employment status and gender:

    • Distribution of Part-Time employment:
    • Female students working part-time: 8080
    • Male students working part-time: 3030
    • Total part-time students: 80+30=11080 + 30 = 110
    • Distribution of Full-Time employment:
    • Female students working full-time: 7070
    • Male students working full-time: 2020
    • Total full-time students: 70+20=9070 + 20 = 90
    • Aggregate totals by gender:
    • Total female freshmen surveyed: 80+70=15080 + 70 = 150
    • Total male freshmen surveyed: 30+20=5030 + 20 = 50
    • Overall sample size: 150+50=110+90=200150 + 50 = 110 + 90 = 200
    • Contextual interpretation of data values:
    • The cell value of 2020 represents the number of male freshmen surveyed who work full time.
    • Relative frequency and percentage calculations:
    • Percentage of survey participants who are male:       50200=0.25=25%\frac{50}{200} = 0.25 = 25\%
    • Percentage of all survey participants who work full time:       90200=0.45=45%\frac{90}{200} = 0.45 = 45\%
    • Conditional percentage of part-time workers who are female:       80110≈0.7272≈73%\frac{80}{110} \approx 0.7272 \approx 73\%
    • Conditional percentage of male freshmen who work full time:       2050=0.40=40%\frac{20}{50} = 0.40 = 40\%
    • Conditional percentage of part-time workers who are male:       30110≈0.2727≈27.1%\frac{30}{110} \approx 0.2727 \approx 27.1\%
  • Cross-Tabulation of Basketball Game Attendance and Campus Library Usage:

    • Contingency table values:
    • Individuals who use the library and attend at least 11 basketball game per season: 130130
    • Individuals who use the library and do not attend basketball games: 191191
    • Total library users: 130+191=321130 + 191 = 321
    • Individuals who do not use the library and attend at least 11 basketball game per season: 4646
    • Individuals who do not use the library and do not attend basketball games: 1818
    • Total non-library users: 46+18=6446 + 18 = 64
    • Marginal totals by game attendance:
      • Total individuals attending at least 11 game per season: 130+46=176130 + 46 = 176
      • Total individuals who do not attend basketball games: 191+18=209191 + 18 = 209
      • Total sample size: 321+64=176+209=385321 + 64 = 176 + 209 = 385
    • Conditional relative frequency calculations:
    • Percentage of individuals who use the library that do not attend basketball games:       191321≈0.5950≈60%\frac{191}{321} \approx 0.5950 \approx 60\%
    • Percentage of individuals who do not use the library that do not attend basketball games:       1864=0.28125≈28.1%\frac{18}{64} = 0.28125 \approx 28.1\%

Scatter Plots and the Linear Correlation Coefficient

  • Scatter plots display bivariate quantitative data along Cartesian axes to visually inspect trends, direction, clustering, and association strength.

  • The correlation coefficient, denoted by rr, quantifies the strength and direction of a linear relationship between two quantitative variables:

    • The value of rr is constrained to the interval −1≤r≤1-1 \le r \le 1.
    • Positive values indicate a direct linear relationship, while negative values indicate an inverse linear relationship.
    • Values near 00 indicate weak or no linear association, whereas values approaching −1-1 or 11 signify strong linear alignment.
  • Identifying correlation coefficients from scatter plot behavior:

    • A scatter plot exhibiting points sloping downwards from top-left to bottom-right in a tight, nearly straight pattern demonstrates a strong negative linear association.
    • Candidate correlation values:
    • 0.10.1: Indicates a very weak positive linear correlation.
    • −0.1-0.1: Indicates a very weak negative linear correlation.
    • 0.90.9: Indicates a strong positive linear correlation.
    • −0.9-0.9: Accurately represents a strong negative linear correlation.

Linear Regression Modeling: Study Hours versus Test Scores

  • Linear models approximate quantitative trends using the slope-intercept form:   y=mx+by = mx + b

  • Study Time and Academic Performance Model:

    • Independent variable (xx): Number of hours a student studied.
    • Dependent variable (yy): Score the student received on the test.
    • Best fit line equation:     y=6.55x+53.33y = 6.55x + 53.33
    • Structural parameters:
    • Slope (m=6.55m = 6.55): Indicates that for each additional hour spent studying, a student's predicted test score increases by 6.556.55 points.
    • Vertical intercept (b=53.33b = 53.33): Represents the baseline predicted score for a student who engages in 00 hours of study.
  • Model Predictions and Reasonableness Assessments:

    • Prediction for x=10x = 10 hours of study:     y=6.55(10)+53.33y = 6.55(10) + 53.33y=65.5+53.33=118.83y = 65.5 + 53.33 = 118.83
    • Reasonableness evaluation: This estimate is not reasonable. Standard academic tests are scaled with a maximum achievable score of 100100. A prediction of 118.83118.83 represents an extrapolation error beyond realistic testing boundaries.
    • Prediction for x=7x = 7 hours of study:     y=6.55(7)+53.33y = 6.55(7) + 53.33y=45.85+53.33=99.18y = 45.85 + 53.33 = 99.18
    • Reasonableness evaluation: This estimate is reasonable. The resulting predicted score of 99.1899.18 lies within the standard 00 to 100100 point range.

Linear Regression Modeling: Mile Run Time versus Running Shoe Cost

  • Mile Run Time and Athletic Shoe Price Model:

    • Independent variable (xx): Number of minutes taken to run one mile (min\text{min}).
    • Dependent variable (yy): Cost of running shoes (\).
    • Best fit line equation:     y=−10x+140y = -10x + 140
  • Model Evaluation for a 1010-Minute Mile:

    • Substitution of x=10x = 10:     y=−10(10)+140y = -10(10) + 140y=−100+140=40y = -100 + 140 = 40
    • A runner completing a mile in 10 min10\,\text{min} is predicted to wear shoes costing $40\$40.
  • Causation Fallacy in Empirical Relationships:

    • Makayla claims that based on this dataset, an individual will run faster if they spend more money on their shoes.
    • Critique of claim: The claim is inaccurate because correlation does not imply causation.
    • The model demonstrates a negative association (individuals with faster mile times tend to possess higher-priced shoes), but buying expensive shoes does not cause a physiological increase in speed.
    • Underlying lurking variables (such as an athlete's training commitment, weekly mileage, running experience, and competitive level) simultaneously drive higher shoe expenditures and faster run times.

Residual Analysis and Goodness-of-Fit: Tutoring Hours and Earnings

  • Residual Calculation and Tabulation:

    • Priya models weekly tutoring earnings (yy in dollars) based on hours worked (xx) across 44 weeks using the linear equation:     y=15x+30y = 15x + 30
    • A residual measures the vertical deviation between observed data and model estimates:     Residual=y−y^=y−Predicted Earnings\text{Residual} = y - \hat{y} = y - \text{Predicted Earnings}
    • Week-by-week computation:
    • Week 1:
      • Hours tutored (xx): 44
      • Actual earnings (yy): $92\$92
      • Predicted earnings: 15(4)+30=60+30=$9015(4) + 30 = 60 + 30 = \$90
      • Residual: 92−90=292 - 90 = 2
    • Week 2:
      • Hours tutored (xx): 66
      • Actual earnings (yy): $118\$118
      • Predicted earnings: 15(6)+30=90+30=$12015(6) + 30 = 90 + 30 = \$120
      • Residual: 118−120=−2118 - 120 = -2
    • Week 3:
      • Hours tutored (xx): 99
      • Actual earnings (yy): $171\$171
      • Predicted earnings: 15(9)+30=135+30=$16515(9) + 30 = 135 + 30 = \$165
      • Residual: 171−165=6171 - 165 = 6
    • Week 4:
      • Hours tutored (xx): 1111
      • Actual earnings (yy): $190\$190
      • Predicted earnings: 15(11)+30=165+30=$19515(11) + 30 = 165 + 30 = \$195
      • Residual: 190−195=−5190 - 195 = -5
  • Assessing Goodness-of-Fit:

    • The line y=15x+30y = 15x + 30 is a reasonably good fit for the dataset.
    • Justification: The calculated residuals (22, −2-2, 66, −5-5) are small relative to the magnitude of the earnings values and are scattered randomly both above and below 00 without following a systematic curvature or non-linear trend.
  • Interpretations of Linear Model Parameters:

    • Slope (1515): Priya earns an additional $15\$15 for every additional hour spent tutoring.
    • Vertical intercept (3030): Represents a baseline weekly compensation of $30\$30, potentially reflecting a flat fee or travel retainer independent of hourly tutoring.
  • Direction and Strength of Correlation:

    • The correlation between tutoring hours and earnings is classified as strong and positive.
    • Both variables increase proportionally together along an orderly linear path.

Classifying Associations: Causation versus Non-Causal Relationships

  • Analytical Categories for Bivariate Relationships:

    • Category A: Very weak or no relationship.
    • Category B: Strong relationship, but not a causal relationship.
    • Category C: Causal relationship (causation).
  • Case Analysis of Specific Variable Pairs:

    • Number of ice cream cones sold at a beach stand and number of sunscreen bottles sold at the same stand:
    • Classification: Category B (Strong relationship, but not causal).
    • Reasoning: Both products see elevated sales simultaneously during warm, sunny weather at the beach. Purchasing ice cream does not cause a person to buy sunscreen; the shared association is driven by a confounding weather variable (ambient temperature and sunshine).
    • A student's shoe size and the student's reading level in an elementary school:
    • Classification: Category B (Strong relationship, but not causal).
    • Reasoning: In an elementary school population, students with larger shoe sizes generally read at higher levels because both variables track student age and physiological/cognitive growth. Physical foot growth does not cause reading development; chronological age is the common confounding variable.
    • Number of bricks in a wall and the height of the wall:
    • Classification: Category C (Causal relationship / Causation).
    • Reasoning: Placing additional bricks into the courses of a wall directly and mechanically causes the physical height of the wall to increase.
    • Number of books a student owns and the number of letters in the student's last name:
    • Classification: Category A (Very weak or no relationship).
    • Reasoning: The character length of a student's family surname operates independently of book purchasing habits, library size, or literacy access.