Comprehensive Study Guide: Bivariate Linear Regression and the General Linear Model

Fundamentals of Linear Equations and Bivariate Data

  • Bivariate Data Definition and Purpose:

    • Bivariate data consists of pairs of numeric values measured for two variables that are suspected or known to share an underlying relationship.

    • The primary analytical objective is to determine whether changes in one variable correspond systematically to changes in the other.

    • Bivariate data forms the foundation for simple linear regression analysis, which models the relationship between exactly one independent variable (xx) and one dependent variable (yy).

  • The Mathematical Structure of Linear Equations:

    • The mathematical representation of a linear equation involving two variables is:         y=a+bxy = a + bx

    • The variable xx represents the independent variable (also designated the explanatory or predictor variable).

    • The variable yy represents the dependent variable (also designated the response or outcome variable).

    • The parameter bb represents the slope of the line, which dictates the steepness and direction of the linear relationship.

    • The parameter aa represents the yy-intercept, which specifies the value of yy where the line intersects the vertical yy-axis (the value of yy when x=0x = 0).

    • Any non-vertical straight line in the Cartesian coordinate plane can be described by this equation.

  • Examples of Linear Equations:

    • y=3x−2y = 3x - 2

    • y=0.125−1.8xy = 0.125 - 1.8x

    • y=2+0.3xy = 2 + 0.3x

Graph of the linear equation y = 2 + 0.3x
  • Detailed Parameter Interpretations in Applied Settings:

    • Hang-Gliding Class Cost Model (Emma’s Extreme Sports):

      • The company compensates hang-gliding instructors a baseline fee of 50 dollars50\,\text{dollars} per class, alongside a per-student fee of 20 dollars20\,\text{dollars}.

      • The independent variable xx is the number of students in a class.

      • The dependent variable yy is the total cost Emma pays to an instructor.

      • The resulting linear equation is:             y=50+20xy = 50 + 20x

      • The yy-intercept is a=50 dollarsa = 50\,\text{dollars}, which is the minimum compensation paid for conducting a class with zero students.

      • The slope is b=20 dollarsb = 20\,\text{dollars}, which represents the additional compensation incurred for each additional student enrolled.

    • Tutoring Income Model (Svetlana):

      • For each tutoring session, Svetlana charges a one-time fixed fee of 25 dollars25\,\text{dollars} plus an hourly rate of 15 dollars15\,\text{dollars}.

      • The linear relationship is expressed as:             y=25+15xy = 25 + 15x

      • The independent variable xx is the duration of the tutoring session measured in hours.

      • The dependent variable yy is the total amount of money earned per session in dollars.

      • The yy-intercept is a=25 dollarsa = 25\,\text{dollars}, representing the mandatory base fee assessed regardless of tutoring duration.

      • The slope is b=15 dollars/hourb = 15\,\text{dollars/hour}, indicating that Svetlana's earnings increase by 15 dollars15\,\text{dollars} for every additional hour spent tutoring.

    • Appliance Repair Fee Model (Ethan):

      • Ethan repairs household appliances such as dishwashers and refrigerators, assessing a fixed charge of 25 dollars25\,\text{dollars} per home visit plus an hourly labor rate of 20 dollars20\,\text{dollars}.

      • The linear relationship is defined by:             y=25+20xy = 25 + 20x

      • The independent variable xx represents the total hours of labor performed during the visit.

      • The dependent variable yy represents Ethan's total earnings per visit in dollars.

      • The yy-intercept is a=25 dollarsa = 25\,\text{dollars}, representing the base fee for showing up to a visit prior to performing any labor.

      • The slope is b=20 dollars/hourb = 20\,\text{dollars/hour}, indicating that the total bill increases by 20 dollars20\,\text{dollars} for each additional hour of repair work.

Scatter Plots and Exploratory Data Analysis

  • Definition and Utility of Scatter Plots:

    • A scatter plot provides the most common, intuitive visual method to explore and assess bivariate data.

    • Constructing a scatter plot involves identifying the independent variable (xx) along the horizontal axis, the dependent variable (yy) along the vertical axis, and plotting each paired observation (xi,yi)(x_i, y_i) as an individual point.

  • Assessing Direction and Strength:

    • Direction:

      • A positive relationship occurs when high values of the independent variable coincide with high values of the dependent variable, or when low values coincide with low values.

      • A negative relationship occurs when high values of one variable systematically coincide with low values of the other variable.

    • Strength:

      • The strength of an observed association is evaluated by how tightly clustered the data points are around a straight line or another functional curve.

      • Tightly clustered points indicate a strong relationship; widely dispersed points indicate a weak relationship.

  • Empirical Case Study: Child Age and Vocabulary Size:

    • An educational researcher measured the vocabulary size of young children across various ages to evaluate whether developmental age predicts word count.

    • The independent variable is child's age (xx) in years; the dependent variable is vocabulary size (yy) measured in number of words:

      • Age 3 years3\,\text{years}: 655 words655\,\text{words}

      • Age 4 years4\,\text{years}: 1098 words1098\,\text{words}

      • Age 6 years6\,\text{years}: 2463 words2463\,\text{words}

      • Age 7 years7\,\text{years}: 3195 words3195\,\text{words}

    • Plotting these coordinates produces an upward-sloping trajectory, demonstrating a strong positive association between age and vocabulary acquisition.

  • Empirical Case Study: Athletic Practice and Game Performance:

    • A high school basketball player, Amelia, logged weekly practice time to evaluate whether targeted training improves scoring performance in games.

    • The independent variable xx represents the weekly hours practicing jump shots; the dependent variable yy represents total points scored in a game:

      • 5 hours5\,\text{hours}: 15 points15\,\text{points}

      • 7 hours7\,\text{hours}: 22 points22\,\text{points}

      • 9 hours9\,\text{hours}: 28 points28\,\text{points}

      • 10 hours10\,\text{hours}: 31 points31\,\text{points}

      • 11 hours11\,\text{hours}: 33 points33\,\text{points}

      • 12 hours12\,\text{hours}: 36 points36\,\text{points}

    • The data demonstrates a clear, positive linear trajectory, indicating that scoring increases consistently as practice hours increase.

The Least-Squares Regression Model and Line of Best Fit

  • The Principle of Least Squares:

    • Real-world empirical data points rarely fall perfectly along a straight line.

    • The line of best fit (also known as the least-squares regression line) is defined as the unique straight line that minimizes the sum of the squared vertical distances between each observed data point and the line.

    • The algebraic equation for the fitted regression line is:         y^=a+bx\hat{y} = a + bx

    • The symbol y^\hat{y} ("y-hat") denotes the predicted value of the outcome variable yy for a specified input value of xx.

  • Errors and Residuals:

    • For any observed data point (xi,yi)(x_i, y_i), the discrepancy between the observed value yiy_i and the predicted value y^i\hat{y}_i is called the residual or error (denoted εi\varepsilon_i):         εi=yi−y^i\varepsilon_i = y_i - \hat{y}_i

    • A positive residual indicates that the actual observed value lies above the regression line.

    • A negative residual indicates that the actual observed value lies below the regression line.

    • The vertical distance between the observed point and the line is given by ∣y0−y^0∣=∣ε0∣|y_0 - \hat{y}_0| = |\varepsilon_0|.

Residual distance between data point and regression line
  • Sum of Squared Errors (SSE):

    • The total squared error for a sample size of nn observations is quantified by the Sum of Squared Errors (SSE):         SSE=∑i=1n(εi)2=(ε1)2+(ε2)2+⋯+(εn)2SSE = \sum_{i=1}^{n} (\varepsilon_i)^2 = (\varepsilon_1)^2 + (\varepsilon_2)^2 + \dots + (\varepsilon_n)^2

    • The least-squares mathematical procedure calculates values for intercept aa and slope bb that directly minimize SSESSE.

    • An intrinsic mathematical property of the least-squares regression line is that it always passes through the point of means, (xˉ,yˉ)(\bar{x}, \bar{y}).

  • Case Study: College Statistics Exam Performance:

    • A random sample of n=11n = 11 statistics students yielded bivariate data tracking scores on the third examination (xx, scored out of 80 points80\,\text{points}) against performance on the final examination (yy, scored out of 200 points200\,\text{points}).

    • The calculated least-squares regression line is:         y^=−173.51+4.83x\hat{y} = -173.51 + 4.83x

    • Slope Interpretation:

      • The slope is b=4.83b = 4.83.

      • This indicates that for each additional point a student earns on the third exam, their final exam score is predicted to increase by 4.83 points4.83\,\text{points}, on average.

    • Intercept Interpretation:

      • The mathematical yy-intercept is a=−173.51a = -173.51.

      • This reflects the theoretical predicted final exam score for a hypothetical student scoring 00 on the third exam.

      • In practice, negative test scores are impossible, illustrating that mathematical intercepts often have no realistic physical meaning when extrapolated beyond the range of observable data.

Line of best fit for third exam versus final exam scores
  • Residual Diagnostics and Residual Plots:

    • A residual plot graphs the independent variable xx along the horizontal axis and the calculated residuals (y−y^y - \hat{y}) along the vertical axis.

    • Residual plots serve as a diagnostic check to determine whether a linear model is appropriate for the data.

    • An ideal residual plot displays a random, evenly spaced cloud of points centered around the horizontal zero line (ε=0\varepsilon = 0), with no evident curvature or systematic trend.

    • If residuals exhibit curvature, a non-linear model is required.

    • If residuals display a fan or cone shape (heteroscedasticity), the magnitude of prediction error depends directly on the value of the predictor variable, violating core regression assumptions.

Scatter plot and regression line for temperature versus ice cream cones soldResiduals plot for temperature versus ice cream cones sold

Correlation and the Coefficient of Determination

  • The Linear Correlation Coefficient (rr):

    • The sample correlation coefficient, rr, provides a numerical metric quantifying the strength and direction of the linear relationship between variables xx and yy.

    • The value of rr is strictly bounded such that:         −1≤r≤1-1 \le r \le 1

    • Directional Classifications:

      • A positive correlation (0<r≤10 < r \le 1) indicates that higher values of xx correspond to higher values of yy.

      • A negative correlation (−1≤r<0-1 \le r < 0) indicates that higher values of xx correspond to lower values of yy.

      • A value of r=0r = 0 indicates no linear correlation between the variables.

    • Caveats and Non-Linearity:

      • A correlation coefficient near zero does not necessarily imply the absence of any relationship; it only implies the absence of a linear relationship.

      • Data displaying strong curvilinear or horizontal patterns can produce an rr value of 00, making scatter plot inspection necessary.

Scatter plots displaying positive, negative, and zero correlation
  • The Coefficient of Determination (r2r^2):

    • Squaring the correlation coefficient yields the coefficient of determination, denoted r2r^2.

    • The coefficient of determination is typically expressed as a percentage rather than a decimal fraction.

    • Substantive Interpretation:

      • r2r^2 represents the percentage of total variation in the dependent variable yy that can be explained by variation in the independent variable xx using the least-squares regression line.

      • The complement, 1−r21 - r^2, represents the percentage of variation in yy that remains unexplained by the regression model (residual error variation).

    • Application to the Statistics Exam Case Study:

      • The calculated sample correlation coefficient between third exam scores and final exam scores is:             r=0.6631r = 0.6631

      • The resulting coefficient of determination is:             r2=(0.6631)2=0.4397r^2 = (0.6631)^2 = 0.4397

      • Expressed as a percentage, approximately 44%44\% of the total variation in final exam scores can be explained by variation in third exam scores using the fitted regression line.

      • The remaining 56%56\% (1−0.4397=0.56031 - 0.4397 = 0.5603) of total variation is unexplained by the model and stems from other factors or random variation.

Statistical Inference for Linear Regression: Hypothesis Testing

  • Inference About the Population Correlation (ρ\rho):

    • The sample correlation coefficient, rr, is a point estimate derived from sample data to infer the unknown population correlation coefficient, denoted by the Greek letter rho (ρ\rho).

    • Because sample estimates vary due to random sampling fluctuation, a formal hypothesis test must be conducted to establish whether an observed linear relationship is statistically significant or whether it could have arisen purely by chance from a population where ρ=0\rho = 0.

    • Reliability is heavily contingent on the sample size (nn); smaller samples require higher observed values of rr to establish statistical significance.

  • Hypothesis Formulation:

    • Null Hypothesis (H0H_0):         H0:ρ=0H_0: \rho = 0

      • Meaning: The population correlation coefficient is not significantly different from zero. There is no significant linear relationship between xx and yy in the population.

    • Alternative Hypothesis (HaH_a):         Ha:ρ≠0H_a: \rho \neq 0

      • Meaning: The population correlation coefficient is significantly different from zero. There is a significant linear relationship between xx and yy in the population.

  • Decision Methodologies and Interpretative Standards:

    • Testing is conducted using a significance level typically established at α=0.05\alpha = 0.05.

    • Two interchangeable, mathematically equivalent procedures are employed to draw conclusions:

      • Method 1 (p-value): Compute the test statistic p-value. If p-value≤αp\text{-value} \le \alpha, reject H0H_0. If p-value>αp\text{-value} > \alpha, fail to reject H0H_0.

      • Method 2 (Critical Value Table): Compare the computed correlation coefficient ∣r∣|r| against the critical value for a given sample size nn. If ∣r∣>rcrit|r| > r_{\text{crit}}, reject H0H_0.

    • Conclusion Phrasing:

      • When H0H_0 is rejected: "There is sufficient evidence to conclude that there is a significant linear relationship between xx and yy because the correlation coefficient is significantly different from zero."

      • When failing to reject H0H_0: "There is insufficient evidence to conclude that there is a significant linear relationship between xx and yy because the correlation coefficient is not significantly different from zero."

    • Standard calculator or software routines, such as LinRegTTest, are utilized to calculate the test statistic and p-value.

  • Bivariate Data Set: Birth Year and Life Expectancy:

    • Data assessing birth year (xx) and projected life expectancy in years (yy) provides a baseline for hypothesis testing via LinRegTTest:

      • Year 19301930: 59.7 years59.7\,\text{years}

      • Year 19401940: 62.9 years62.9\,\text{years}

      • Year 19501950: 70.2 years70.2\,\text{years}

      • Year 19651965: 69.7 years69.7\,\text{years}

      • Year 19731973: 71.4 years71.4\,\text{years}

      • Year 19821982: 74.5 years74.5\,\text{years}

      • Year 19871987: 75.0 years75.0\,\text{years}

      • Year 19921992: 75.7 years75.7\,\text{years}

      • Year 20102010: 78.7 years78.7\,\text{years}

  • Underlying Assumptions of Regression Inference:

    • Valid hypothesis testing requires adherence to five statistical assumptions:

      1. Linearity: The underlying population relationship between the two variables is linear.

      2. Normality: For any specified value of xx, the corresponding population of yy-values is normally distributed about the regression line.

      3. Homoscedasticity (Equal Variance): The standard deviation of the population yy-values about the regression line is constant for every value of xx.

      4. Independence: The residual errors are mutually independent, exhibiting no autocorrelation or systematic sequencing patterns.

      5. Random Sampling: The observed sample data originates from a well-designed random sample or randomized experiment.

Normal distributions of y-values with constant variance around the regression line

Estimation, Prediction, and Outlier Analysis

  • Predictive Applications of the Regression Line:

    • A line of best fit may only be used for prediction if the correlation between variables has been demonstrated to be statistically significant.

    • Using the exam performance model (where y^=−173.51+4.83x\hat{y} = -173.51 + 4.83x):

      • Predicting for a Third Exam Score of 7373:             y^=−173.51+4.83(73)=−173.51+352.59=179.08 points\hat{y} = -173.51 + 4.83(73) = -173.51 + 352.59 = 179.08\,\text{points}

      • Predicting for a Third Exam Score of 6666:             y^=−173.51+4.83(66)=−173.51+318.78=145.27 points\hat{y} = -173.51 + 4.83(66) = -173.51 + 318.78 = 145.27\,\text{points}

      • Predicting for a Third Exam Score of 9090:             y^=−173.51+4.83(90)=−173.51+434.70=261.19 points\hat{y} = -173.51 + 4.83(90) = -173.51 + 434.70 = 261.19\,\text{points}             (Note: Because the third exam is scored out of 80 points80\,\text{points}, an input of 9090 represents extrapolation far outside the domain of the data, producing an impossible final exam score exceeding the maximum possible 200 points200\,\text{points}.)

  • Identification and Treatment of Outliers:

    • Outliers are observed data points that deviate substantially from the general linear trend established by the remainder of the data set.

    • Outliers must be examined carefully before deciding whether to omit them or retain them:

      • Points originating from measurement errors, data corruption, or non-representative sampling should typically be excluded.

      • Points reflecting legitimate, extreme occurrences in the population provide critical insight into variability and should be retained.

  • Numerical and Visual Identification Criteria:

    • Standard Deviation of Residuals (ss):

      • The standard deviation of the residuals (also known as the standard error of the estimate) is calculated directly from the SSESSE:             s=SSEn−2s = \sqrt{\frac{SSE}{n - 2}}

      • The denominator utilizes n−2n - 2 degrees of freedom because the simple linear regression model consumes two degrees of freedom estimating the intercept (aa) and slope (bb).

    • The Two-Standard-Deviation Threshold Rule:

      • As an established operational rule of thumb, any observation whose vertical distance from the regression line exceeds two standard deviations of the residuals (∣yi−y^i∣>2s|y_i - \hat{y}_i| > 2s) is flagged as an outlier.

      • Visually, this corresponds to drawing boundary lines parallel to the regression line at distances of +2s+2s and −2s-2s; any observation falling beyond these boundaries is identified as an outlier.

Regression line with two standard deviation error bands identifying an outlier
  • Influential Points and Regression Line Sensitivity:

    • Influential Points:

      • Influential points are observations situated far from the rest of the sample in the horizontal direction (xx-space).

      • Due to their leverage, influential points exert a disproportionate pull on the slope (bb) of the fitted line.

    • Demonstration: Statistics Exam Outlier Removal:

      • In the exam data set (n=11n = 11), an anomalous student scored 6565 on the third exam and 175175 on the final exam, falling above the upper +2s+2s boundary line.

      • With all 1111 data points included, the regression equation is:             y^=−173.51+4.83x\hat{y} = -173.51 + 4.83x

      • When the outlier point (65,175)(65, 175) is omitted, the recalculated regression line becomes:             y^=−367.538+7.561x\hat{y} = -367.538 + 7.561x

      • Removing this single point alters the slope from 4.834.83 to 7.5617.561, illustrating the high sensitivity of least-squares estimators to anomalous observations.

Regression line comparison demonstrating slope steepening when outlier is excluded
  • Empirical Case Study: Historical Per Capita Income (PCINC):

    • Longitudinal economic data measuring development via per capita income (PCINC) across decades from 18701870 to 19601960:

      • Year 18701870: 340 dollars340\,\text{dollars}

      • Year 18801880: 499 dollars499\,\text{dollars}

      • Year 18901890: 592 dollars592\,\text{dollars}

      • Year 19001900: 757 dollars757\,\text{dollars}

      • Year 19101910: 927 dollars927\,\text{dollars}

      • Year 19201920: 1050 dollars1050\,\text{dollars}

      • Year 19301930: 1170 dollars1170\,\text{dollars}

      • Year 19401940: 1364 dollars1364\,\text{dollars}

      • Year 19501950: 1836 dollars1836\,\text{dollars}

      • Year 19601960: 2132 dollars2132\,\text{dollars}

    • These data points serve to fit a linear regression equation, test model significance using ANOVA and correlation inference, and detect potential economic outliers across the 90-year90\text{-year} historical span.

The General Linear Model (GLM) Framework and ANOVA F-Testing

  • The Conceptual Foundation of the General Linear Model:

    • The General Linear Model (GLM) provides an overarching mathematical framework asserting that observable data can be portioned into two primary components:         Data=Model+Error\text{Data} = \text{Model} + \text{Error}

    • The model component reflects systematic structure explained by known predictor variables.

    • The error component represents the residual deviation between reality and theoretical prediction, arising from unmodeled variables, measurement discrepancies, or random environmental noise.

    • Metaphorical Illustrations of Error Deviations:

      • Halloween Trick-or-Treaters:

        • A baseline of 2525 trick-or-treaters is expected, with an anticipated increase of 0.010.01 trick-or-treaters per enrolled middle school student:                 Y^=25+0.01x\hat{Y} = 25 + 0.01x

        • With local middle school enrollment at x=1000 studentsx = 1000\,\text{students}, the predicted turn-out is:                 Y^=25+0.01(1000)=35 trick-or-treaters\hat{Y} = 25 + 0.01(1000) = 35\,\text{trick-or-treaters}

        • Actual Halloween turn-out totaled 42 trick-or-treaters42\,\text{trick-or-treaters}.

        • The resulting residual error is:                 Error=42−35=7\text{Error} = 42 - 35 = 7

        • The error does not imply corrupted data; rather, it indicates model omission (e.g., unaccounted elementary school children) and random variation.

      • Gasoline Budgeting:

        • Budgeting 30 dollars30\,\text{dollars} for weekly fuel, but only needing 28 dollars28\,\text{dollars}, yields an error of −2 dollars-2\,\text{dollars}, leaving surplus funds for visits to The Blend Den.

      • Domestic Interpersonal Dynamics:

        • The level of irritation displayed by a roommate regarding dishes left in the sink can be modeled as a function of the number of days they remain unwashed, modulated by daily mood fluctuations that register as error.

  • Regression Analysis within the GLM Framework:

    • Unlike statistical tests that use categorical predictor variables (such as independent two-sample t-tests), linear regression utilizes continuous input variables to model continuous output variables.

    • Trending YouTube Video Modeling:

      • Data collected from n=100n = 100 trending YouTube videos tracked total comments (xx, input) to predict total likes (yy, output).

      • The fitted model is:             y^=9104+6.468x\hat{y} = 9104 + 6.468x

      • The slope coefficient (b≈6.5b \approx 6.5) indicates that every additional comment is associated with an average increase of approximately 6.5 likes6.5\,\text{likes}.

      • The intercept (a=9104a = 9104) predicts 9104 likes9104\,\text{likes} for a video with zero comments, a mathematical artifact reflecting base model elevation rather than typical real-world platform dynamics.

  • Partitioning the Sums of Squares:

    • The GLM framework decomposes total variation into explained and unexplained components:

      • Total Sum of Squares (SST):

        • Quantifies total dispersion of observed points around the sample mean (yˉ\bar{y}):                 SST=∑(y−yˉ)2SST = \sum (y - \bar{y})^2

        • Dividing SSTSST by sample size NN yields sample variance.

      • Regression Sum of Squares (SSR):

        • Quantifies variation explained by the regression line, measured as the squared distance between model predictions (y^\hat{y}) and the null baseline mean (yˉ\bar{y}):                 SSR=∑(y^−yˉ)2SSR = \sum (\hat{y} - \bar{y})^2

      • Error Sum of Squares (SSE):

        • Quantifies unexplained residual dispersion of data points around the regression line (y^\hat{y}):                 SSE=∑(y−y^)2SSE = \sum (y - \hat{y})^2

    • The Partition Identity:         SST=SSR+SSESST = SSR + SSE

  • Degrees of Freedom and Information Weighting:

    • Degrees of freedom (dfdf) quantify the independent pieces of information available to estimate parameters.

    • To prevent bias and weight variances appropriately (analogous to how an astrophysicist like Katie Mack possesses substantially more independent information about planets than a high school physics student), each Sum of Squares is divided by its respective degrees of freedom:

      • dfregression=1df_{\text{regression}} = 1, because exactly one independent parameter (the slope coefficient bb) is estimated.

      • dferror=n−2df_{\text{error}} = n - 2, because two parameters (aa and bb) are estimated from the sample data. For n=100n = 100, dferror=100−2=98df_{\text{error}} = 100 - 2 = 98.

  • The ANOVA F-Test in Regression:

    • The F-statistic evaluates whether the regression model accounts for significantly more variation than would be expected under the null hypothesis of no relationship (H0:β=0H_0: \beta = 0):         F=SSRdfregressionSSEdferror=SSR1SSEn−2F = \frac{\frac{SSR}{df_{\text{regression}}}}{\frac{SSE}{df_{\text{error}}}} = \frac{\frac{SSR}{1}}{\frac{SSE}{n - 2}}

    • For the YouTube trending video model:         F=59.613F = 59.613

    • Evaluating F=59.613F = 59.613 against the F-distribution yields a p-value of:         p≈9.9×10−14p \approx 9.9 \times 10^{-14}         (0.00000000000099)(0.00000000000099)

    • Because p<0.05p < 0.05, the null hypothesis is rejected, confirming a statistically significant linear association between comments and likes.

  • Mathematical Equivalence of t-Test and F-Test:

    • Conducting a two-tailed t-test on the slope parameter (β\beta) yields the identical p-value as the F-test for simple linear regression.

    • Squaring the computed t-statistic directly equals the computed F-statistic:         F=t2F = t^2

  • Practical Applications and Causality Caveats:

    • Regression models are used across fields, including modeling the relationship between cigarette tax increases and average consumption, or peak exercise heart rates and blood pressure levels.

    • Statistical regression alone establishes correlation and functional association, but cannot establish direct causal relationships.



Homework Help:



Here is a simpler, step-by-step way to look at correlation on a graph:

 1. Look at the axes: The horizontal line across the bottom is xx and the vertical line going up is yy. Each dot represents a pair of values.

2. Check the overall shape: See if the dots generally follow a straight path. Correlation only measures straight-line patterns, so if the dots curve or form a bend, linear correlation will not describe it accurately. 3. Look at the direction: Read the graph from left to right. If the dots slant uphill, that is a positive correlation (rr is positive), meaning as xx goes up, yy also goes up. If the dots slant downhill, that is a negative correlation (rr is negative), meaning as xx goes up, yy goes down. If the dots are just a random round blob, there is zero correlation (r=0r = 0).

4. Check the closeness (strength): See how tightly packed the dots are. If they cluster very tightly along an imaginary straight line, it is a strong correlation (closer to 11 or −1-1). If they are widely spread out and fuzzy, it is a weak correlation (closer to 00).

5. Spot the odd dots out (outliers): Look for any single dot that sits far away from the rest of the group. These extreme points can pull the line toward them and distort the correlation.

6. Get the exact number: Looking at the graph gives you the general trend, but you use a calculator or computer tool to calculate the exact correlation number rr, which will always fall between −1-1 and 11.


  • To find an estimate of a y value with a specific x value (y = money , x = year), find the difference of the starting year and the year you want to use, so 2017 - 1995 = 22

    • Plug the difference into the linear model and round as needed


  • To find the estimate of a x value for a specific y value, I just tested different numbers until I got it. So I started with 22, then went down until I found the Y value that was closest to the needed estimate.