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 ...