Chapter 10: Re-Expressing Data: Get it Straight AP Statistics.

Slides:



Advertisements
Similar presentations
Copyright © 2010 Pearson Education, Inc. Slide A least squares regression line was fitted to the weights (in pounds) versus age (in months) of a.
Advertisements

 Objective: To determine whether or not a curved relationship can be salvaged and re-expressed into a linear relationship. If so, complete the re-expression.
Chapter 10: Re-expressing data –Get it straight!
Copyright © 2011 Pearson Education, Inc. Curved Patterns Chapter 20.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 20 Curved Patterns.
Chapter 10: Re-Expressing Data: Get it Straight
Linear Regression Copyright © 2010, 2007, 2004 Pearson Education, Inc.
Copyright © 2010 Pearson Education, Inc. Chapter 8 Linear Regression.
Copyright © 2010 Pearson Education, Inc. Slide
Chapter 10 Re-Expressing data: Get it Straight
Get it Straight!! Chapter 10
Chapter 8 Linear Regression © 2010 Pearson Education 1.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 10 Re-expressing Data: Get it Straight!
Chapter 10 Re-expressing the data
Re-expressing data CH. 10.
Re-expressing the Data: Get It Straight!
Chapter 10 Re-expressing Data: Get it Straight!!
Introduction Data surrounds us in the real world. Every day, people are presented with numbers and are expected to make predictions about future events.
Inference for regression - Simple linear regression
STA291 Statistical Methods Lecture 27. Inference for Regression.
Transforming to achieve linearity
Chapter 4: More on Two-Variable (Bivariate) Data.
Inferences for Regression
Statistics Review Chapter 10. Important Ideas In this chapter, we have leaned how to re- express the data and why it is needed.
Chapter 10: Re-expressing Data It’s easier than you think!
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 Linear Regression.
Objective: Understanding and using linear regression Answer the following questions: (c) If one house is larger in size than another, do you think it affects.
DO NOW Read Pages 222 – 224 Read Pages 222 – 224 Stop before “Goals of Re-expression” Stop before “Goals of Re-expression” Answer the following questions:
Chapter 10 Re-expressing the data
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.
Chapter 10: Re- expressing Data by: Sai Machineni, Hang Ha AP STATISTICS.
Lecture 6 Re-expressing Data: It’s Easier Than You Think.
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.
 Find the Least Squares Regression Line and interpret its slope, y-intercept, and the coefficients of correlation and determination  Justify the regression.
Chapter 8 Linear Regression HOW CAN A MODEL BE CREATED WHICH REPRESENTS THE LINEAR RELATIONSHIP BETWEEN TWO QUANTITATIVE VARIABLES?
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 8- 1.
AP Statistics Section 4.1 A Transforming to Achieve Linearity.
Reexpressing Data. Re-express data – is that cheating? Not at all. Sometimes data that may look linear at first is actually not linear at all. Straight.
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.
Linear Regression Chapter 8. Fat Versus Protein: An Example The following is a scatterplot of total fat versus protein for 30 items on the Burger King.
Chapter 5 Lesson 5.4 Summarizing Bivariate Data 5.4: Nonlinear Relationships and Transformations.
Re-Expressing Data. Scatter Plot of: Weight of Vehicle vs. Fuel Efficiency Residual Plot of: Weight of Vehicle vs. Fuel Efficiency.
Chapter 9 Regression Wisdom
Copyright © 2010 Pearson Education, Inc. 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 Notes AP Statistics. Re-expressing Data We cannot use a linear model unless the relationship between the two variables is linear. If the relationship.
Statistics 8 Linear Regression. Fat Versus Protein: An Example The following is a scatterplot of total fat versus protein for 30 items on the Burger King.
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.
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
 Understand why re-expressing data is useful  Recognize when the pattern of the data indicates that no re- expression will improve it  Be able to reverse.
12.2 TRANSFORMING TO ACHIEVE LINEARITY To use transformations involving powers, roots, and logarithms to find a power or exponential model that describes.
Let’s Get It Straight! Re-expressing Data Curvilinear Regression
CHAPTER 3 Describing Relationships
Chapter 10: Re-Expression of Curved Relationships
Re-expressing the Data: Get It Straight!
Active Learning Lecture Slides
Chapter 10 Re-Expressing data: Get it Straight
Re-expressing Data: Get it Straight!
Re-expressing the Data: Get It Straight!
Re-expressing the Data: Get It Straight!
Re-expressing Data:Get it Straight!
Lecture 6 Re-expressing Data: It’s Easier Than You Think
A. Draw a trend line. It will be easier to write an equation
3.2 – Least Squares Regression
Re-expressing Data: Get it Straight!
Presentation transcript:

Chapter 10: Re-Expressing Data: Get it Straight AP Statistics

Weight vs. Fuel Efficieny Describe the relationship. How accurate is the model? The R-squared value is 81.6% Is the model appropriate for the data? Look at residual plot.

Residual Plot Is the model appropriate for the data? Look at the pattern in the residual plot. This shows that a linear model is not appropriate!!

What if linear model is not appropriate? We need to re-express it so that it is “linear”. Then we can proceed like normal—with R- squared and prediction (and more). In this situation, we will take the reciprocal of the fuel efficiency (so, instead of mpg it will be gallons per mile [1/y])

Re-expressed data, with residual Note: Our residual plot is of transformed variable

Why re-express? There will be many reasons, but in this example, suppose you want to predict the gas mileage of a Hummer (about 6400 pounds). If we use the non-re-expressed data, it would say that the gas mileage would be about 0. In the re-expressed data, it would say about 10.3 mpg (after “undoing” the re-expression).

Why do we Re-Express? 1. Make the distribution symmetric. It is easier to summarize the data (esp. the center) and it also makes it possible to use mean and standard deviation, which allows us to use a normal curve to predict.

Why do we Re-Express? 2. Make the spread of several groups more alike. Groups that share a common spread are easier to compare. Only can be used in SD that are common.

Why do we Re-Express? 3. Make form of Scatterplot more nearly linear. This allows us to describe the relationhip easier—allows us to use a linear model and all that goes with it. 4. Make scatter in scatterplot spread out evenly, rather than following a fan shape. This will be a requirement later on in course—related to #2

What re-expression works for Scatterplots?

Example Look at shape of distribution. What re- expression should we use?

Example

Predict the length of a flight in which the plane is traveling 480 mph.

Other hints to finding proper re- expression Logarithms can be very useful in re-expressing data to achieve linearity. However, the data needs to have values greater than zero. When you look at the scatterplot, you may recognize a pattern from prior courses. The chart on next page will help determine which re-expression to use when you recognize the graph

Type of Model Model Equation TransformationRe- Expression Equation Exponential Logarithmic Power

Logarithmic Function Exponential Function Power Function

Why Not Just a Curve? Straight lines are easy to understand. We understand and can interpret the slope and y-intercept We may want some of the other benefits from re-expressing data, such as symmetry or more equal spreads Is very important when we learn about Inferences for Regression

Be Careful Don’t expect the re-expressed model to be perfect Don’t choose a model based on R-squared value alone—look at residual plot!!! Multiple modes will not disappear when re-expressed Don’t try to re-express data that is like a rollercoaster If negative data values—add a small value to make the data greater than zero, the re-express (can’t take log of zero or negative number) If data values are far from one, the re-expression will have a smaller effect than if the data values are closer to one—subtract a constant to get closer to one—if years, use years away from a constant. Instead of 1950, use idea of “years since 1949, and use 1. SIMPLICITY!!!!!

The data below shows the results of an experiment that was attempting to find the relationship between the about of time a cup of coffee is left out and the temperature of that cup of coffee. The results are shown below. a.Create a scatterplot of the data and describe the relationship. b.Create an appropriate model for this data. Check it’s appropriateness. c.How accurately is the model in predicting the temperature of the cup of coffee? Give evidence. d.Predict the temperature of a cup of coffee that has been sitting out for 35 minutes. Show your work. e.Did the model underestimate or overestimate the temperature of a cup of coffee that has been sitting out for 30 min? Show all work. Time (min) Temp (F)