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
2
votes
2 answers

location of pointers in Objective C instances

I am designing automatically persistent objects, and for that I need (a) to locate members which are pointers, (b) to find their locations. The compiler has this information, and I expected that the reflection would provide it, but I cannot figure…
1
vote
2 answers

How do I factorize a matrix(m x n) into two factors (m x r, r x n) in Matlab?

I want to start with a mxn matrix A and factorise it into two matrices mxr and rxn. r can be greater than the dimensions of matrix A. nnmf allows only for r< min(size(A)) Is there a way I can factorise the matrix into two matrices?
simar
  • 544
  • 2
  • 7
  • 15
1
vote
5 answers

How to partition a problem into smaller understandable portions?

I'm not sure if it's possible to give general advice on this topic, but please try. It's hard to explain my case because it's too complex to explain. And that's exactly the problem. I seem to constantly stumble on a situation where I try to design…
Purple Tentacle
  • 1,606
  • 1
  • 17
  • 19
1
vote
4 answers

Matrix-Algebra Design Decomposition

I am looking at refactoring some very complex code which is a subsystem of a project I have at work. Part of my examination of this code is that it is incredibly complex, and contains a lot of inputs, intermediate values and outputs depending on…
Aidos
  • 2,753
  • 3
  • 27
  • 31
1
vote
1 answer

How do I split a shape into all possible subshapes?

I hope, this image can explain my problem better like following words. Let's say, the "shape" is represented as coordinates like: shape = {(0,0), (0,1), (1,0), (1,1)} I now want to find every possible combination of range(2, len(shape)+1) subshapes…
1
vote
1 answer

λ vector on Tensor CP Decomposition with Alternating Least Square

I am trying to understand the procedure of tensor cp decomposition with alternating least squares based on this paper. At page 464 is referred that "It is often useful to assume that the columns of A, B, and C are normalized to length one with the…
apo
  • 11
  • 2
1
vote
1 answer

How to find the missing components of Chinese characters within Unicode?

I am currently working on the decomposition of Chinese characters (Japanese kanji, to be more exact) and I have found a few components that are seemingly either not included in the Unihan database or they cannot be properly displayed with any font I…
Patokan
  • 11
  • 3
1
vote
1 answer

Align the Truncated SVD from sklearn.decomposition and np.linalg.svd

=========update========== I read an infomation in this book: The matrix that is actually returned by TruncatedSVD is the dot product of the U andS matrices. Then i try to just multiply U and Sigma: US = U.dot(Sigma) print("==>> US: ", US) this…
Wade Wang
  • 536
  • 6
  • 11
1
vote
1 answer

In Seasonal Decompose Seasonal plot seems off

When I decompose my time-series Seasonal plot looks like this, what have I could do wrong? Here is code that i used for decomposition import statsmodels.api as sm decomposition = sm.tsa.seasonal_decompose(temp_df['depth_to_groundwater'],…
1
vote
1 answer

Using CEEMDAN in PyEMD, but getting two different results?

I'm doing research on time series forecasting recently and I need to use CEEMDAN to decompose electricity load data. I used CEEMDAN from the PyEMD package, but I got two different results. Specifically, I use the following two methods to…
ki-ljl
  • 499
  • 2
  • 9
1
vote
1 answer

Finding the key for R

R = {A, B, C, D, E, F, G, H, I, J} F = {{A,B} -> {C}, {A}-> {D,E}, {B} -> {F}, {C}-> {B}, {F}->{G,H}, {D}->{I,J} The question is: What is the key for R? I assume based on how the question has been formulated that there is one single candidate…
1
vote
1 answer

Blockwise decomposition array using C and MPI

Hi everyone I need to understand how to decompose an array to assign sub-blocks to a fixed number of processors. The case where the remainder among the number of elements% processes == 0 is simple, I would like to know a performing way to do it in…
1
vote
0 answers

Reconstruct all the approximations and details at all levels after Stationary Wavelet Transform with Pywavelets

I am trying to reconstruct the details and approximations at all levels using the inverse Stationary Wavelet Transform. The code is the following: def decompose_B(Btotal, wname, Lps, Hps): Br = Btotal[0]; Bt = Btotal[1]; Bn = Btotal[2] …
jokerp
  • 157
  • 1
  • 8
1
vote
0 answers

Undecimated Discrete wavelet decomposition Python

I want to write a code that involves the use of the undecimated discrete wavelet transform in python. I know that pywavelets contains the undecimated wavelet transform but to my understanding, this is different from the undecimated discrete wavelet…
jokerp
  • 157
  • 1
  • 8
1
vote
2 answers

Decompose by subdomain (Microservice question)

I found this resource explaining decompose by subdomain where one of the disadvantages is "Can create too many microservices, which makes service discovery and integration difficult." I'm a bit puzzled with what that really means in layman terms, so…
Mahir Hiro
  • 135
  • 1
  • 7