load_longley#
- load_longley(y_name='TOTEMP')[source]#
加载 Longley 数据集用于带外生变量的预测。
- 参数:
- y_name: str, 可选 (默认值=”TOTEMP”)
目标变量 (y) 的名称
- 返回:
- y: pd.Series
待预测的目标时间序列。
- X: pd.DataFrame
问题所需的外生时间序列数据。
说明
此多元时间序列数据集包含 1947 年至 1962 年间的各种美国宏观经济变量,这些变量已知具有高度共线性。
维度: 多元, 6 序列长度: 16 频率: 年 数据集数量: 1
变量描述
TOTEMP - 总就业人数 GNPDEFL - 国民生产总值平减指数 GNP - 国民生产总值 UNEMP - 失业人数 ARMED - 武装部队规模 POP - 人口
参考文献
[1]Longley, J.W. (1967) “An Appraisal of Least Squares Programs for the Electronic Computer from the Point of View of the User.” Journal of the American Statistical Association. 62.319, 819-41. (https://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat)
示例
>>> from sktime.datasets import load_longley >>> y, X = load_longley()