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
0 answers

IndexError: index 2 is out of bounds for axis 1 with size 2

I am receiving an error Index is out of bounds in my line doctopic = clf.fit_transform(dtm) and in my Data folder I have two CSV files and could someone explain how to fix this Index error. import os print (os.getcwd()) import numpy as np import…
user8678674
0
votes
1 answer

Solving optimisation sub-instances in Parallel, using Pyomo ( Traceback )

I am trying to solve an energy model with Benders Decomposition. In the model we are creating a master model and several sub models. And I want to solve the sub models in parallel, and I saw an example here. This is what I am using in the code: from…
oakca
  • 1,408
  • 1
  • 18
  • 40
0
votes
1 answer

Pyomo Variable with Bounds=(0.0, None) getting a Minus Value

I am using a pyomo-Concreate Model and in this model there is a pyomo variable called Lambda, which is bounded with (0.0, None) and within=Non.NegativeReals. The problem is after solving the model it somehow gets a minus value, which should not…
oakca
  • 1,408
  • 1
  • 18
  • 40
0
votes
0 answers

How to decompose this time series data correctly in R?

We are trying to decompose a time series in R and we are able to do it but the results do not look right. Here's the data with time…
learnerX
  • 1,022
  • 1
  • 18
  • 44
0
votes
1 answer

How Julia use Lufact to solve Ax=b

I want to recreate a solve function(solve Ax = b for x) for sparse matrix. In the Julia documentation, it says that when we applied a sparse matrix to lufact(), it returns the following: L, U, p, q, Rs = F[:(:)] With the given formula in Julia doc:…
Junwei su
  • 138
  • 1
  • 10
0
votes
1 answer

Converting dataframe with date and time to time series in R

I have a dataframe with 13 columns and I wish to convert the dataframe to a time series so that I can perform a seasonal decomposition with stl() My dataframe looks as follows: > head(wideRawDF) Period.Start.Time DO0182U09A3 DO0182U09B3…
TheGoat
  • 2,587
  • 3
  • 25
  • 58
0
votes
2 answers

Aggregation and Decomposition in JPA

How do you implement aggregation and decomposition with Java Persistence API? What are the best practices? Thanks in advance, Daniel
Daniel Szalay
  • 4,041
  • 12
  • 57
  • 103
0
votes
1 answer

Is this set in 3rd normalized form?

The functional dependencies are : BCD -> A (I stated this is a SK since BCD+=ABCDEFG) BC -> E (also SK since BC+=ABCDEFG) A -> F (not SK or prime) F -> G C -> D (not sk or prime) A -> G (not sk or prime) My steps:…
Alex
  • 7
  • 3
0
votes
0 answers

More efficient way to calculate a variable inside grad(L)=0 in numpy?

I recently started to code the benders decomposition algorithm into python. For the math.formulations numpy is used. My question/problem is that I need to calculate a lambda value (which can be seen below), however the bad part about it that I use…
oakca
  • 1,408
  • 1
  • 18
  • 40
0
votes
1 answer

Decomposition into ABC & CDE and preserving functional dependencies

Consider a relation R with five attributes ABCDE. Now assume that R is decomposed into two smaller relations ABC and CDE. Define S to be the relation (ABC NaturalJoin CDE). a) Assume that the above decomposition is lossless join. What is the …
hkn
  • 371
  • 1
  • 14
0
votes
1 answer

How can I decompose an Integer into random determisitic equation?

Warning: Completely new to Stack Overflow, so any tips on asking questions so I can help the people answering are appreciated. I've come to the conclusion that I need to factorize, decompose, or implement some type of branching process to get the…
0
votes
1 answer

Reproducing Singular Value Decompition in R

I have an example word by document matrix (from Landauer and Dumais, 1997): wxd <- matrix(c(1,1,1,0,0,0,0,0,0,0,0,0, 0,0,1,1,1,1,1,0,1,0,0,0, 0,1,0,1,1,0,0,1,0,0,0,0, 1,0,0,0,2,0,0,1,0,0,0,0, …
snarble
  • 325
  • 1
  • 3
  • 14
0
votes
1 answer

Calculating the coefficients of a separable state

Given a separable 2-qubit state φ = φ0 ⊗ φ1 with φi= ai0|0> + ai1|1> φ thus can be written as φ = b00|00> + b01|01> + b10|10> + b11|11> with bij = a0ia1j. Now let some bij be given, i.e. an arbitrary 2-qubit state φ = b00|00> + b01|01> +…
0
votes
0 answers

When I run a SAS Timerseries DECOMP statement Seasonal and Trend are mostly blank

I have a panel dataset with weekly observations of multiple locations. I'm trying to decompose to get the seasonal and trend dependent values. I have 3 years of these weekly values, but the output dataset only has the seasonal and trend…
jswtraveler
  • 345
  • 6
  • 19
0
votes
1 answer

Deconstructing arrays for the function arguments

I have function f(a,b,c) {} and const arr = [1,2,3] What do I need to call f(arr) __________________________________________?
Little Alien
  • 1
  • 8
  • 22