Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nonlinear Regression Problem 4.14 Heart Weights of Mammals.

Similar presentations


Presentation on theme: "Nonlinear Regression Problem 4.14 Heart Weights of Mammals."— Presentation transcript:

1 Nonlinear Regression Problem 4.14 Heart Weights of Mammals

2 Consider the following heart weights in a variety of mammals:

3 This plot on ordinary graph paper shows that much of the data is compressed and hard to see. The same is true for the scatterplot seen on the calculator. We can try a plot using the semilog paper.

4 This semilog plot is much better, but we still have a curved plot. Plotting the log y by x on the calculator gives a similar result. We can try loglog paper. This paper has a logarithmic scale for both the x and y axes.

5 This loglog paper allows for a wide spread of values in both the x and y dimensions.

6 Now showing scales for both x and y. Next we will plot the points on this log y by log x graph.

7 This plot is linear, or very nearly so, and we can now apply our knowledge of linear regression. Comparing this to our work on the graphing calculator, yields this scatterplot of log y by log x.

8 This loglog plot looks reasonable with a line to fit the data.

9 On my calculator, I have this arrangement of data lists: L1 is ventricle length L2 is heart weight L3 is log (ventricle length) L4 is log (heart weight) Now perform linear regression of L3 on L4 and save to Y 1. We now check the residual plot. Enter the residuals in L5 using the list RESID.

10 Just a reminder on calculating the residuals, with the cursor on the header for L5, press, scroll under NAMES to RESID and select, then press. Now make a scatterplot of the residuals by log (ventricle length).

11 The scatterplot is patternless, thus confirming our use of linear regression. This also confirms our model using log x and log y. When we write our equation we must remember to write log x for x and log y for y. Recalling the regression screen: We write the equation: Note the large correlation coefficient, as well. This says that our linear relationship is very strong.

12 Mathematically, we tend to avoid leaving an equation in this form and convert it to an equivalent expression without the logs. When we write the equation in the final form, it suggests more readily that this is a power function. or

13 To check this against the original data we recreate the original scatterplot and store the final equation in Y 2. (For those interested in short cuts, the values a and b from the linear regression equation are stored in the VARS Statistics EQ register. Press then or.) So you may enter the equation in Y 2, as shown, or just type it in using the numbers instead of a and b: This looks like a very good model for the data. It also fits our knowledge of mass being third order while length is first order.


Download ppt "Nonlinear Regression Problem 4.14 Heart Weights of Mammals."

Similar presentations


Ads by Google