Microsoft Developer Network
Explore the powerful time series algorithms available in SQL Server Analysis Services (SSAS) for forecasting and analyzing temporal data. Understand how to leverage these algorithms to uncover trends, seasonality, and patterns in your time-based datasets.
ARIMA is a widely used statistical method for time series forecasting. It models the temporal dependencies in data by considering past values, past forecast errors, and differencing to make data stationary.
Learn More →While not exclusively a time series algorithm, linear regression can be effectively used to model trends in time series data. It identifies a linear relationship between time and the target variable.
Learn More →Seasonal-Trend decomposition using Loess (STL) is a robust method for breaking down a time series into its constituent components: trend, seasonality, and residual (remainder).
Learn More →Exponential smoothing methods (like Simple, Holt's, and Holt-Winters) are effective for forecasting time series data with trends and seasonality. They assign exponentially decreasing weights to older observations.
Learn More →Follow these steps to implement time series analysis in your SSAS projects:
Here's a conceptual example of how you might configure and use the ARIMA algorithm:
-- Example DMQuery for ARIMA parameter tuning
SELECT
*
FROM
[YourMiningModel].Filter(
NODE_UNIQUE_NAME,
'C74F3E59-7B1E-4B1A-A7F8-394B84D9F7F1' -- Example Node ID for ARIMA
)
WITH (
NODE_CAPTION,
NODE_NAME,
NODE_DESCRIPTION,
AU_PROBABILITY,
P,
D,
Q
);
This example demonstrates querying parameters for an ARIMA model. For actual implementation, you would use SSAS tools and DMX (Data Mining Extensions).