Chapter 8

Curvilinear Regression: When Relationships Get Complicated

IN THIS CHAPTER

Bullet Understanding exponents

Bullet Connecting logarithms to regression

Bullet Pursuing polynomials

In Chapters 6 and 7 of Book 3, I describe linear regression and correlation — two concepts that depend on the straight line as the best-fitting summary of a scatterplot.

But a line isn’t always the best fit. Processes in a variety of areas, from biology to business, conform more to curves than to lines.

For example, think about when you learned a skill — like tying your shoelaces. When you first tried it, it took quite a while, didn’t it? And then whenever you tried it again, it took progressively less time for you to finish, right? Until finally, you can tie your shoelaces quickly but you can’t really get any faster — you’re now doing it as efficiently as you can.

If you plotted shoelace-tying-time (in seconds) on the y-axis and trials (occasions when you tried to tie your shoes) on the x-axis, the graph might look something like Figure 8-1. A straight line is clearly not the best summary of a plot like this one.

FIGURE 8-1: Hypothetical plot of learning a skill — like tying your shoelaces.

How do you find the ...

Get R All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.