Can we predict the cost of subway fare from the price of a slice of pizza? In the recent NY Times article Will Subway Fares Rise? Check at Your Pizza Place,

Slides:



Advertisements
Similar presentations
Regression Analysis Chapter 10.
Advertisements

Bi-Variate Data PPDAC. Types of data We are looking for a set of data that is affected by the other data sets in our spreadsheet. This variable is called.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-4 Variation and Prediction Intervals.
Learning Objectives 1 Copyright © 2002 South-Western/Thomson Learning Data Analysis: Bivariate Correlation and Regression CHAPTER sixteen.
Correlation and Regression Analysis
Correlation A correlation exists between two variables when one of them is related to the other in some way. A scatterplot is a graph in which the paired.
10.1 Scatter Plots and Trend Lines
BCOR 1020 Business Statistics Lecture 24 – April 17, 2008.
SCATTER PLOTS AND LINES OF BEST FIT
Calculating and Interpreting the Correlation Coefficient ~adapted from walch education.
1 Chapter 10 Correlation and Regression We deal with two variables, x and y. Main goal: Investigate how x and y are related, or correlated; how much they.
Correlational Research Strategy. Recall 5 basic Research Strategies Experimental Nonexperimental Quasi-experimental Correlational Descriptive.
DISCLAIMER This guide is meant to walk you through the physical process of graphing and regression in Excel…. not to describe when and why you might want.
Linear Regression and Correlation
Mathematical Modeling Making Predictions with Data.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-1 Review and Preview.
Researchers, such as anthropologists, are often interested in how two measurements are related. The statistical study of the relationship between variables.
Correlation and Regression
1. Graph 4x – 5y = -20 What is the x-intercept? What is the y-intercept? 2. Graph y = -3x Graph x = -4.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
1 Chapter 10, Part 2 Linear Regression. 2 Last Time: A scatterplot gives a picture of the relationship between two quantitative variables. One variable.
1 Chapter 10 Correlation and Regression 10.2 Correlation 10.3 Regression.
Correlation Chapter 7 The Basics A correlation exists between two variables when the values of one variable are somehow associated with the values of.
Vocabulary regression correlation line of best fit
Chapter 10 Correlation and Regression
 Graph of a set of data points  Used to evaluate the correlation between two variables.
Variation and Prediction Intervals
Correlation Section The Basics A correlation exists between two variables when the values of one variable are somehow associated with the values.
CHAPTER 4: TWO VARIABLE ANALYSIS E Spring.
Correlation and Regression. Section 9.1  Correlation is a relationship between 2 variables.  Data is often represented by ordered pairs (x, y) and.
PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.
Creating a Residual Plot and Investigating the Correlation Coefficient.
3.3 Correlation: The Strength of a Linear Trend Estimating the Correlation Measure strength of a linear trend using: r (between -1 to 1) Positive, Negative.
Chapter 4 Summary Scatter diagrams of data pairs (x, y) are useful in helping us determine visually if there is any relation between x and y values and,
5.4 Line of Best Fit Given the following scatter plots, draw in your line of best fit and classify the type of relationship: Strong Positive Linear Strong.
Correlation The apparent relation between two variables.
Chapter 9: Correlation and Regression Analysis. Correlation Correlation is a numerical way to measure the strength and direction of a linear association.
 Find the Least Squares Regression Line and interpret its slope, y-intercept, and the coefficients of correlation and determination  Justify the regression.
WARM – UP #5 1. Graph 4x – 5y = -20 What is the x-intercept? What is the y-intercept? 2. Graph y = -3x Graph x = -4.
Scatter Diagrams scatter plot scatter diagram A scatter plot is a graph that may be used to represent the relationship between two variables. Also referred.
1 Association  Variables –Response – an outcome variable whose values exhibit variability. –Explanatory – a variable that we use to try to explain the.
2.5 Using Linear Models A scatter plot is a graph that relates two sets of data by plotting the data as ordered pairs. You can use a scatter plot to determine.
AP Statistics HW: p. 165 #42, 44, 45 Obj: to understand the meaning of r 2 and to use residual plots Do Now: On your calculator select: 2 ND ; 0; DIAGNOSTIC.
.  Relationship between two sets of data  The word Correlation is made of Co- (meaning "together"), and Relation  Correlation is Positive when the.
Linear Regression What kind of correlation would the following scatter plots have? Negative Correlation Positive Correlation No Correlation.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
CORRELATION ANALYSIS.
The coefficient of determination, r 2, is The fraction of the variation in the value of y that is explained by the regression line and the explanatory.
6.7 Scatter Plots. 6.7 – Scatter Plots Goals / “I can…”  Write an equation for a trend line and use it to make predictions  Write the equation for a.
BPA CSUB Prof. Yong Choi. Midwest Distribution 1. Create scatter plot Find out whether there is a linear relationship pattern or not Easy and simple using.
Correlation and Regression Ch 4. Why Regression and Correlation We need to be able to analyze the relationship between two variables (up to now we have.
INFLATION AND UNEMPLOYMENT - IS THERE A CORRELATION? 1 © Council for Economic Education.
Copyright © Cengage Learning. All rights reserved. 8 9 Correlation and Regression.
Correlation & Linear Regression Using a TI-Nspire.
Copyright © Cengage Learning. All rights reserved. 8 4 Correlation and Regression.
Copyright © Cengage Learning. All rights reserved.
Pearson’s Correlation Coefficient
Objectives Fit scatter plot data using linear models with and without technology. Use linear models to make predictions.
Objectives Fit scatter plot data using linear models.
Chindamanee School English Program
2. Find the equation of line of regression
2-7 Curve Fitting with Linear Models Holt Algebra 2.
Correlation and Regression
STA 282 – Regression Analysis
CORRELATION ANALYSIS.
11A Correlation, 11B Measuring Correlation
Coefficient of Determination
Objectives Vocabulary
Help with Excel Graphs CHM 2046L.
Presentation transcript:

Can we predict the cost of subway fare from the price of a slice of pizza? In the recent NY Times article Will Subway Fares Rise? Check at Your Pizza Place, reporter Clyde Haberman wrote that in NY City, the subway fare and the cost of a slice of pizza have run remarkably parallel for decades. A random sample of costs (in dollar) of pizza and subway fares are listed in the table below. Year Cost of Pizza Subway Fare

To see the relationship between the price of a pizza slice and the subway fare, we can make a scatter plot in Excel:

What is correlation? Correlation measures the strength of a linear relationship between 2 variables (like the price of pizza and the subway fare) Variables can be positively or negatively correlated: – Positive correlation: As the value of one variable increases, so does the value of the other variable. – Negative correlation: As the value of one variable increases, the value of the other variable decreases. r = correlation coefficient – r is between -1 and 1 – Indicates the strength of the correlation, ignoring the sign

Examples of different r values r =1.00 r =.42 r =.85 r =.17 r =-0.98

In case of a non-linear relationship the value of r will be close to 0.

Back to pizza price & subway fare… Year Cost of Pizza Subway Fare To find the correlation coefficient r in Excel, type in: =CORREL(A2:A7, B2:B7) In this case, r = This indicates that there is a strong positive linear relationship between the two variables. Column AColumn B Row 2 Row 7

In fact, we can go one step farther! Question: What proportion of the variation in the subway fare can be explained by the variation in the costs of a slice of pizza? Answer: Find r 2 With r = 0.988, we get r 2 = This means that about 97.6% of the variation in the cost of subway fares can be explained by its linear relationship with the cost of pizza. This implies that about 2.4% of the variation in costs of subway fares cannot be explained by the costs of pizza. CAUTION: This does not mean that increases in pizza sales cause increases in subway fares. Both costs might be affected by some other variable lurking in the background!

How to see into the future In Excel scatter plot, go to Chart tools Layout Trendline Linear Trendline Excel can figure out the equation of this line for you! Just go to More Trendline Options…

How to see into the future, contd. Now you can use the trendline to make predictions! y = 0.945x Example: When the cost of a pizza slice was $1.25, what was the cost of subway fare? y = 0.945(1.25) = $1.22 Example: When the cost of a pizza slice is $2.25, what will the cost of subway fare be? y = 0.945(2.25) = $2.16 Example: When the cost of a pizza slice is $20, what will the cost of subway fare be? y = 0.945(20) = $18.94 Not an appropriate prediction!