Bivariate Quantitative Data Using Scatter Plot

Unit: Exploring Two – Variable Data

Chapter: Bivariate quantitative data using scatter plots

Reference: – Scatter plot construction, Correlation, Best fit line, Regression line, Strength of relationship, outliers, Causation, Residual plots, Influential points, Transformation, Interpreting scatter plots

After studying this chapter, you should be able to understand:

  • Introduction to Scatter plot construction, Correlation.
  • Regression line & Strength of Relationship.
  • Outliers, Causation & Residual Plots.
  • Influential Points & Interpretation

Introduction to Scatter plot Construction

  1. Definition:
    • Scatter plots are an essential tool in exploratory data analysis, helping to reveal patterns and relationships between variables.
    • They are particularly useful for identifying potential outliers, clusters, and trends within data.
    • Different patterns in scatter plots include positive correlation (as one variable increases, the other tends to increase), negative correlation (as one variable increases, the other tends to decrease), and no correlation.
  1. Correlation:
    • The correlation coefficient "r" quantifies the degree of linear association between two variables.
    • A positive correlation means that as one variable increases, the other tends to increase.
    • A negative correlation means that as one variable increases, the other tends to decrease.
    • A correlation close to 0 indicates a weak linear relationship, while values closer to -1 or 1 indicate stronger relationships.
  2. Line of Best Fit (Regression Line):
    • The line of best fit minimizes the sum of the squared vertical distances (residuals) between data points and the line.
    • The slope "m" represents the rate of change of the dependent variable (y) with respect to the independent variable (x).
    • The y-intercept "b" is the predicted value of y when x is 0.
    • The equation of the line (y = mx + b) can be used for prediction and inference.
  3. Strength of Relationship:
    • The spread of data points around the line of best fit provides insight into the strength of the linear relationship.
    • A narrow spread indicates a strong relationship, while a wider spread suggests a weaker correlation.
  4. Outliers:
    • Outliers can significantly impact the correlation coefficient and the line of best fit.
    • It's important to investigate the reasons for outliers and consider whether they should be included in the analysis or treated separately.
  5. Causation vs. Correlation:
    • While correlation indicates a statistical association, it does not establish causation.
    • Spurious correlations, where variables appear to be related but are not causally linked, can occur.
  6. Residual Plots:
  7. Definition: A residual plot is a graphical representation of the differences (residuals) between observed data points and the predicted values from a statistical model, usually a regression line.
  8. Purpose: Residual plots help assess the goodness of fit of a model by examining the patterns of residuals. They provide insight into how well the model captures the variability in the data.
  9. Randomness: In a well-fitted model, the residuals should be randomly scattered around zero. A random pattern indicates that the model's assumptions are met and that the model is appropriate.
  10. Heteroscedasticity: If the spread of residuals changes as the values of the predictor variable change, it indicates heteroscedasticity. Heteroscedasticity suggests that the variability of the residuals is not constant across all levels of the predictor.
  11. Homoscedasticity: When the spread of residuals is roughly constant across all levels of the predictor variable, it indicates homoscedasticity. This is a desirable property for a regression model.
  12. Curvature: Non-linear patterns in the residual plot suggest that a linear model might not be appropriate. In such cases, a non-linear model or transformations may be needed.
  13. Fan-Shaped Pattern: A fan-shaped pattern in a residual plot often indicates heteroscedasticity, which might suggest the presence of unequal variances or other issues in the model.
  14. Influential Points:
  15. Definition: Influential points are individual data points that have a substantial impact on the results of a statistical analysis, such as the slope, intercept, and overall fit of a regression model.
  16. Leverage: Leverage refers to how much an individual data point can pull the regression line towards itself. Points with high leverage have extreme x-values and can significantly affect the slope of the line.
  17. Outliers vs. Influential Points: While outliers are data points far from the main cluster, influential points can be both outliers and non-outliers. Influential points can exert considerable influence on the regression line, even if they are not far from the main cluster.
  18. Cook's Distance: Cook's distance is a measure used to identify influential points in regression analysis. Points with high Cook's distance have a substantial impact on the model's fit.
  19. Highly Influential Points: Points with both high leverage and high residual values tend to be highly influential. These points can disproportionately affect regression coefficients and the overall model.
  20. Impact on Line: Influential points can alter the slope, intercept, and overall fit of the regression line. They can also affect statistical significance and confidence intervals.
  21. Detection and Treatment: Influential points should be carefully examined to determine their impact. In some cases, they might be influential due to genuine reasons, while in other cases, they could be data entry errors or anomalies.
  22. Robustness: Robust regression techniques, such as resistant regression or weighted least squares, can be used to mitigate the impact of influential points and outliers on the model's estimates.
  23. Transformations:
    • Non-linear relationships can be transformed to linear relationships by applying mathematical functions to the data.
    • Common transformations include taking the logarithm, square root, or reciprocal of the data.
  24. Interpreting Scatter Plots:
    • When interpreting scatter plots, consider the context of the data and the implications of the correlation and regression line for real-world scenarios.
    • Use scatter plots to identify trends, make predictions, and support statistical conclusions.

 

Residual Plots and Influential Points

Example: Heights and Weights of Students

Suppose you are conducting a study on the relationship between the heights and weights of a group of students. You have collected data from a sample of 15 students. Here's the data:

Solution: – Step 1: Create a Scatter Plot

  • Plot the height (x-axis) against the weight (y-axis) for each student.
  • Each student's data point represents their height and weight.

Step 2: Calculate the Correlation

  • Use a calculator or statistical software to calculate the correlation coefficient (Pearson's "r") between height and weight.

Step 3: Fit the Line of Best Fit (Regression Line)

  • Determine the equation of the line that best fits the data. The equation is y = mx + b, where "m" is the slope and "b" is the y-intercept.
  • Calculate the slope "m" and y-intercept "b" using the formulas:
  • Examine the scatter plot for patterns. Does it show a positive, negative, or no linear relationship between height and weight?
  • Interpret the correlation coefficient "r." A positive "r" indicates a positive linear relationship, a negative "r" indicates a negative linear relationship, and an "r" close to 0 indicates a weak or no linear relationship.

Step 5: Make Predictions

  • Use the equation of the line of best fit to make predictions. For example, you can predict the weight of a student based on their height or vice versa.

Step 6: Assess Residuals and Influential Points (Optional)

  • If desired, create a residual plot to assess how well the line of best fit fits the data.
  • Identify any influential points that might be affecting the model's results.

Most Read

Unit: Exploring Two – Variable Data Chapter: Linear Regression Models & Residual plots Reference: – Simple Linear Regression, Slope & Intercept, Residual & Residual Plots, Positive & Negative Residuals, Assumptions of Linear Regressions, Linearity & Normality, Influential points & Outliers, Transformations & Non-linear relationships, Coefficient of Determination, Model Assessment & Inference, Applications. After studying this […]

Unit: Exploring Two – Variable Data Chapter: Associations & Interpreting Correlations Reference: – Correlation coefficient, Scatter plots, Causation vs correlation, Pearson correlation coefficient, Spearman rank correlation, Kendall’s Tau, Coefficient of determination, Confounding variables, Outliers, strength of correlation. After studying this chapter, you should be able to understand: Correlation coefficient & Scatter plots. Causation vs correlation […]

Unit: Exploring Two – Variable Data Chapter: Represent & Statistics for 2 Categorical Variables Reference: – Two-way Tables, Constructing & Interpreting, Marginal & Conditional frequencies, Joint, Marginal & Conditional distribution, Segmented Bar chart & Stacked Bar chart, Relative Risk & Odds Ratio, Independence & Association of Data, Conditional Probability & Independence, Simpson’s Paradox, Categorical Data […]