Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation.

Similar presentations


Presentation on theme: "Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation."— Presentation transcript:

1 Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation

2 4.1: Transforming to Achieve Linearity Two specific types of nonlinear growth: An exponential function has the form y = ab x. A power function follows the form y = ax b. To test if data follows linear or nonlinear growth, check the difference between consecutive y-values: There is linear growth if a fixed amount is added to y for each increase in x. The data is exponential if the common ratio, found using y n /y n-1, is equal between consecutive y-values. If the common ratio > 1, exponential growth is occurring, and if the common ratio < 1, exponential decay is occurring. Both exponential and power function equations use essentially the same format: Transform into linear forms, use the linear regression to find the LSRL, and take an inverse transformation to get a curve modeling the original data.

3 Exponential Functions Once you know that the data represents an exponential function, plug the data into your calculator. Create a separate list for log(y) and use that information to derive the LSRL: log ŷ = a + bx To determine the linearity, check the correlation and residual plot. The residual plot is the graph of x vs RESID. A pattern would indicate that a linear relationship is not the best model for the association of the variables. Raise 10 to both sides of the equation (ie, take the inverse of log), and simplify: 10 log ŷ = 10 a+bx ŷ = (10 a )(10 bx ) This gives you the exponential form to fit the original data. Graph the original scatterplot, and overlay with this equation as y = 10^(RegEQ)

4 Example Electronic Funds Transfer (EFT) machines first appeared in the 1980s, and their use increased drastically in the years following. Look at the table on the following slide, and determine if the transactions grew exponentially. Then obtain the LSRL equation, and from that obtain the equation for the model.

5 Table YearNumber of transactions (millions) 19853,579 19905,942 19916,642 19927,537 19938,135 19948,958 199510,464 199611,830

6 Steps 1—Graph initial data (x vs. y) 2—Test for exponential growth (y n /y n-1 ) 3—Perform linear regression on initial data 4—Look at residual plot of initial data and consider r and r 2 5—Transform y to log y 6—Graph transformed data (x vs. log y) 7—Perform linear regression on transformed data 8—Look at residual plot, r, and r 2 9—Perform inverse transformation of linear equation to arrive at exponential model 10—Graph initial data with exponential model

7 Results log ŷ = -.3481 +.0459x where ŷ is the predicted number of transactions in millions and x is the year since 1900 r 2 =.9979, r =.9990 This tells us that our linear model above is a good fit for the transformed date and that our exponential model will be a good fit for the initial data. In particular, we can see that 99.79% of the variation in the log of transactions in millions can be explained by the linear relationship with the year. ŷ = (10 -.3481 )(10.0459x )

8 Power Functions Begin with the form y = ax b. Take the logarithm of both sides to obtain log y = (log ax b ), and simplify: log ŷ = log a + (b log x) This is a form of a linear equation, so the least-squares regression can be derived from it, with log x as the horizontal variable and log y as the vertical variable. Further simplify the equation to obtain: log ŷ = log a + log x b To return to the original form, perform inverse transformation by raising 10 to each side of the equation, and simplify: 10 log ŷ = 10 log a + log x b ŷ = (10 log a )(10 log x b ) = (10 log a )(10 log x ) b = (10 log a )(x b ) = ax b

9 Example Using the following table for Olympic weightlifting records, determine if the data shows exponential growth or power regression, and determine the correlation of the LSRL. Then plot the residuals and transformed points, and find a new equation of best fit for the original scatterplot.

10 Table Weight Class LimitRecord Weight Lifted 119633 130678 141739 154787 167.5809 183864 200.5886 218926 238948


Download ppt "Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation."

Similar presentations


Ads by Google