Title: | Data for "Forecasting: Principles and Practice" (3rd Edition) |
---|---|
Description: | All data sets required for the examples and exercises in the book "Forecasting: principles and practice" by Rob J Hyndman and George Athanasopoulos <https://OTexts.com/fpp3/>. All packages required to run the examples are also loaded. Additional data sets not used in the book are also included. |
Authors: | Rob Hyndman [aut, cre, cph] , George Athanasopoulos [ctb], Mitchell O'Hara-Wild [ctb], Nuwani Palihawadana [ctb], Shanika Wickramasuriya [ctb], RStudio [cph] |
Maintainer: | Rob Hyndman <[email protected]> |
License: | GPL-3 |
Version: | 1.0.1.9000 |
Built: | 2024-11-17 03:40:00 UTC |
Source: | https://github.com/robjhyndman/fpp3-package |
aus_accommodation
contains quarterly data on Australian tourist accommodation
from short-term non-residential accommodation with 15 or more rooms, 1998 Q1 - 2016 Q2.
The data set also contains the Australian Consumer Price Index (CPI) for the same period.
Takings are in millions of Australian dollars,
Occupancy is a percentage of rooms occupied,
CPI is an index with value 100 in 2012 Q1.
Time series of class 'tsibble'
Australian Bureau of Statistics, Cat No 8635.0, Table 10, and Cat No 6401.0, Table 1.
aus_accommodation
aus_accommodation
Total annual air passengers (in millions) including domestic and international aircraft passengers of air carriers registered in Australia. 1970-2016.
Annual time series of class 'tsibble'.
World Bank.
aus_airpassengers
aus_airpassengers
Quarterly international arrivals to Australia from Japan, New Zealand, UK and the US. 1981Q1 - 2012Q3.
Quarterly time series of class 'tsibble'.
Tourism Research Australia.
aus_arrivals
aus_arrivals
Number of births in Australia.
Time series of class 'tsibble'
aus_births
contains monthly data with one measured variable:
Births : |
Number of births |
from January 1975 to December 2021 for the 6 states and 2 territories of Australia, indexed by:
Month : |
Year-month. |
#' Each series is uniquely identified using the key:
State : The state or territory. |
Australian Bureau of Statistics. https://www.abs.gov.au/statistics/people/population/births-australia/2022
aus_births
aus_births
aus_fertility
contains annual data on one measured variable:
Rate: | Fertility rate (per thousand women) |
Time series of class 'tsibble'
Each series is uniquely identified using two keys:
Region: | Australia, states and territories |
Age: | Age of the woman |
based on calendar year of registration data. It covers the period from 1975–2022.
Australian Bureau of Statistics. https://www.abs.gov.au/statistics/people/population/births-australia/2022
aus_fertility
aus_fertility
aus_inbound
contains monthly data with one measured variable:
Count: | Number of individuals arriving in Australia |
Time series of class 'tsibble'
Each series is uniquely identified using two keys:
County: | Country of stay/residence |
Purpose: | Purpose of travel |
covering the period from Jan 2005–Feb 2020.
Tourism Research Australia
aus_inbound
aus_inbound
Net Overseas Migration (NOM) to Australia.
Time series of class 'tsibble'
aus_migration
contains quarterly data with one measured variable:
NOM : |
The net gain or loss of population through immigration to Australia and emigration from Australia |
from 1981 Q2 to 2023 Q3 for the 6 states and 2 territories of Australia, indexed by:
Quarter : |
Year-quarter. |
NOM is based on an international traveller's duration of stay being in or out of Australia for 12 months or more, over a 16 month period.
Each series is uniquely identified using the key:
State : The state or territory. |
Australian Bureau of Statistics. https://www.abs.gov.au/statistics/people/population/national-state-and-territory-population/dec-2023. Cat No. 310102.
aus_migration
aus_migration
Weekly death counts and mortality rates in Australia.
Time series of class 'tsibble'
aus_mortality
contains weekly data with two measured variables:
Deaths : |
Death count |
Mortality : |
Mortality rate |
from 2015 week 01 to 2023 week 12 for five different age groups plus the total, categorised by sex.
Each series is uniquely identified using three keys:
Sex : |
Sex of the individual: Male, Female, or Both |
Age : |
Age group of the individual |
The mortality rate is defined as the number of deaths per thousand people in Australia in each week.
https://mortality.org/Data/STMF (Downloaded on 29 May 2024)
aus_mortality
aus_mortality
aus_outbound
contains monthly data with one measured variable:
Count: | Number of individuals departing Australia |
Time series of class 'tsibble'
Each series is uniquely identified using two keys:
County: | Destination |
Purpose: | Purpose of travel |
covering the period from Jan 2005–Jun 2017.
Tourism Research Australia
aus_outbound
aus_outbound
The total household expenditure for cigarette and tobacco consumption (CTC) in Australia.
Time series of class 'tsibble'
aus_tobacco
contains quarterly data with one measured variable:
Expenditure : |
The total expenditure |
from 1985 Q3 to 2023 Q4 for the 6 states and 2 territories of Australia, indexed by:
Quarter : |
Year-quarter. |
The prices are represented as a chain volume measure (a representation of constant prices) in billions of dollars.
Each series is uniquely identified using the key:
State : The state or territory. |
Australian Bureau of Statistics. https://www.abs.gov.au/statistics/economy/national-accounts/australian-national-accounts-national-income-expenditure-and-product/mar-2024
aus_tobacco |> autoplot(Expenditure) + scale_y_log10()
aus_tobacco |> autoplot(Expenditure) + scale_y_log10()
The number of new motor vehicles sold in Australia.
Time series of class 'tsibble'
aus_vehicle_sales
contains monthly data with one measured variable:
Count : |
The number of vehicles sold |
from January 1994 to December 2017 in Australia, indexed by:
Month : |
Year-month. |
Each series is uniquely identified using the key:
Type : The type of the vehicle sold (Passenger, SUV, Other). |
Australian Bureau of Statistics. https://www.abs.gov.au/statistics/industry/tourism-and-transport/sales-new-motor-vehicles/dec-2017. Cat No. 931401.
aus_vehicle_sales
aus_vehicle_sales
Five-minute call volume handled on weekdays between 7:00am and 9:05pm, beginning 3 March and 24 October 2003 (164 days).
Time series of class 'tsibble' at 5 minute intervals.
Jonathan Weinberg
Weinberg, Brown & Stroud (2007) "Bayesian forecasting of an inhomogeneous Poisson process with applications to call center data" Journal of the American Statistical Associiation, 102:480, 1185-1198.
bank_calls
bank_calls
Winning times for events at the Boston Marathon. 1897-2019.
Annual time series of class 'tsibble'.
Boston Athletic Association. https://www.baa.org/races/boston-marathon/results/champions
boston_marathon
boston_marathon
Monthly Canadian gas production, billions of cubic metres, January 1960 - February 2005
Monthly time series of class 'tsibble'.
Hyndman, R.J., Koehler, A.B., Ord, J.K., and Snyder, R.D., (2008) Forecasting with exponential smoothing: the state space approach, Springer.
http://www.exponentialsmoothing.net
canadian_gas
canadian_gas
This function lists all the conflicts between packages in the fpp3 collection and other packages that you have loaded.
fpp3_conflicts()
fpp3_conflicts()
Some conflicts are deliberately ignored: intersect
, union
,
setequal
, and setdiff
from dplyr; and intersect
,
union
, setdiff
, and as.difftime
from lubridate.
These functions make the base equivalents generic, so shouldn't negatively affect any
existing code.
A list object of class fpp3_conflicts
.
fpp3_conflicts()
fpp3_conflicts()
List all packages loaded by fpp3
fpp3_packages(include_self = FALSE)
fpp3_packages(include_self = FALSE)
include_self |
Include fpp3 in the list? |
A character vector of package names.
fpp3_packages()
fpp3_packages()
Total annual rice production (million metric tons) for Guinea. 1970-2011.
Annual time series of class 'tsibble'.
World Bank.
guinea_rice
guinea_rice
Monthly quotations and monthly television advertising expenditure for a US insurance company. January 2002 to April 2005
Monthly time series of class 'tsibble'.
Kindly provided by Dave Reilly, Automatic Forecasting Systems.
insurance |> ggplot(aes(x=TVadverts, y=Quotes)) + geom_point()
insurance |> ggplot(aes(x=TVadverts, y=Quotes)) + geom_point()
Daily average total pedestrian count (across different sensors) from 2019-01-01 to 2024-05-29.
Time series of class 'tsibble'
Melbourne Open Data Portal. https://data.melbourne.vic.gov.au
melb_walkers |> autoplot(Count)
melb_walkers |> autoplot(Count)
nsw_offences
contains monthly data with one measured variable:
Count: | Number of offences reported |
Time series of class 'tsibble'
Each series is uniquely identified using one key:
Type: | Offence type |
covering the period from Apr 1995–Dec 2023.
NSW Bureau of Crime Statistics and Research. https://bocsar.nsw.gov.au/
nsw_offences
nsw_offences
The number of employees (in thousands) in child day care services in New York City over the period the period from January 1990 to April 2024.
Time series of class 'tsibble'
ny_childcare
contains monthly data with two columns:
Month : |
Year-month |
Count : |
Number of employees. |
U.S. Bureau of Labor Statistics and Federal Reserve Bank of St. Louis, All Employees: Education and Health Services: Child Care Services in New York City, NY retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/SMU36935616562440001, 30 May 2024.
ny_childcare
ny_childcare
Daily page views on the OTexts website https://OTexts.com/ as recorded by Google analytics.
Time series of class 'tsibble'
otexts_views
contains daily data with two columns:
Date : |
Date for which the page views are recorded |
Pageviews : |
Page views on the OTexts website |
otexts_views
otexts_views
Annual prices for eggs, chicken, copper, nails, oil and wheat. Eggs, chicken, nails, oil and copper in $US; wheat in British pounds. All prices adjusted for inflation.
Annual time series of class 'tsibble'.
Makridakis, Wheelwright and Hyndman (1998) *Forecasting: methods and applications*, John Wiley & Sons: New York. Chapter 9.
prices |> autoplot(wheat)
prices |> autoplot(wheat)
Monthly sales for a souvenir shop on the wharf at a beach resort town in Queensland, Australia.
Monthly time series of class 'tsibble'.
Makridakis, Wheelwright and Hyndman (1998) *Forecasting: methods and applications*, John Wiley & Sons: New York. Exercise 5.8.
souvenirs |> autoplot(Sales)
souvenirs |> autoplot(Sales)
us_change
contains percentage changes in
quarterly personal consumption expenditure, personal disposable income,
production, savings and the unemployment rate for the US, 1970 to 2016.
Original $ values were in chained 2012 US dollars.
Time series of class 'tsibble'
Federal Reserve Bank of St Louis.
us_change
us_change
us_employment
contains monthly US employment data from January 1939
to June 2019. Each 'Series_ID' represents different sectors of the economy.
Time series of class 'tsibble'
U.S. Bureau of Labor Statistics
us_employment
us_employment
Weekly data beginning Week 6, 1991, and ending Week 3, 2017. Units are "million barrels per day".
Time series object of class 'tsibble'.
US Energy Information Administration.
us_gasoline
us_gasoline