October 2019
Beginner to intermediate
674 pages
16h 43m
English
We will consider the dataset known as faithful, which consists of data that was obtained by observing the eruptions of the Old Faithful geyser in the Yellowstone National Park in the US. The two variables in the dataset are eruptions, which are the length of time the geyser erupts, and waiting, which is the time until the next eruption. There were 272 observations:
In [46]: import statsmodels.api as sma
faithful=sma.datasets.get_rdataset("faithful")
faithful
Out[46]: <class 'statsmodels.datasets.utils.Dataset'>
In [48]: faithfulDf=faithful.data
faithfulDf.head()
Out[48]: eruptions waiting
0 3.600 79
1 1.800 54
2 3.333 74
3 2.283 62
4 4.533 85
5 rows × 2 columns
In [50]: len(faithfulDf)
Out[50]: 272
Let's calculate ...
Read now
Unlock full access