3b.3

Course Logistics

  • Prerequisites: Stats 101 or 108 must be completed prior to enrolling in Stats 201 or 208; direct progression from course 100 to 201 is not permitted.

  • Module Quizzes: Quizzes for Module 1 and Module 2 serve as invigilated snapshot assessments with no retakes, tutoring assistance, drop-in help, or Ed Discussion support.

Questions & Discussion

  • Course Progression:

    • Question: Is course 100 sufficient to advance directly into Stats 201 or 208?

    • Response: No, Stats 101 or 108 must be taken first before advancing to 201.

  • Quiz Retakes:

    • Question: Can students retake a module quiz if they are uncertain about their performance?

    • Response: No, module quizzes are strictly invigilated snapshots and cannot be retaken.

Fundamentals of Linear Regression Models

  • Variable Placement:

    • Explanatory Variable (xx-axis): The variable explaining variation and serving as the input (e.g., Quiz 1 score, sugar content, number of bedrooms).

    • Response Variable (yy-axis): The variable being predicted (e.g., Quiz 2 score, calories, rent per week).

  • Linear Model Equation: Expressed in context as:   Response=a+b×Explanatory\text{Response} = a + b \times \text{Explanatory}

    • aa represents the yy-intercept.

    • bb represents the slope.

  • Reading the Intercept: The yy-intercept must never be estimated visually from a graph unless the axes explicitly intersect at (0,0)(0, 0).

  • Interpreting Slope: Represents the average predicted increase or decrease in the response variable per single unit increase in the explanatory variable (e.g., an increase of "$120""\$120" in weekly rent for each additional bedroom).

  • Rank Correlation Coefficient (rr): Quantifies the direction and strength of the relationship:

    • 0.900.90 or above: Very strong

    • 0.600.60 to 0.800.80: Moderately or reasonably strong

    • 0.500.50 or below: Weak

    • 00: No linear relationship

Prediction Intervals and the 95% Modelling Approach

  • Limitations of Point Predictions: A single point estimate generated by the linear trendline provides no measure of uncertainty and is generally insufficient on its own.

  • Prediction Interval Model: Formed by adding and subtracting an estimated error margin to the point prediction:   Predicted Value±Error Term\text{Predicted Value} \pm \text{Error Term}

  • Parallel Error Lines: Error lines are drawn equidistant from and parallel to the linear regression line.

  • The 95%95\% Rule: The standard modeling approach sets the error bounds to capture exactly 95%95\% of data points, leaving 5%5\% of points outside:

    • In a sample of n=82n = 82, 5%5\% corresponds to 4.14.1 points (allowing approximately 44 points outside).

    • In a sample of n=50n = 50, 5%5\% corresponds to 2.52.5 points (allowing 22 to 33 points outside).

  • Precision vs. Scatter: Increased scatter produces larger error values and wider intervals, reducing prediction precision.

Model Evaluation and Testing Data

  • Data Splitting: Datasets are partitioned into a training set (used to fit the line and establish the error term) and a testing set (unseen data used to assess model validity).

  • Quantifying Accuracy: Testing accuracy is calculated by determining the proportion of testing points captured within the predetermined error bands (e.g., capturing 5252 out of 6060 testing observations yields an accuracy of approximately 86.7%86.7\%).

Assumptions and Model Generalizability

  • Key Assumptions:

    • A straight-line linear relationship must be appropriate for the data.

    • Residual scatter (variation around the regression line) must remain relatively constant across all values of the explanatory variable.

  • Non-Transferability: Predictive models are calibrated strictly to specific populations and conditions. A model fitted for one population cannot be applied to another (e.g., models calibrated for Mount Eden rentals cannot be applied to Glendeen or Remuera; models trained on cat data cannot be applied to dogs).