section 4 1 transforming relationships n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Section 4.1 – Transforming Relationships PowerPoint Presentation
Download Presentation
Section 4.1 – Transforming Relationships

Loading in 2 Seconds...

  share
play fullscreen
1 / 21
remedy

Section 4.1 – Transforming Relationships - PowerPoint PPT Presentation

57 Views
Download Presentation
Section 4.1 – Transforming Relationships
An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Section 4.1 – Transforming Relationships • Linear regression using the LSRL is not the only model for describing data.  • Some data are not best described linearly. • In some cases the removal of outliers from data may cause a drop in the correlation so that linear no longer does a satisfactory job of describing the data.  • In some cases the bulk of the data may not be linear at all. • Non-linear relationships between two quantitative variables can sometimes bechanged into linear relationships bytransforming one or both variables. 

  2. Section 4.1 – Transforming Relationships • Transforming can be thought of as re-expressing the data. • We may want to transform either the explanatory variable x, or the response variable y in a scatter plot, or maybe even both. • We will call the transformed variable "t" when talking about the transforming in general. • Many variables take only 0 or positive values, so we are particularly interested in how functions behave for positive values of t.

  3. The following models are common functions in which you should be familiar with their shape and equation. These are models in which t > 0.

  4. The following scatterplot represents brain weight against body weight for 96 species of mammals.

  5. The scatterplot is not very satisfactory since most mammals are so small relative to elephants and hippos • The lower left corner of the plot shows that most of the species overlap forming a “blob” • The correlation with all 96 species is r = .86, but removing the elephant, r = .50 • To get a closer look at the observations that are in the lower-left corner, the 4 outliers were removed

  6. This scatterplot represents the 92 observations with the 4 outliers removed. Instead of a linear relationship, you can see that as body weight increases, the graph bends to the right which is representative of a logarithmic function.

  7. The following plot includes the original 96 observations, but instead of plotting they-value against the x-value, the logarithm of the brain weights (y-value) were plotted against the logarithm of the body weights (x-value). There are no longer any extreme outliers or very influential observations and the pattern is very linear with r = .96

  8. The ladder of power functions is in the form: square linear reciprocal square root logarithmic inverse

  9. Concavity of Power Functions

  10. Exponential Growth • Exponential growth occurs when a variable is multiplied by a fixed number in each time period. • Ex. – consider a population of bacteria in which each bacterium splits into two each hour. Beginning with 1, we have 2 after one hour, 4 after two hours, 8 after three hours, 16 after four hours, 32, 64, 128 and so on. After one day of doubling there are or 16,777,216 bacteria in the population. • Exponential growth increases by a fixedpercentageof the previous total whereas linear growth increases by a fixed amount in each equal time period. • If a variable grows exponentially, its logarithm grows linearly.

  11. Transforming data

  12. Review Properties of Logarithms

  13. Example 1 – Growth of Cell Phone Use • The cell phone industry enjoyed substantial growth in the 1990’s. One way to measure cell phone growth is to look at the number of subscribers. Find a linear model to predict the number of subscribers in the year 2000. There is an increasing trend, but the overall pattern is not linear. The pattern looks like an exponential curve. Is this exponential growth?

  14. Example 1 – Growth of Cell Phone Use • While the curve may appear to be exponential growth, we can’t simply depend on what our eyes see. • If you suspect exponential growth, first calculate the ratios of consecutive terms to see if they are the same fixed percentage of the previous total. • To avoid overflow in the calculator it is good practice to code the years (let 1990 = 1) • Don’t use 0 since you can’t take the log of 0 On average, subscribers were increasing around 35% each year. Means that the # of subscribers in 1994 is 151% of or 1.51 times the # of subscribers in 1993. Could also say that it’s a 51% increase.

  15. Example 1 – Growth of Cell Phone Use • Now that you have verified that the ratios are similar, the next step is to apply a mathematical transformation that changes exponential growth into linear growth. • We had hypothesized that an exponential model of the form represented the cell phone growth, therefore we need to use properties of logarithms to transform:

  16. Example 1 – Growth of Cell Phone Use • Since looks like we can plot versus x and if the data are linear we would have better reason to believe that the cell phone growth is exponential. • The plot appears slightly concave down, but certainly more linear than the original scatterplot. • Applying the least squares regression we get: • This means that 98.2% of the variation in is explained by the least squares regression of on x.

  17. Example 1 – Growth of Cell Phone Use • Although the model appears to be useful for prediction purposes because the is so high, you should always check the residual plot. • The purpose of finding a linear model is to be able to predict the number of subscribers in 2000. One approach would be to discard the first 4 data points since they are the oldest and furthest removed from the year 2000.

  18. Example 1 – Growth of Cell Phone Use • By removing the first 4 points, the improves to .99897 which is even better than the first. • The LSRL is represented by:

  19. Example 1 – Growth of Cell Phone Use • Now that we have the linear model, we can use it to predict the number of subscribers in the year 2000 by substituting an 11 in for “NewX” and then “undoing” the logarithm

  20. Homework: p.212-213 #’s 6-8