Questions tagged [decomposition]

Decomposition might refer to Time Series Decomposition. Decomposing a time-series into Seasonal and Trend components can be achieved by using several methods, such as STL (which uses a Loess smoothing algorithm).

Prefer using if applicable.


Time series data can exhibit a variety of patterns, and it is often helpful to split a time series into several components, each representing an underlying pattern category.

There are three types of time series patterns: trend, seasonality and cycles. When we decompose a time series into components, we usually combine the trend and cycle into a single trend-cycle component (often just called the trend for simplicity). Thus we can think of a time series as comprising three components: a trend-cycle component, a seasonal component, and a remainder component (containing anything else in the time series). For some time series (e.g., those that are observed at least daily), there can be more than one seasonal component, corresponding to the different seasonal periods.

345 questions
0
votes
1 answer

How to use the current solution of the master into the subproblem constraints in Benders Decomposition algorithm?

I am working with Benders Decomposition and for the moment I am using the bendersatsp.py file in order to adapt this code for my own MIP problem. The situation is that in my case the solution of the master takes part in some constraints of the…
0
votes
1 answer

Statsmodels seasonal decomposition - Trend not a straight line

This query refers to decomposition of classic Airline passengers data into Trend, Seasonal and Residual. We expect linear trend to be a straight line. However, the result is not so. I wonder what is the logic behind extraction of Trend. Can you…
Regi Mathew
  • 2,603
  • 3
  • 24
  • 38
0
votes
1 answer

Analysis of Time Series data

I want to determine an appropriate model for daily stock index having the graph given below. It could be seen that the data has a trend but does it have seasonality too. If so what model is it i.e (additive or multiplicative ) and what would be…
Jor_El
  • 187
  • 8
0
votes
1 answer

Why is the Trend component of this Chistiano-Fitzgerald filter (mFilter's cffilter) so overfitted?

The goal: I am attempting to extract the seasonal and trend component from a time series using a band pass filter, due to issues with loess-based methods, which you can read more about here. The data: The data is daily rainfall measurements from a…
Clayton Glasser
  • 153
  • 1
  • 11
0
votes
1 answer

R's decompose/stl functions unable to completely extract annual seasonality from daily time series

Context first, questions at the bottom. I have 10 years of daily precipitation data that exhibits an annual seasonality, which I am trying to model using ARMA methods and then forecast. Data here, time series object creation below. I am aware that…
Clayton Glasser
  • 153
  • 1
  • 11
0
votes
1 answer

How to decompose data in R

Does anyone have suggestions on how to decompose this data set in r? Also, the first column is coming up as character, but when I ran ggplot, it was correctly analyzed as date data. Do I still need to convert it to date? And if so, how?
0
votes
0 answers

Implementing the coin change algorithm with upper and lower limits on composition values

I'm working on a real-world problem where I have theoretical protein sequences and associated experimental protein masses. I'm attempting to decompose the experimental protein masses into all possible compomers of amino acids of known masses to…
michaelmccarthy404
  • 498
  • 1
  • 5
  • 19
0
votes
1 answer

Applying Benders decomposition in CPLEX Studio IDE

How to use Benders decomposition in Cplex Studio IDE? (In Cplex documentation, they just speak about implementation of Benders in APIs)
0
votes
0 answers

R: Time Series error when using stl

I have the following vector: vector2 <- c(24048068,26598794,21576111,20196318,26785149,27248835,23879436,29962147, 27757825,30110057,39532376,31020232) an turned it to a time series object ts <- ts(vector, start =c(2017,06), end…
nississippi
  • 327
  • 2
  • 17
0
votes
2 answers

Quadtree issue - storing redundant info

I have an image which is not a square (m x n dimension). Also its dimensions are not to the base 2 (i.e m not = 2^k & n not = 2^k). I have dealt with this by placing the image in a larger square (the next power of two) using the following: int width…
user559142
  • 12,279
  • 49
  • 116
  • 179
0
votes
1 answer

Should I maximally decomposite my tables in my relational database?

I have a postgres database with one table: id Device1_Value Device1_SomeAdditionalInfo Device2_Value Device2_SomeInfo Device3_Value Should I decomposite it to three tables: One: id Device1_Value Device1_SomeAdditionalInfo Two: id…
pepeevich
  • 183
  • 1
  • 4
  • 20
0
votes
1 answer

Determination of k value using for (variable in vector) { in R

I am trying to find the value of k which is a constant in Decompostion models Wt = W0 e^-kt I am using R script to calculate it. However, I am having trouble in selection of the data set. Example data Site Treatment Month Repli WD W2 …
Mr Good News
  • 121
  • 1
  • 3
  • 15
0
votes
1 answer

How are coefficients estimated in Unobserved Components from the statsmodels package?

I am working on a time series that contains daily sales data over 2 and a half years. The aim of the project is to estimate the impact of marketing expenditure on the sales, while accounting for seasonality and trend. I was planning on using…
0
votes
0 answers

Callback in Bender's decomposition

I am learning Bender's decomposition method and I want to use that in a small instance. I started from "bendersatsp.py" example in CPLEX. When I run this example with my problem, I got the following error. Could you please let me know what the…
rezzz
  • 151
  • 1
  • 1
  • 8
0
votes
1 answer

Decomposition Lossless Join Algorithm

I have been provided with the following explanation for lossless joins. Can someone please explain what the variable 'r' is and how it can appear on both sides of the algorithm/equation/formula? "If a relation R is decomposed into relations R1, R2…