Section E. Measuring the Strength of A Linear Association

Similar documents
Lecture 1: Statistical Reasoning 2. Lecture 1. Simple Regression, An Overview, and Simple Linear Regression

Section D. System Architecture

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression

IQR = number. summary: largest. = 2. Upper half: Q3 =

Resources for statistical assistance. Quantitative covariates and regression analysis. Methods for predicting continuous outcomes.

Multiple Regression White paper

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010

Bivariate (Simple) Regression Analysis

A straight line is the graph of a linear equation. These equations come in several forms, for example: change in x = y 1 y 0

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false.

Regression Analysis and Linear Regression Models

Exam 4. In the above, label each of the following with the problem number. 1. The population Least Squares line. 2. The population distribution of x.

MDM 4UI: Unit 8 Day 2: Regression and Correlation

BIO 360: Vertebrate Physiology Lab 9: Graphing in Excel. Lab 9: Graphing: how, why, when, and what does it mean? Due 3/26

Machine Learning - Regression. CS102 Fall 2017

1. Determine the population mean of x denoted m x. Ans. 10 from bottom bell curve.

An Introduction to Growth Curve Analysis using Structural Equation Modeling

Curve Fitting with Linear Models

Linear Regression. Problem: There are many observations with the same x-value but different y-values... Can t predict one y-value from x. d j.

Correlation. January 12, 2019

Week 4: Simple Linear Regression III

Part I, Chapters 4 & 5. Data Tables and Data Analysis Statistics and Figures

3. Data Analysis and Statistics

Cosmic Ray Shower Profile Track Finding for Telescope Array Fluorescence Detectors

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Math 214 Introductory Statistics Summer Class Notes Sections 3.2, : 1-21 odd 3.3: 7-13, Measures of Central Tendency

Unit Maps: Grade 8 Math

The Coefficient of Determination

2011 Excellence in Mathematics Contest Team Project Level II (Below Precalculus) School Name: Group Members:

Fall 2012 Points: 35 pts. Consider the following snip it from Section 3.4 of our textbook. Data Description

Unit Essential Questions: Does it matter which form of a linear equation that you use?

8: Statistics. Populations and Samples. Histograms and Frequency Polygons. Page 1 of 10

Session One: MINITAB Basics

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Scatterplot: The Bridge from Correlation to Regression

6th Grade P-AP Math Algebra

Dealing with Data in Excel 2013/2016

Six Weeks:

Applying Supervised Learning

Year 10 General Mathematics Unit 2

6th Grade Advanced Math Algebra

Unit Maps: Grade 8 Math

Measuring the Stack Height of Nested Styrofoam Cups

Mathematics Scope & Sequence Grade 8 Revised: June 2015

Experimental Design and Graphical Analysis of Data

Week 5: Multiple Linear Regression II

Multiple Linear Regression

Continuous Improvement Toolkit. Normal Distribution. Continuous Improvement Toolkit.

Math 121 Project 4: Graphs

Algebra 2 Chapter Relations and Functions

Selected Introductory Statistical and Data Manipulation Procedures. Gordon & Johnson 2002 Minitab version 13.

Basic Calculator Functions

Using Excel for Graphical Analysis of Data

Lecture 12. August 23, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Instructions for Using ABCalc James Alan Fox Northeastern University Updated: August 2009

Data analysis using Microsoft Excel

Reference

Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very

How to use FSBForecast Excel add-in for regression analysis (July 2012 version)

Evolution of the Telephone

After opening Stata for the first time: set scheme s1mono, permanently

Probabilistic Analysis Tutorial

Project 11 Graphs (Using MS Excel Version )

Eureka Math. Algebra I, Module 5. Student File_B. Contains Exit Ticket, and Assessment Materials

Learning and Inferring Depth from Monocular Images. Jiyan Pan April 1, 2009

Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017

SLStats.notebook. January 12, Statistics:

StatCalc User Manual. Version 9 for Mac and Windows. Copyright 2018, AcaStat Software. All rights Reserved.

Exercise: Graphing and Least Squares Fitting in Quattro Pro

QUESTIONS 1 10 MAY BE DONE WITH A CALCULATOR QUESTIONS ARE TO BE DONE WITHOUT A CALCULATOR. Name

Applied Regression Modeling: A Business Approach

Learner Expectations UNIT 1: GRAPICAL AND NUMERIC REPRESENTATIONS OF DATA. Sept. Fathom Lab: Distributions and Best Methods of Display

MAT 110 WORKSHOP. Updated Fall 2018

Exploratory data analysis with one and two variables

1. Descriptive Statistics

Minitab 17 commands Prepared by Jeffrey S. Simonoff

Table Of Contents. Table Of Contents

Chapter 4: Analyzing Bivariate Data with Fathom

IAT 355 Visual Analytics. Data and Statistical Models. Lyn Bartram

Building Better Parametric Cost Models

Mathematics Scope & Sequence Grade 8 Revised: 5/24/2017

STAT 705 Introduction to generalized additive models

Example 1: Given below is the graph of the quadratic function f. Use the function and its graph to find the following: Outputs

MS&E 226: Small Data

Section 3.2: Multiple Linear Regression II. Jared S. Murray The University of Texas at Austin McCombs School of Business

Lab 4: Distributions of random variables

8. MINITAB COMMANDS WEEK-BY-WEEK

1. Solve the following system of equations below. What does the solution represent? 5x + 2y = 10 3x + 5y = 2

Further Maths Notes. Common Mistakes. Read the bold words in the exam! Always check data entry. Write equations in terms of variables

Error Analysis, Statistics and Graphing

Math 263 Excel Assignment 3

Bootstrapping Method for 14 June 2016 R. Russell Rhinehart. Bootstrapping

The Normal Distribution. John McGready, PhD Johns Hopkins University

Unit 0: Extending Algebra 1 Concepts

Copyright 2015 by Sean Connolly

Geology Geomath Estimating the coefficients of various Mathematical relationships in Geology

How to use FSBforecast Excel add in for regression analysis

12 m. 30 m. The Volume of a sphere is 36 cubic units. Find the length of the radius.

Applied Regression Modeling: A Business Approach

Data Mining. ❷Chapter 2 Basic Statistics. Asso.Prof.Dr. Xiao-dong Zhu. Business School, University of Shanghai for Science & Technology

Transcription:

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. Your use of this material constitutes acceptance of that license and the conditions of use of materials on this site. Copyright 2009, The Johns Hopkins University and John McGready. All rights reserved. Use of these materials permitted only in accordance with license rights granted. Materials provided AS IS ; no representations or warranties provided. User assumes all responsibility for use, and all liability related thereto, and must independently review all materials for accuracy and efficacy. May contain materials owned by others. User is responsible for obtaining permissions for use from third parties as needed.

Section E Measuring the Strength of A Linear Association

Strength of Association The slope of a regression line estimates the magnitude and direction of the relationship between y and x; it encapsulates how much y differs on average with differences in x The slope estimate and standard error can be used to address the uncertainty in this estimate with regards to the true magnitude and direction of the association in the population from which the sample was taken from Slopes do not impart any information about how well the regression line fits the data in the sample; the slope gives no indication of how close the points get to the estimated regression line 3

Strength of Association Another quantity that can be estimated via linear regression is the coefficient of determination, R 2 This is a number that ranges from 0 to 1, with larger values indicate closer fits of the data points and regression line R 2 measures strength of association by comparing variability of points around the regression line to variability in y-values ignoring x 4

Example: Arm Circumference and Height How close do the points get to the line: can we quantify? 5

Example: Arm Circumference and Height (SR1 flashback) the sample standard deviation of the y-values ignoring the corresponding potential information in x is This measures how far on average each of the sample y-values falls from the overall mean all y-values In this example s = 1.48 cm 6

Example: Arm Circumference and Height Visualization on the scatterplot 7

Example: Arm Circumference and Height Standard deviation of regression, referred to as root mean square error is average distance of points from the line: how far on average each y falls from its mean predicted by its corresponding x-value 8

Example: Arm Circumference and Height Each distance is : this is computed for each data point in the sample 9

Using Stata: Arm Circumference and Height regress command in Stata gives s y x 10

Example: Arm Circumference and Height If s = s y x, then knowing x does not yield a better guess for the mean of y than using the overall mean (flat regression line) The smaller s y x is relative to s, the closer the points are to the regression line R 2 functionally measures how much smaller s y x is than s: as such it is an estimate of the amount of variability in y explained by taking x into account 11

Using Stata: Arm Circumference and Height regress command in Stata gives R 2 : childs height explains (an estimated) 46% of the variation in arm circumferences 12

Example: Arm Circumference and Height R 2 and r r = the properly signed square root of R 2 ; the proper sign is the same sign as the slope in the regression r is called the correlation coefficient (not to be confused with the regression coefficients great names, huh) Allowable values 0 R 2 1 If relationship between y and x is positive 0 r 1 If relationship between y and x is negative -1 r 0 In this example, 13

Example: Arm Circumference and Height So from the example: child height explains (an estimated) 46% of the variation in arm circumferences This is just an estimate based on the sample; a 95% CI can be computed but its not easy to do (and not given readily by the computer); also the procedure for estimating the 95% CI is not so good So this means an estimated 54% of the variability in arm circumference is not explained by child s height Some if this unexplained variability may be explained by factors other then height Multiple linear regression will allow us to estimate the relationship between arm circumference, height, and other child characteristics in one analysis 14

Example 2: Hemoglobin and Packed Cell Volume regress command in Stata gives R 2 : PCV explains (an estimated) 51% of the variation in hemoglobin levels 15

Example: Hemoglobin and PCV regress command in Stata gives R 2 of 0.51; the slope is positive, so 16

Example 3: Wages and Years of Education regress command in Stata gives R 2 : years of education explains (an estimated) 15% of the variation in hourly wages Here 17

Example 4: Arm Circumference and Child Sex regress command in Stata gives R 2 : sex (female = 1) explains (an estimated) 0.2% of the variation in arm circumference Here ; in this sample of data female sex is negatively correlated with arm circumference 18

What Is a Good R 2? There are some important things to keep in mind about R 2 and r These quantities are both estimates based on the sample of data frequently reported without some recognition of sampling variability (for example, a 95% confidence interval) Low R 2 and r is not necessarily bad Many outcomes can not/will not be fully or close to fully explained, in terms of variability, by any one single predictor 19

What Is a Good R 2? The higher the R 2 values, the better the x predicts y for individuals in a sample/population, as individual y-values vary less about their estimated means based on x However, there may be important overall associations between the mean of y and x even though there is a lot of individual variability in y-values about their means estimated by x In the wages example, years of education explained an estimated 15% of the variability in hourly wages The association was statistically significant showing that average wages were greater for persons with more years of education However, for any single education level (year), still there is a lot of variation in wages for individual workers 20

Slope versus R 2 Slope estimates the magnitude and direction of the relationship between y and x Estimates a mean difference in y for two groups who differ by one-unit in x The slope will change if the units change for y and/or for x Larger slopes are not indicative of stronger linear association: smaller slopes are not indicative of weaker linear association R 2 measures strength of linear association; r measures strength and direction Neither R 2 or r measures magnitude Neither R 2 or r changes with changes in units 21

Using Stat: Arm Circumference and Height Regression of arm circumference (cm) on height in centimeters R 2 = 0.46 or 46%; 22

Using Stat: Arm Circumference and Height Regression of arm circumference on height in inches R 2 = 0.46 or 46%; 23