An illustrative example
We will now illustrate all the preceding points with an example. Suppose we're doing a study in which we would like to illustrate the effect of temperature on how often crickets chirp. The data for this example was obtained from the book The Song of Insects, by George W Pierce, which was written in 1948. George Pierce measured the frequency of chirps made by a ground cricket at various temperatures.
We want to investigate the frequency of cricket chirps and the temperature, as we suspect that there is a relationship between them. The data consists of 16 data points, and we will read it into a DataFrame.
The data is sourced from http://college.cengage.com/mathematics/brase/understandable_statistics/7e/students/datasets/slr/frames/slr02.html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access