Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSat, 19 Jan 2019 14:42:10 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2019/Jan/19/t1547905345k0e2cna8mxiydtg.htm/, Retrieved Tue, 07 May 2024 10:07:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=316335, Retrieved Tue, 07 May 2024 10:07:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact71
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2019-01-19 13:42:10] [52298ad8b2f20a5607009b73b570cc21] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.386
0.374
0.393
0.425
0.406
0.344
0.327
0.288
0.269
0.256
0.286
0.298
0.329
0.318
0.381
0.381
0.47
0.443
0.386
0.342
0.319
0.307
0.284
0.326
0.309
0.359
0.376
0.416
0.437
0.548




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time2 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316335&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]2 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316335&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316335&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.386NANA-0.0108559NA
20.374NANA-0.0265642NA
30.393NANA0.0321024NA
40.425NANA0.0278941NA
50.406NANA0.114852NA
60.344NANA0.0867691NA
70.3270.3457480.3352920.0104566-0.0187483
80.2880.3014570.330583-0.0291267-0.0134566
90.2690.278290.32775-0.0494601-0.00928993
100.2560.2639980.325417-0.0614184-0.00799826
110.2860.2678730.32625-0.05837670.0181267
120.2980.2967690.333042-0.03627260.0012309
130.3290.3287690.339625-0.01085590.000230903
140.3180.3177690.344333-0.02656420.000230903
150.3810.3807690.3486670.03210240.000230903
160.3810.3807690.3528750.02789410.000230903
170.470.4697690.3549170.1148520.000230903
180.4430.4427690.3560.08676910.000230903
190.3860.366790.3563330.01045660.0192101
200.3420.3280820.357208-0.02912670.0139184
210.3190.3092480.358708-0.04946010.00975174
220.3070.298540.359958-0.06141840.00846007
230.2840.3016650.360042-0.0583767-0.0176649
240.3260.3267690.363042-0.0362726-0.000769097
250.309NANA-0.0108559NA
260.359NANA-0.0265642NA
270.376NANA0.0321024NA
280.416NANA0.0278941NA
290.437NANA0.114852NA
300.548NANA0.0867691NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 0.386 & NA & NA & -0.0108559 & NA \tabularnewline
2 & 0.374 & NA & NA & -0.0265642 & NA \tabularnewline
3 & 0.393 & NA & NA & 0.0321024 & NA \tabularnewline
4 & 0.425 & NA & NA & 0.0278941 & NA \tabularnewline
5 & 0.406 & NA & NA & 0.114852 & NA \tabularnewline
6 & 0.344 & NA & NA & 0.0867691 & NA \tabularnewline
7 & 0.327 & 0.345748 & 0.335292 & 0.0104566 & -0.0187483 \tabularnewline
8 & 0.288 & 0.301457 & 0.330583 & -0.0291267 & -0.0134566 \tabularnewline
9 & 0.269 & 0.27829 & 0.32775 & -0.0494601 & -0.00928993 \tabularnewline
10 & 0.256 & 0.263998 & 0.325417 & -0.0614184 & -0.00799826 \tabularnewline
11 & 0.286 & 0.267873 & 0.32625 & -0.0583767 & 0.0181267 \tabularnewline
12 & 0.298 & 0.296769 & 0.333042 & -0.0362726 & 0.0012309 \tabularnewline
13 & 0.329 & 0.328769 & 0.339625 & -0.0108559 & 0.000230903 \tabularnewline
14 & 0.318 & 0.317769 & 0.344333 & -0.0265642 & 0.000230903 \tabularnewline
15 & 0.381 & 0.380769 & 0.348667 & 0.0321024 & 0.000230903 \tabularnewline
16 & 0.381 & 0.380769 & 0.352875 & 0.0278941 & 0.000230903 \tabularnewline
17 & 0.47 & 0.469769 & 0.354917 & 0.114852 & 0.000230903 \tabularnewline
18 & 0.443 & 0.442769 & 0.356 & 0.0867691 & 0.000230903 \tabularnewline
19 & 0.386 & 0.36679 & 0.356333 & 0.0104566 & 0.0192101 \tabularnewline
20 & 0.342 & 0.328082 & 0.357208 & -0.0291267 & 0.0139184 \tabularnewline
21 & 0.319 & 0.309248 & 0.358708 & -0.0494601 & 0.00975174 \tabularnewline
22 & 0.307 & 0.29854 & 0.359958 & -0.0614184 & 0.00846007 \tabularnewline
23 & 0.284 & 0.301665 & 0.360042 & -0.0583767 & -0.0176649 \tabularnewline
24 & 0.326 & 0.326769 & 0.363042 & -0.0362726 & -0.000769097 \tabularnewline
25 & 0.309 & NA & NA & -0.0108559 & NA \tabularnewline
26 & 0.359 & NA & NA & -0.0265642 & NA \tabularnewline
27 & 0.376 & NA & NA & 0.0321024 & NA \tabularnewline
28 & 0.416 & NA & NA & 0.0278941 & NA \tabularnewline
29 & 0.437 & NA & NA & 0.114852 & NA \tabularnewline
30 & 0.548 & NA & NA & 0.0867691 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316335&T=1

[TABLE]
[ROW][C]Classical Decomposition by Moving Averages[/C][/ROW]
[ROW][C]t[/C][C]Observations[/C][C]Fit[/C][C]Trend[/C][C]Seasonal[/C][C]Random[/C][/ROW]
[ROW][C]1[/C][C]0.386[/C][C]NA[/C][C]NA[/C][C]-0.0108559[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]0.374[/C][C]NA[/C][C]NA[/C][C]-0.0265642[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]0.393[/C][C]NA[/C][C]NA[/C][C]0.0321024[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]0.425[/C][C]NA[/C][C]NA[/C][C]0.0278941[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]0.406[/C][C]NA[/C][C]NA[/C][C]0.114852[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]0.344[/C][C]NA[/C][C]NA[/C][C]0.0867691[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]0.327[/C][C]0.345748[/C][C]0.335292[/C][C]0.0104566[/C][C]-0.0187483[/C][/ROW]
[ROW][C]8[/C][C]0.288[/C][C]0.301457[/C][C]0.330583[/C][C]-0.0291267[/C][C]-0.0134566[/C][/ROW]
[ROW][C]9[/C][C]0.269[/C][C]0.27829[/C][C]0.32775[/C][C]-0.0494601[/C][C]-0.00928993[/C][/ROW]
[ROW][C]10[/C][C]0.256[/C][C]0.263998[/C][C]0.325417[/C][C]-0.0614184[/C][C]-0.00799826[/C][/ROW]
[ROW][C]11[/C][C]0.286[/C][C]0.267873[/C][C]0.32625[/C][C]-0.0583767[/C][C]0.0181267[/C][/ROW]
[ROW][C]12[/C][C]0.298[/C][C]0.296769[/C][C]0.333042[/C][C]-0.0362726[/C][C]0.0012309[/C][/ROW]
[ROW][C]13[/C][C]0.329[/C][C]0.328769[/C][C]0.339625[/C][C]-0.0108559[/C][C]0.000230903[/C][/ROW]
[ROW][C]14[/C][C]0.318[/C][C]0.317769[/C][C]0.344333[/C][C]-0.0265642[/C][C]0.000230903[/C][/ROW]
[ROW][C]15[/C][C]0.381[/C][C]0.380769[/C][C]0.348667[/C][C]0.0321024[/C][C]0.000230903[/C][/ROW]
[ROW][C]16[/C][C]0.381[/C][C]0.380769[/C][C]0.352875[/C][C]0.0278941[/C][C]0.000230903[/C][/ROW]
[ROW][C]17[/C][C]0.47[/C][C]0.469769[/C][C]0.354917[/C][C]0.114852[/C][C]0.000230903[/C][/ROW]
[ROW][C]18[/C][C]0.443[/C][C]0.442769[/C][C]0.356[/C][C]0.0867691[/C][C]0.000230903[/C][/ROW]
[ROW][C]19[/C][C]0.386[/C][C]0.36679[/C][C]0.356333[/C][C]0.0104566[/C][C]0.0192101[/C][/ROW]
[ROW][C]20[/C][C]0.342[/C][C]0.328082[/C][C]0.357208[/C][C]-0.0291267[/C][C]0.0139184[/C][/ROW]
[ROW][C]21[/C][C]0.319[/C][C]0.309248[/C][C]0.358708[/C][C]-0.0494601[/C][C]0.00975174[/C][/ROW]
[ROW][C]22[/C][C]0.307[/C][C]0.29854[/C][C]0.359958[/C][C]-0.0614184[/C][C]0.00846007[/C][/ROW]
[ROW][C]23[/C][C]0.284[/C][C]0.301665[/C][C]0.360042[/C][C]-0.0583767[/C][C]-0.0176649[/C][/ROW]
[ROW][C]24[/C][C]0.326[/C][C]0.326769[/C][C]0.363042[/C][C]-0.0362726[/C][C]-0.000769097[/C][/ROW]
[ROW][C]25[/C][C]0.309[/C][C]NA[/C][C]NA[/C][C]-0.0108559[/C][C]NA[/C][/ROW]
[ROW][C]26[/C][C]0.359[/C][C]NA[/C][C]NA[/C][C]-0.0265642[/C][C]NA[/C][/ROW]
[ROW][C]27[/C][C]0.376[/C][C]NA[/C][C]NA[/C][C]0.0321024[/C][C]NA[/C][/ROW]
[ROW][C]28[/C][C]0.416[/C][C]NA[/C][C]NA[/C][C]0.0278941[/C][C]NA[/C][/ROW]
[ROW][C]29[/C][C]0.437[/C][C]NA[/C][C]NA[/C][C]0.114852[/C][C]NA[/C][/ROW]
[ROW][C]30[/C][C]0.548[/C][C]NA[/C][C]NA[/C][C]0.0867691[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316335&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316335&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.386NANA-0.0108559NA
20.374NANA-0.0265642NA
30.393NANA0.0321024NA
40.425NANA0.0278941NA
50.406NANA0.114852NA
60.344NANA0.0867691NA
70.3270.3457480.3352920.0104566-0.0187483
80.2880.3014570.330583-0.0291267-0.0134566
90.2690.278290.32775-0.0494601-0.00928993
100.2560.2639980.325417-0.0614184-0.00799826
110.2860.2678730.32625-0.05837670.0181267
120.2980.2967690.333042-0.03627260.0012309
130.3290.3287690.339625-0.01085590.000230903
140.3180.3177690.344333-0.02656420.000230903
150.3810.3807690.3486670.03210240.000230903
160.3810.3807690.3528750.02789410.000230903
170.470.4697690.3549170.1148520.000230903
180.4430.4427690.3560.08676910.000230903
190.3860.366790.3563330.01045660.0192101
200.3420.3280820.357208-0.02912670.0139184
210.3190.3092480.358708-0.04946010.00975174
220.3070.298540.359958-0.06141840.00846007
230.2840.3016650.360042-0.0583767-0.0176649
240.3260.3267690.363042-0.0362726-0.000769097
250.309NANA-0.0108559NA
260.359NANA-0.0265642NA
270.376NANA0.0321024NA
280.416NANA0.0278941NA
290.437NANA0.114852NA
300.548NANA0.0867691NA



Parameters (Session):
par1 = additive ; par2 = 12 ;
Parameters (R input):
par1 = additive ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,signif(m$trend[i]+m$seasonal[i],6)) else a<-table.element(a,signif(m$trend[i]*m$seasonal[i],6))
a<-table.element(a,signif(m$trend[i],6))
a<-table.element(a,signif(m$seasonal[i],6))
a<-table.element(a,signif(m$random[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')