load_lynx

load_lynx(return_array=True)[source]

Load the lynx univariate time series dataset for forecasting.

Parameters:
return_arraybool, default=True

return series as an np.ndarray if True, else as a pd.Series.

Returns:
np.ndarray or pd.Series/DataFrame

Lynx sales dataset

Notes

The annual numbers of lynx trappings for 1821–1934 in Canada. This time-series records the number of skins of predators (lynx) that were collected over several years by the Hudson’s Bay Company. The dataset was taken from Brockwell & Davis (1991) and appears to be the series considered by Campbell & Walker (1977).

Dimensionality: univariate Series length: 114 Frequency: Yearly Number of cases: 1

This data shows aperiodic, cyclical patterns, as opposed to periodic, seasonal patterns.

References

[1]

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988). The New S

Language. Wadsworth & Brooks/Cole.

[2]

Campbell, M. J. and Walker, A. M. (1977). A Survey of statistical

work on the Mackenzie River series of annual Canadian lynx trappings for the years 1821–1934 and a new analysis. Journal of the Royal Statistical Society series A, 140, 411–431.

Examples

>>> from aeon.datasets import load_lynx
>>> y = load_lynx()
>>> type(y)
<class 'numpy.ndarray'>
>>> y = load_lynx(return_array=False)
>>> type(y)
<class 'pandas.core.series.Series'>