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

Split number into sum of preselected other numbers

I have a number (for example 301, but can be even 10^11). n = lenght of that number I have to break it down to sum of max n components. Those components are 0^n, 1^n, 2^n, 3^n...9^n. How can I do that?
-1
votes
3 answers

How should I pass variables between functions in this class?

What I'm trying to do: executing the script, I will have to type in two numbers and it will compare them. I want to be asked a total of 3 times. The first time I will type in 10 and 5, second time 5 and 10 and the third time I will type in 10 and…
Barry
  • 311
  • 3
  • 13
-1
votes
1 answer

If a DB decomposition is not dependency preserving, is it safe to conclude that it is lossy as well without further proof?

If a database decomposition is not dependency preserving, is it safe to conclude that the decomposition is lossy as well without further proof? To clarify - when I use decomposition in my question, I am referring to the act of breaking down a…
ptk
  • 6,835
  • 14
  • 45
  • 91
-1
votes
1 answer

eigendecomposition(A = V.D. V^-1) of symmetric matrix in Matlab

Hi I want to compute eig-decomposition of symmetric matrix A in matlab. assume that A = V.D. V^-1(standard form ). I checked eig(A) and svd(A) but svd give me A = U.s.V which U and V are not orthonormal (U.V != I). and also there is a…
Captain
  • 193
  • 1
  • 10
-1
votes
1 answer

How to do a time series for each name value in column, decompose and export all to table

I have a data frame (DF) with several columns, but the target columns are date, index and site. A subset table is here: https://www.dropbox.com/s/48165ey5rsv628c/DATA.csv?dl=0 SITE date index A 2006.001 0.394 A .. …
OSCAR_P
  • 13
  • 4
-1
votes
1 answer

partition of number without using consecutive integers

I am following the cs61a spring 2015 class. One of the problem in the scheme project is: Implement the list-partitions procedure, which lists all of the ways to partition a positive integer total without using consecutive integers. The…
-1
votes
1 answer

How to set constraints for non-negativity in parallel factor analysis using the multiway package in R?

I want to perform a Parallel Factor Analysis (PARAFAC) with data from Fluorescence spectroscopy. I have a three dimensional array (39x151x43) that I pass to the parafac function in the "multiway" package. So far, it works well but I get negative…
Strohmi
  • 523
  • 5
  • 21
-2
votes
1 answer

How to draw a decomposition and composition for a method?

Consider the following code fragment public int fun(int a, int b) { if (b == 1) return a; else return a + fun(a, b - 1); } a. Draw the decomposition & composition of fun(2,4) b. What would be the value of fun(2,0)?Discuss…
-2
votes
1 answer

How to determine a lossless join dependency preserving decomposition

I have a homework problem to determine a lossless join dependency decomposition for the following: R(A, B, C, D, E, F, G, H, I, J) with the functional dependencies: AB -> CG C -> A BD -> EF ABC -> DEFG G -> H G -> I G -> J H -> IJ J -> I I -> H I…
Hitomi86
  • 45
  • 7
-2
votes
1 answer

how I change the frame data into time series?

I have a daily rainfall data for 36 years. I want to analyze the time series, but my data is still in the form of frame data, how I change the frame data into time series. My data is a variable, how to unify the year number with the date and month,…
-2
votes
1 answer

Prime Factors in JAVA

I am trying to write a program that give an output as prime decomposition of a given number. However, my code gives correct answer as an output of "2**2**2**2**2**5**7**7**11*" but I want it specific output as "(p1**n1)(p2**n2)...(pk**nk)". Here's…
Ron Ohare
  • 3
  • 6
-2
votes
1 answer

2-dimensional Array decomposition in Python

I would appreciate your help with a translation to Python 3 that decomposes an input array of any size into smaller square arrays of length 4. I have tried chunks and the array functions in numpy but they are useless for this. Here is my code in…
-3
votes
1 answer

Image bit-plane decomposition

I was wondering how I could extract bit planes of an image for image compression in MATLAB?
-3
votes
1 answer

How do I show the entire calculation in the output?

Good evening, I'm a beginner in java and I was assigned to code a program to decompose prime number. This is what I've got so far. package introductionProgramming; import javax.swing.JOptionPane; public class Primes { public static…
-3
votes
2 answers

Why are the instances of objects set in test class not being implemented?

I'm doing an exercise in decomposition. Here is the situation. I have one LEAGUE consisting of a number of DIVISIONS which in turn consists of a number of TEAMS which consists of PLAYERS. I have a class LeagueStatistics that has a method…
kellzer
  • 131
  • 1
  • 3
  • 18
1 2 3
22
23