Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 20 Curved Patterns.

Slides:



Advertisements
Similar presentations
Copyright © 2011 Pearson Education, Inc. Curved Patterns Chapter 20.
Advertisements

Chapter 10: Re-Expressing Data: Get it Straight
Chapter 10 Re-Expressing data: Get it Straight
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 10 Re-expressing Data: Get it Straight!
Chapter 10 Re-expressing the data
Re-expressing the Data: Get It Straight!
Curve Fitting Learning Objective: to fit data to non-linear functions and make predictions Warm-up (IN) 1.Find all the critical points for 2.Solve by factoring.
Regression Diagnostics Checking Assumptions and Data.
Lecture 19 Transformations, Predictions after Transformations Other diagnostic tools: Residual plot for nonconstant variance, histogram to check normality.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Multiple Regression Model Building Basic Business Statistics 11 th Edition.
Copyright ©2011 Pearson Education 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft Excel 6 th Global Edition.
Business Forecasting Chapter 4 Data Collection and Analysis in Forecasting.
Copyright © 2011 Pearson Education, Inc. Multiple Regression Chapter 23.
Relationship of two variables
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 25 Categorical Explanatory Variables.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft.
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.1 Using Several Variables to Predict a Response.
Copyright © 2011 Pearson Education, Inc. Regression Diagnostics Chapter 22.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 22 Regression Diagnostics.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 23 Multiple Regression.
Chapter 10: Re-Expressing Data: Get it Straight AP Statistics.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 27 Time Series.
M25- Growth & Transformations 1  Department of ISM, University of Alabama, Lesson Objectives: Recognize exponential growth or decay. Use log(Y.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 19 Linear Patterns.
Copyright © 2011 Pearson Education, Inc. The Simple Regression Model Chapter 21.
Chapter 10 Re-expressing the data
Fitting Curves to Data 1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 5: Fitting Curves to Data Terry Dielman Applied Regression.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 10 Re-expressing Data: Get It Straight!. Slide Straight to the Point We cannot use a linear model unless the relationship between the two.
Copyright © 2010 Pearson Education, Inc. Slide A least squares regression line was fitted to the weights (in pounds) versus age (in months) of a.
Bivariate Data Analysis Bivariate Data analysis 4.
Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 21 The Simple Regression Model.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 6 Association between Quantitative Variables.
SWBAT: Calculate and interpret the residual plot for a line of regression Do Now: Do heavier cars really use more gasoline? In the following data set,
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
A. Write an equation in slope-intercept form that passes through (2,3) and is parallel to.
LEAST-SQUARES REGRESSION 3.2 Least Squares Regression Line and Residuals.
AP Statistics Section 4.1 A Transforming to Achieve Linearity.
Copyright © 2011 Pearson Education, Inc. Regression Diagnostics Chapter 22.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 24 Building Regression Models.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Multiple Regression Model Building Basic Business Statistics 10 th Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
If the scatter is curved, we can straighten it Then use a linear model Types of transformations for x, y, or both: 1.Square 2.Square root 3.Log 4.Negative.
Chapter 5 Lesson 5.4 Summarizing Bivariate Data 5.4: Nonlinear Relationships and Transformations.
Copyright © 2010 Pearson Education, Inc. Chapter 10 Re-expressing Data: Get it Straight!
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 10 Re-expressing Data: Get it Straight!
Chapter 10 Notes AP Statistics. Re-expressing Data We cannot use a linear model unless the relationship between the two variables is linear. If the relationship.
Chapter 4 More on Two-Variable Data. Four Corners Play a game of four corners, selecting the corner each time by rolling a die Collect the data in a table.
Copyright © 2011 Pearson Education, Inc. Association between Quantitative Variables Chapter 6.
Statistics 10 Re-Expressing Data Get it Straight.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 10 Re-expressing Data: Get it Straight!
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
HW 14 Key. 19:38 Convenience Shopping. It’s rare that you’ll find a gas station these days that only sells gas. It’s become more common to find a convenience.
Copyright © 2017, 2014 Pearson Education, Inc. Slide 1 Chapter 4 Regression Analysis: Exploring Associations between Variables.
Chapter 15 Multiple Regression Model Building
Chapter 4: Basic Estimation Techniques
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 10: Re-Expression of Curved Relationships
Active Learning Lecture Slides
Chapter 13 Multiple Regression
Re-expressing Data:Get it Straight!
GET OUT p.161 HW!.
CHAPTER 3 Describing Relationships
3.2 – Least Squares Regression
Presentation transcript:

Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 20 Curved Patterns

Copyright © 2014, 2011 Pearson Education, Inc Detecting Nonlinear Patterns What improvement in mileage should a manufacturer expect from reducing the weight of a car?  Use regression analysis to find an equation that summarizes the association between gas mileage and weight  This pattern of association is not linear, but curved

Copyright © 2014, 2011 Pearson Education, Inc Detecting Nonlinear Patterns Recognizing Nonlinearity  Will changes in the explanatory variable result in equal sized changes in the estimated response, regardless of the value of x?  Does trimming 200 pounds from a large SUV have the same effect on mileage as trimming 200 pounds from a small compact?

Copyright © 2014, 2011 Pearson Education, Inc Detecting Nonlinear Patterns Scatterplot with Fitted Line

Copyright © 2014, 2011 Pearson Education, Inc Detecting Nonlinear Patterns Mileage (MPG) vs Weight (1000’s pounds)  The least squares fitted line is Estimated Combined MPG = 43.3 – 5.19 Weight (1,000 lbs).  The line has an r 2 = 0.70 and s e = 2.9 MPG.  The equation estimates that mileage would increase, on average, by MPG by trimming 200 pounds from the weight of a vehicle.

Copyright © 2014, 2011 Pearson Education, Inc Detecting Nonlinear Patterns Residual Plot Easier to spot curved pattern in the residuals.

Copyright © 2014, 2011 Pearson Education, Inc Transformations  Transformation: re-expression of a variable by applying a function to each observation.  Transformations allow the use of regression analysis to describe a curved pattern.  Two nonlinear transformations useful in business applications: reciprocal and logarithms.

Copyright © 2014, 2011 Pearson Education, Inc Transformations Choosing An Appropriate Transformation  The process of choosing the right transformation is usually iterative.  Among the possible choices, select the one that captures the curvature of the data and produces an interpretable equation.

Copyright © 2014, 2011 Pearson Education, Inc Transformations Choosing An Appropriate Transformation Match the pattern in a scatterplot of y on x to one of the shapes to find an appropriate transformation.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Convert Observed Data d into 1/d  The reciprocal transformation is useful when dealing with variables that are already in the form of a ratio, such as miles per gallon.  In the car example, apply this transformation to the response variable and multiply by 100. The resulting response is number of gallons it takes to go 100 miles.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Scatterplot with Fitted Line Estimated Gallons/100 Miles = Weight r 2 = s e = Fuel consumption (gallons/100 miles) vs. weight has a linear pattern.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Residual Plot Outliers apparent (i.e., sports cars).

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Comparing Linear and Nonlinear Equations  r 2 is slightly larger for the nonlinear equation (71% to 70%); however, this is not a valid comparison since the equations have different response variables.  Valid comparisons are visual and substantive.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Visual Comparison The curve produced by transforming MPG provides a better fit to the data.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Visual Comparison Comparison of estimated MPG from two regression equations.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Substantive Comparison  The reciprocal equation treats weights differently than the linear equation.  In the reciprocal equation, differences in weight matter less as cars get heavier.  This diminishing effect of changes in weight makes more sense than a constant decrease.

Copyright © 2014, 2011 Pearson Education, Inc Reciprocal Transformation Substantive Comparison What is the estimated mileage saved by shaving 200 pounds from a vehicle? Linear equation predicts 1.04 MPG. Reciprocal equation predicts 2.1 MPG for a 3,000- pound car but only 0.5 MPG for a 6,000-pound SUV.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Convert Observed Data d into log d  The logarithm transformation is useful when the association between variables is more meaningful on a percentage scale.  Example: How much should a supermarket chain charge for a national brand of pet food?

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Timeplots of Sales and Price of Pet Food

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Scatterplot with Fitted Line Estimated Sales Volume = 190,480 – 125,190 Price r 2 = 0.83

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Residual Plot Easier to spot curved pattern in the residuals.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Scatterplot with Fitted Line Estimated log e (Sales Volume) = – log e Price r 2 = 0.955

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Residual Plot No apparent curved pattern left in the residuals.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Comparing Equations The curve produced by taking log transformations of the data provides a better fit to the data.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Comparing Equations Predicting sales volume with the linear and log-log equation.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Comparing Equations  The log-log equation shows that customers are more price sensitive at low prices.  For example, an average price change from $0.80 to $0.90 leads to a drop of more than 27,000 cans in estimated sales volume. In contrast, a change from $1.10 to $1.20 leads to a smaller drop in sales of about 9,500 cans.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Elasticity  Elasticity: measure that relates % change in x to % change in y; slope in a log-log regression equation.  Can use elasticity to find the optimal price of pet food for the supermarket chain.

Copyright © 2014, 2011 Pearson Education, Inc Logarithm Transformation Elasticity Optimal Price = Cost = = $1.017 Estimated profit is maximized at this price.

Copyright © 2014, 2011 Pearson Education, Inc. 29 4M Example 20.1: OPTIMAL PRICING Motivation How much should a convenience store charge for a half-gallon of orange juice? The orange juice costs the chain $1 to stock and sell.

Copyright © 2014, 2011 Pearson Education, Inc. 30 4M Example 20.1: OPTIMAL PRICING Method In order to determine the optimal price, need to estimate elasticity from a regression of log sales on log price. The chain collected data on sales of orange juice from stores at 50 different locations. The stores sold orange juice at different prices.

Copyright © 2014, 2011 Pearson Education, Inc. 31 4M Example 20.1: OPTIMAL PRICING Method

Copyright © 2014, 2011 Pearson Education, Inc. 32 4M Example 20.1: OPTIMAL PRICING Method

Copyright © 2014, 2011 Pearson Education, Inc. 33 4M Example 20.1: OPTIMAL PRICING Mechanics The least squares regression of log sales on log price is Estimated log e Sales = log e Price

Copyright © 2014, 2011 Pearson Education, Inc. 34 4M Example 20.1: OPTIMAL PRICING Mechanics – Check Conditions All conditions satisfied.

Copyright © 2014, 2011 Pearson Education, Inc. 35 4M Example 20.1: OPTIMAL PRICING Mechanics – Optimal Price At $2.33, each store can expect to sell 28 cartons of orange juice for an estimated profit of $37.24.

Copyright © 2014, 2011 Pearson Education, Inc. 36 4M Example 20.1: OPTIMAL PRICING Message The chain would make higher profits by decreasing the price of a half-gallon of orange juice from its current price of $3.00 to $2.33.

Copyright © 2014, 2011 Pearson Education, Inc. 37 Best Practices  Anticipate whether the association between y and x is linear.  Check that a line summarizes the relationship between the explanatory variable and the response both visually and substantively.  Stick to models you can understand and interpret.

Copyright © 2014, 2011 Pearson Education, Inc. 38 Best Practices (Continued)  Interpret the slope carefully.  Graph your model in the original units.

Copyright © 2014, 2011 Pearson Education, Inc. 39 Pitfalls  Don’t think that regression only fits lines.  Don’t forget to look for curves, even in models with high values of r 2.  Don’t forget lurking variables.  Don’t compare r 2 between models with different responses.