Daniela Stan Raicu School of CTI, DePaul University

Slides:



Advertisements
Similar presentations
CHAPTER 4: Scatterplots and Correlation. Chapter 4 Concepts 2  Explanatory and Response Variables  Displaying Relationships: Scatterplots  Interpreting.
Advertisements

CHAPTER 4: Scatterplots and Correlation
Chapter 41 Describing Relationships: Scatterplots and Correlation.
Describing Relationships: Scatterplots and Correlation
Examining Relationships Prob. And Stat. CH.2.1 Scatterplots.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
BPS - 3rd Ed. Chapter 41 Scatterplots and Correlation.
Chapter 14 Describing Relationships: Scatterplots and Correlation Chapter 141.
Essential Statistics Chapter 41 Scatterplots and Correlation.
CHAPTER 4 SCATTERPLOTS AND CORRELATION BPS - 5th Ed. Chapter 4 1.
Chapter 4 Scatterplots and Correlation. Explanatory and Response Variables u Interested in studying the relationship between two variables by measuring.
Chapter 4 Scatterplots and Correlation. Chapter outline Explanatory and response variables Displaying relationships: Scatterplots Interpreting scatterplots.
BPS - 5th Ed. Chapter 41 Scatterplots and Correlation.
Notes Chapter 7 Bivariate Data. Relationships between two (or more) variables. The response variable measures an outcome of a study. The explanatory variable.
Essential Statistics Chapter 41 Scatterplots and Correlation.
3. Relationships Scatterplots and correlation
Scatterplots Chapter 6.1 Notes.
CHAPTER 3 Describing Relationships
Basic Practice of Statistics - 3rd Edition
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Data Analysis and Statistical Software I ( ) Quarter: Autumn 02/03
Basic Practice of Statistics - 3rd Edition
Daniela Stan Raicu School of CTI, DePaul University
Basic Practice of Statistics - 3rd Edition
Basic Practice of Statistics - 5th Edition
Chapter 3: Describing Relationships
Daniela Stan Raicu School of CTI, DePaul University
CHAPTER 4: Scatterplots and Correlation
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Examining Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 4 - Scatterplots and Correlation
Basic Practice of Statistics - 3rd Edition
Chapter 3 Scatterplots and Correlation.
3.1: Scatterplots & Correlation
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Essential Statistics Scatterplots and Correlation
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Summarizing Bivariate Data
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
AP Stats Agenda Text book swap 2nd edition to 3rd Frappy – YAY
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3 Examining Relationships
Bivariate Data Response Variable: measures the outcome of a study (aka Dependent Variable) Explanatory Variable: helps explain or influences the change.
Chapter 3: Describing Relationships
Basic Practice of Statistics - 3rd Edition
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Presentation transcript:

Daniela Stan Raicu School of CTI, DePaul University CSC 323 Quarter: Winter 02/03 Daniela Stan Raicu School of CTI, DePaul University 9/18/2018 Daniela Stan - CSC323

Outline Chapter 2: Looking at Data – Relationships between two or more variables Scatterplots Correlation 9/18/2018 Daniela Stan - CSC323

Association Between Variables Two variables measured on the same individuals are associated if some values of one variable tend to occur more often with some values of the second variable than with other values of that variable. A response variable measures an outcome of a study. An explanatory variable explains or causes changes in the response variable. Explanatory variable ~ independent variable Response variable ~ dependent variable 9/18/2018 Daniela Stan - CSC323

Association Between Variables (cont.) Example 1: A study is conducted to determine if one can predict the yield of a crop based on the amount of yearly rainfall. The response variable in this study is: A. Yield of crop B. Amount of yearly rainfall C. The experimenter D. Either bushels or inches of water Example 2: A researcher is interested in determining if one could predict the score on a statistics exam from the amount of time spent studying for the exam. In this study, the explanatory variable is: A. The researcher B. The amount of time spent studying for the exam C. The score on the exam D. The fact that this is a statistics exam 9/18/2018 Daniela Stan - CSC323

Scatterplots A scatterplot displays the relationship between two quantitative variables. The values of one variable appear on the horizontal axis and the values of the other variable appear on the vertical axis. Always plot the explanatory variable, if there is one, on the horizontal axis (the x axis) of a scatterplot. Each individual in the data appears as the point in the plot fixed by the values of both variables for that individual. 9/18/2018 Daniela Stan - CSC323

Scatterplots (cont.) Example: State mean SAT mathematics score plotted against the percent of high school seniors in each state who took the SAT exam. Cluster 2: - Higher scores Linear negative relationship Cluster 1: - Low scores 9/18/2018 Daniela Stan - CSC323

Interpreting Scatterplots The overall pattern of a scatterplot can be described by the: - form - direction - strength of the relationship. Form: - linear or non-linear (curved relationships or clusters) Direction: - positive or negative association Strength: how closely the points follow a clear form: - strong or weak 9/18/2018 Daniela Stan - CSC323

Examples of Relationships 9/18/2018 Daniela Stan - CSC323

Adding categorical variables To add a categorical variable to a scatterplot, use a different plot color or symbol for each category. Example: The states are grouped in four regions: Region Midwest Northeast South West Categorical Variable 9/18/2018 Daniela Stan - CSC323

Examples on Scatterplots Problem 2.10 9/18/2018 Daniela Stan - CSC323

Measuring Strength & Direction of a Linear Relationship How closely does a non-horizontal straight line fit the points of a scatterplot? The correlation coefficient (often referred to as just correlation): r measure of the strength of the relationship: the stronger the relationship, the larger the magnitude of r. measure of the direction of the relationship: positive r indicates a positive relationship, negative r indicates a negative relationship. 9/18/2018 Daniela Stan - CSC323

Correlation Coefficient special values for r : a perfect positive linear relationship would have r = +1 a perfect negative linear relationship would have r = -1 if there is no linear relationship, or if the scatterplot points are best fit by a horizontal line, then r = 0 Note: r must be between -1 and +1, inclusive r > 0: as one variable changes, the other variable tends to change in the same direction r < 0: as one variable changes, the other variable tends to change in the opposite direction Plot 9/18/2018 Daniela Stan - CSC323

Correlation X Y x1 y1 x2 y2 … xn yn The correlation r measures the direction and strength of the linear relationship between two quantitative variables. Suppose we have the following data: X Y x1 y1 x2 y2 … xn yn Where sx, sy are the standard deviations for the two variables X and Y 9/18/2018 Daniela Stan - CSC323

More on Correlation Correlation ignores distinction between explanatory and response variables Correlation requires that both variables be quantitative Correlation is not affected by changes in the unit of measurement of either variable Correlation measures the strength of only linear relationships Correlation is not resistant measure, so outliers can greatly change the value of r. 9/18/2018 Daniela Stan - CSC323

Not all Relationships are Linear Miles per Gallon versus Speed Curved relationship (r is misleading) Speed varies from 20 mph to 60 mph MPG varies from trial to trial, even at the same speed Statistical relationship 9/18/2018 Daniela Stan - CSC323

Problems with Correlations Outliers can inflate or deflate correlations Groups combined inappropriately may mask relationships (a third variable) groups may have different relationships when separated Plot Reading Assignments Chapter 1 Chapter 2 (Sections 2.1 and 2.2) More on correlation: Problem 2.22/ page 132 9/18/2018 Daniela Stan - CSC323

What correlation numbers correspond to the points from the 6 scatterplots from the right? r = 0 r = 0.5 r = 0.9 r = -0.99 r = -0.7 r = -0.3 9/18/2018 Daniela Stan - CSC323