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 Freshmen at Madonna University regarding employment status and gender:
- Distribution of Part-Time employment:
- Female students working part-time:
- Male students working part-time:
- Total part-time students:
- Distribution of Full-Time employment:
- Female students working full-time:
- Male students working full-time:
- Total full-time students:
- Aggregate totals by gender:
- Total female freshmen surveyed:
- Total male freshmen surveyed:
- Overall sample size:
- Contextual interpretation of data values:
- The cell value of represents the number of male freshmen surveyed who work full time.
- Relative frequency and percentage calculations:
- Percentage of survey participants who are male:
- Percentage of all survey participants who work full time:
- Conditional percentage of part-time workers who are female:
- Conditional percentage of male freshmen who work full time:
- Conditional percentage of part-time workers who are male:
Cross-Tabulation of Basketball Game Attendance and Campus Library Usage:
- Contingency table values:
- Individuals who use the library and attend at least basketball game per season:
- Individuals who use the library and do not attend basketball games:
- Total library users:
- Individuals who do not use the library and attend at least basketball game per season:
- Individuals who do not use the library and do not attend basketball games:
- Total non-library users:
- Marginal totals by game attendance:
- Total individuals attending at least game per season:
- Total individuals who do not attend basketball games:
- Total sample size:
- Conditional relative frequency calculations:
- Percentage of individuals who use the library that do not attend basketball games:
- Percentage of individuals who do not use the library that do not attend basketball games:
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 , quantifies the strength and direction of a linear relationship between two quantitative variables:
- The value of is constrained to the interval .
- Positive values indicate a direct linear relationship, while negative values indicate an inverse linear relationship.
- Values near indicate weak or no linear association, whereas values approaching or 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:
- : Indicates a very weak positive linear correlation.
- : Indicates a very weak negative linear correlation.
- : Indicates a strong positive linear correlation.
- : 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:
Study Time and Academic Performance Model:
- Independent variable (): Number of hours a student studied.
- Dependent variable (): Score the student received on the test.
- Best fit line equation:
- Structural parameters:
- Slope (): Indicates that for each additional hour spent studying, a student's predicted test score increases by points.
- Vertical intercept (): Represents the baseline predicted score for a student who engages in hours of study.
Model Predictions and Reasonableness Assessments:
- Prediction for hours of study:
- Reasonableness evaluation: This estimate is not reasonable. Standard academic tests are scaled with a maximum achievable score of . A prediction of represents an extrapolation error beyond realistic testing boundaries.
- Prediction for hours of study:
- Reasonableness evaluation: This estimate is reasonable. The resulting predicted score of lies within the standard to point range.
Linear Regression Modeling: Mile Run Time versus Running Shoe Cost
Mile Run Time and Athletic Shoe Price Model:
- Independent variable (): Number of minutes taken to run one mile ().
- Dependent variable (): Cost of running shoes (\).
- Best fit line equation:
Model Evaluation for a -Minute Mile:
- Substitution of :
- A runner completing a mile in is predicted to wear shoes costing .
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 ( in dollars) based on hours worked () across weeks using the linear equation:
- A residual measures the vertical deviation between observed data and model estimates:
- Week-by-week computation:
- Week 1:
- Hours tutored ():
- Actual earnings ():
- Predicted earnings:
- Residual:
- Week 2:
- Hours tutored ():
- Actual earnings ():
- Predicted earnings:
- Residual:
- Week 3:
- Hours tutored ():
- Actual earnings ():
- Predicted earnings:
- Residual:
- Week 4:
- Hours tutored ():
- Actual earnings ():
- Predicted earnings:
- Residual:
Assessing Goodness-of-Fit:
- The line is a reasonably good fit for the dataset.
- Justification: The calculated residuals (, , , ) are small relative to the magnitude of the earnings values and are scattered randomly both above and below without following a systematic curvature or non-linear trend.
Interpretations of Linear Model Parameters:
- Slope (): Priya earns an additional for every additional hour spent tutoring.
- Vertical intercept (): Represents a baseline weekly compensation of , 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.