Exploratory
  • Introduction
  • Product Features
    • Summary View
    • Table View
    • Row Filter
    • Column Filter
    • Dashboard
    • Dashboard (日本語)
    • Note
    • Note (日本語)
    • Steps (Right-hand side)
    • Branch
    • Parameter
    • Parameter (日本語)
    • Export
    • Share
      • Share Type
      • Chart / Analytics
      • Data
      • Report (Note / Dashboard)
      • Notification
      • Version History
      • Restore Older Version
      • CSV API
    • Share (日本語)
      • 共有のタイプ
      • チャート / アナリティクス
      • データ
      • レポート (ノート / ダッシュボード)
      • 通知
      • バージョンの履歴
      • 古いバージョンの復元
      • CSV API
    • Schedule
      • Manage Schedules
      • Notification
      • Scheduling History
    • Schedule (日本語)
      • スケジュールの設定
      • 通知
      • スケジュールの履歴
    • Team
      • Manage Teams
    • Team (日本語)
      • チームの設定
    • Project
      • Import
      • Export
      • Search
  • Data Import
    • File Data
      • CSV / Delimited File
      • Amazon S3
      • Google Drive
      • Google Cloud Storage
      • Excel
      • JSON
      • Log File
      • Microsoft Azure
      • Stats - SAS / SPSS / STATA
      • RData / RDS
      • Parquet File
      • EDF - Exploratory
    • Database Data
      • SQL Troubleshooting
      • Create Connection
      • Amazon Athena
      • Amazon Aurora
      • Amazon Redshift
      • Amazon Redshift (日本語)
      • Google BigQuery
      • HP Vertica
      • MariaDB / MySQL DB
      • MariaDB / MySQL DB (日本語)
      • Microsoft Access
      • MongoDB
      • ODBC
      • Oracle
      • PostgreSQL
      • PostgreSQL (日本語)
      • Presto
      • Snowflake
      • SQLServer (DSN)
      • SQLServer
      • Teradata
      • Treasure Data
    • Cloud Apps Data
      • Create Connection
      • FRED - Federal Reserve of Economic Data
      • Github Issues
      • Google Analytics
      • Google Analytics (日本語)
      • Google Spreadsheet
      • Google Cloud Storage
      • Salesforce
      • Twitter Search
      • Stripe
      • Weather Data
      • Stock Price Data
    • Write R Script as Data
      • Currency Exchange Rate
    • Write R Script as Data (日本語)
    • Web Page Scraping
    • Text Input Data
    • Data Source Extension
      • Quandl
      • Holiday
      • RSS Data
    • Create Custom Data Source
  • Data Wrangling
    • Command Line mode for faster and more flexible data interaction in Exploratory
    • Select / Remove Columns
    • Reorder Columns
    • Create New Calculation
    • Create New Calculation for Multiple Columns
    • Summarize (Aggregate)
    • Group
    • Filter
    • Rename
    • Arrange (Sort)
    • Top / Bottom N
    • Join
    • Merge
    • Gather
    • Spread
    • Pivot
    • Expand
    • Complete
    • Separate
    • Unite
    • Bind Rows
    • Bind Columns
    • Keep Only Unique Rows
    • Keep Only Duplicated Rows
    • Slice
    • Drop NA
    • Sample
    • Impute NA
    • Fill
    • Create Buckets
    • Assign New Values to Existing Values - Recode
    • Assign New Values by Setting Conditions - Case When
    • Work with Categories
    • Data Type Conversion
    • Row as header
    • Ungroup
    • Unnest
    • Separate List Items into Columns (Unnest Wider)
    • Separate List Items into Rows (Unnest Longer)
    • Separate Address (Japan)
    • Hoist
    • Remove Empty Rows
    • Remove Empty Columns
    • Clean Column Names
    • Window Calculation
    • Window Calculation (日本語)
    • Add Row
    • Text Wrangling
    • Regular Expression Cheat Sheet
    • Regular Expression Cheat Sheet (日本語)
  • Visualization
    • Types
      • Pivot
      • Summarize Table
      • Table
      • Bar
      • Line
      • Area
      • Pie/Ring
      • Radar
      • Histogram
      • Density Plot
      • Scatter (No Aggregation)
      • Scatter (With Aggregation)
      • Boxplot
      • Violin
      • Error Bar
      • Error Bar (Summarized Data)
      • Map - Standard
      • Map - Extension
      • Map - Long/Lat
      • Map - Heatmap
      • Heatmap
      • Contour
      • Number
      • Word Cloud
      • Word Cloud (日本語)
    • Features
      • Trend Line
      • Reference Line
      • Repeat By
      • Window Calculation
      • Date/Time Aggregation
      • Show Range
      • Highlight
      • Change Marker
      • Multiple Y-Axis Columns
      • Layout Configuration
      • Column Configuration
      • Column Configuration Dialog
      • Color and Group Setting
      • Color and Group Setting (日本語)
      • Color Setting
      • User Color Palette Setting
      • Pin
      • Save as PNG/SVG
      • Save as Exploratory Data File
      • Share/Schedule
      • URL Link
      • Category (Binning)
      • Highlight
      • Limit Values
      • 'Others' Group
      • Edit Display Name
      • Missing Value Handling
      • Rename Column Names
      • Axis Setting
      • Axis Formatting
      • Show Detail
      • Fit to Screen (Table)
      • Number of Unique Values Check
      • Number of Unique Values Check (日本語)
  • Analytics
    • Correlation
    • Distance
    • K-Means Clustering
    • Principal Component Analysis
    • Factor Analysis
    • Correspondence Analysis
    • Linear Regression Analysis
    • Logistic Regression Analysis
    • Generalized Linear Models
    • Survival Curve
    • Cox Regression
    • Random Survival Forest
    • Decision Tree
    • Random Forest
    • XGBoost
    • Time Series Forecasting (Prophet)
    • Time Series Forecasting (ARIMA)
    • Time Series Clustering
    • Anomaly Detection
    • Word Count
    • Text Clustering with Topic Model (LDA)
    • Market Basket Analysis
    • T Test
    • T Test (Aggregated Data)
    • ANOVA
    • Wilcoxon Test
    • Kruskal-Wallis Test
    • Chi-Square Test
    • A/B Test
    • Normality Test
    • Prediction
    • Dictionaries for Text Analysis
  • Statistics
    • Correlation
    • Distance
    • Cosine Similarity
    • SVD
    • Multi Dimensional Scaling
    • T-test
    • F-test
    • Chi-square test
    • A/B Test (Bayesian)
  • Machine Learning
    • Linear Regression
    • Logistic Regression
    • GLM
    • Multinomial Logistic Regression
    • K-means Clustering
    • Random Forest
    • XGBoost
    • Forecasting
    • Time Series Clustering
    • Anomaly Detection
    • Survival Curve
    • Survival Model (Cox Regression)
    • Market Basket
    • Causal Impact
    • Evaluate Prediction - Regression
    • Evaluate Prediction - Binary
    • Calculate ROC
    • Evaluate Prediction - Multiclass
    • Prediction
    • Prediction - Binary Classification
    • Prediction - Survival Model
    • Simulate Survival Curve
    • Extract Summary of Fit
    • Extract Parameter Estimates
    • Run ANOVA Test
    • Fix Imbalanced Data (SMOTE)
  • Text Analysis
    • Tokenize Text
    • Create N-gram Tokens
    • Calculate tf-idf
    • Count Text Pairs
  • Extend with R
    • R Package Install
    • Custom R Script
    • Custom Model Function
  • Setup
    • Disable McAfee virus scan
    • Change Repository Location
    • Change Repository Location (日本語)
    • Holidays Data for Forecast
    • Possible Reasons for Install Error
    • Upgrade Microsoft .NET Framework
  • Diagnostics
    • Log file for debugging
    • Log file for debugging (日本語)
    • Startup Log file for debugging
    • Startup Log file for debugging (日本語)
    • Check version of Exploratory Desktop
    • How to Recover the History Data
  • Keyboard shortcuts
Powered by GitBook
On this page
  • Time Series Forecasting
  • Input Data
  • Properties
  • How to Use This Feature
  • "Forecasted" View
  • "Trend" View
  • "Yearly" View
  • "Weekly" View
  • "Daily" View
  • "Effects" View
  • "Data" View
  • Evaluation of Forecasting Models
  • "Forecasted" View in Test Mode
  • "Summary" View in Test Mode
  • Countries for Holidays
  • R Package
  • Exploratory R Package

Was this helpful?

  1. Analytics

Time Series Forecasting (Prophet)

PreviousXGBoostNextTime Series Forecasting (ARIMA)

Last updated 4 years ago

Was this helpful?

Time Series Forecasting

You can quickly build time series forecasting models with the Prophet algorithm and visualize the insights including forecasted values, seasonality, trend, and effects.

There are a few blog posts about the Time Series Forecasting with Prophet.

  • How-to Guides (incl. Tutorials) in English -

  • 使い方ガイド(日本語)-

Input Data

Input data should be a time series data. Each row should represent one observation with date/time. It should have the following columns.

  • Date/Time Column - A Date or POSIXct column to indicate when the observations were made.

  • Value Column - A Numeric column that stores observed values.

  • External Predictors - Optional. If specified, forecast is made based on those columns, in addition to the trend and seasonality seen in the Value Column.

  • Holiday Column - A categorical column that indicates type of holiday for the day of the observation. When logical column is selected, TRUE means it is a holiday and FALSE means it is not.

Properties

There are many properties to configure how to build the models and how to transform the data before passing it to the algorithm.

  • Analytics Properties

    • Forecasting Time Period - Length of periods (e.g. days, months, years...) to forecast.

    • Uncertainty Interval - Controls the width of displayed uncertainty intervals. The default is 0.8. Probability which is covered by uncertainty interval.

    • Simulations for Uncertainty Interval - Number of simulations to estimate uncertainty interval.

  • Seasonalities

    • Yearly Seasonality - By default, whether to use yearly seasonality is automatically determined, but you can explicitly specify it here.

    • Quarterly Seasonality - By default, it is not used.

    • Monthly Seasonality - By default, it is not used.

    • Weekly Seasonality - By default, whether to use weekly seasonality is automatically determined, but you can explicitly specify it here.

    • Daily Seasonality - By default, whether to use weekly seasonality is automatically determined, but you can explicitly specify it here.

    • Strength of Seasonality - Controls the strength of seasonality taken into account in the forecasting.

    • Seasonality Mode - This option controls whether the Seasonality, Holiday, and External Predictors have additive or multiplicative effect in the forecasting. Default is Additive.

  • Holidays

    • Strength of Holiday Effect - Controls the strength of holiday effect taken into account in the forecasting.

    • Use Built-in Country Holiday Data - By setting this option to Yes, you can specify list of country codes whose holiday data should be considered in making forecast.

    • Country for Holiday Data - Specify list of country codes here. For supported countries, take a look at .

  • Limits

    • Trend Upper Limit - Upper Limit of trend. Largest possible value for the trend to be forecasted. e.g. Size of entire market, etc.

    • Trend Lower Limit - Lower limit of trend. Takes effect only when Trend Upper Limit is specified.

  • Changepoints

    • Changepoint Period (Ratio) - Change points are detected only within specified ratio of training period from the beginning of data. Default is 0.8, which means change points are detected only within the first 80% period of the training data.

    • Number of Potential Changepoints - Number of automatically selected candidates for changepoints. Used when Potential Changepoints are not specified.

    • Flexibility of Changepoint Selection - Larger value makes the trend line more flexible, by allowing more changepoints.

    • Potential Changepoints - You can specify points of time at which trend could have changed, as candidates of changepoints.

  • Other Properties

    • MCMC Samples for Full Bayes - If a value greater than 0 is set, full Bayesian inference with the specified number of MCMC samples is performed. If 0, which is the default, is set, MAP estimation is performed instead of full Bayesian inference.

  • Data Preprocessing

    • Missing Value Handling for Value - How to fill missing values after aggregation of data. There are following options. The default is No Fill.

      • No Fill

      • Fill with Previous Value

      • Fill with Zero

      • Linear Interpolation

      • Spline Interpolation

    • Missing Value Handling for Predictors - How to fill missing values of External Predictors after aggregation. Options are same as "Missing Value Handling for Value".

  • Evaluation

    • Test Mode - When this option is set to TRUE, the last part of the input data for the period specified by "Forecasting Time Period" is not used for training data, and kept to test predictive performance of the model.

    • Time Period for Test Data - Length of periods (e.g. days, months, years...) at the end of the data to be kept as test data.

How to Use This Feature

  1. Under Analytics view, select "Time Series Forecasting (Prophet)" for Analytics Type.

  2. Select a column for Date and select an appropriate scale (e.g. Floor to Week).

  3. (Optional) Select a column and aggregate function for Y Axis. The default is Number of Rows.

  4. (Optional) Select columns and aggregate functions External Predictors.

  5. (Optional) Select a column for Holiday Column.

  6. (Optional) Select a column to group subjects with "Repeat By" column selector. For each group, a separate small chart will be displayed.

  7. Click Run button to run the analytics.

  8. Select each view type (explained below) see the detail of the analysis.

"Forecasted" View

"Forecasted" View displays how the future values look like. with a line chart. Blue line is for actual values and orange line is for forecasted values. Orange band shows uncertainty interval.

You can check "Autoscale Y Axis" checkbox to make the Y axis scale optimized.

"Trend" View

"Trend" View displays actual values (blue line), and trend line (orange line). It also displays change points of the trend line, and how much change of slope was made at each change point (green bars).

You can check "Autoscale Y Axis" checkbox to make the Y axis scale optimized.

"Yearly" View

"Yearly" View displays yearly seasonality.

"Weekly" View

"Weekly" View displays weekly seasonality, when time unit is DAY or smaller.

"Daily" View

"Daily" View displays daily seasonality, when time unit is HOUR or smaller.

"Effects" View

"Data" View

Evaluation of Forecasting Models

You can enable 'Test Mode' to evaluate the forecasting model. This will split the data into Training and Test periods, build a model based on the training data and evaluate the forecasted values against the test data.

You can enable it from the property.

"Forecasted" View in Test Mode

The dark blue line is the actual data in the training period, and the light blue line is the actual data in the test period. You can compare the orange line with the light blue line to see how close the forecasted values are against the actual values.

"Summary" View in Test Mode

There are several metrics to help you evaluate the forecasting model's performance. They are presented under "Summary" tab.

  • RMSE (Root Mean Square Error) : Root of mean of squares of difference between actual value and forecasted value.

  • MAE (Mean Absolute Error) : Mean of absolute differences between actual value and forecasted value.

  • MAPE (Mean Absolute Percentage Error) : Mean of absolute differences in percentage of actual value.

  • MASE (Mean Absolute Scaled Error)

Countries for Holidays

Following is the list of country codes that are supported for "Countries or Holidays" property.

Code

Country Name

AR

Argentina

AT

Austria

AU

Australia

BD

Bangladesh

BE

Belgium

BR

Brazil

BY

Belarus

CA

Canada

CH

Switzerland

CN

China

CO

Colombia

CZ

Czechia

DE

Germany

DK

Denmark

EG

Egypt

ES

Spain

FI

Finland

FR

France

GB

United Kingdom

HR

Croatia

HU

Hungary

ID

Indonesia

IE

Ireland

IN

India

IT

Italy

JP

Japan

MX

Mexico

MY

Malaysia

NL

Netherlands

NO

Norway

NZ

New Zealand

PH

Philippines

PK

Pakistan

PL

Poland

PT

Portugal

RU

Russia

SE

Sweden

SI

Slovenia

SK

Slovakia

TH

Thailand

TR

Turkey

UA

Ukraine

US

United States

VN

Vietnam

ZA

South Africa

R Package

Exploratory R Package

"Effects" displays decomposition of forecasted value into trend, seasonalities, holiday effects, and effects of external predictors.

"Data" View shows a table with both past data and forecasted data.

Take a look at for more details on how the evaluation method works.

Take a look at for more details on each metric.

Time Series Forecasting view uses the R Package under the hood.

For details about prophet usage in Exploratory R Package, please refer to the

this note
this note
Prophet
prophet R package's Function Reference Guide
Prophet's Official Documents
github repository
Link
Link
this table