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 computationWed, 07 Dec 2016 10:58:46 +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/2016/Dec/07/t1481104875ebl2gxecemodi8x.htm/, Retrieved Tue, 07 May 2024 15:35:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=297944, Retrieved Tue, 07 May 2024 15:35:34 +0000
QR Codes:

Original text written by user:Deze methode zoekt naar seizoenale patronen. Want elke reeks gaat dit hebben. Statistisch nog niet significant.
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact100
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Classical decompo...] [2016-12-07 09:58:46] [673dd365cbcfe0c4e35658a2fe545652] [Current]
Feedback Forum

Post a new message
Dataseries X:
3106.78
3235.94
2998.12
2896.3
2952
3060.24
2988.32
2889
2881.82
2969.22
3026.2
3146.08
3032.48
2719.74
2785.18
2797.28
2783.7
2822.84
2835.8
2823.22
2879.14
3003.5
2910.7
2895.54
2982.36
3087.2
3195.28
3272.72
3390.6
3676.12
4052.18
4431.2
4554.96
4279.7
4391.86
4482.82
4530.68
4580.66
4623.5
4720.14
4811.82
4980.18
5174.28
5181.24




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=297944&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=297944&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=297944&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
13106.78NANA8.05346NA
23235.94NANA-106.784NA
32998.12NANA-114.898NA
42896.3NANA-132.287NA
52952NANA-135.889NA
63060.24NANA-29.8595NA
72988.323082.683009.4173.2754-94.3612
828893108.662984.8123.862-219.664
92881.823094.532954.42140.111-212.712
102969.223012.462941.4271.0385-43.241
113026.22975.612930.2845.323250.5927
123146.082971.432913.3858.0532174.647
133032.482905.192897.138.05346127.293
142719.742781.252888.04-106.784-61.5137
152785.182770.292885.18-114.89814.8928
162797.282754.222886.5-132.28743.0649
172783.72747.232883.12-135.88936.472
182822.842838.012867.87-29.8595-15.1664
192835.82928.612855.3473.2754-92.8137
202823.222992.422868.56123.862-169.203
212879.143041.072900.96140.111-161.93
223003.53008.92937.8671.0385-5.39513
232910.73028.282982.9545.3232-117.577
242895.543101.853043.858.0532-206.308
252982.363138.083130.038.05346-155.724
263087.23140.933247.71-106.784-53.7287
273195.283269.643384.54-114.898-74.3597
283272.723375.253507.54-132.287-102.532
293390.63486.543622.43-135.889-95.9389
303676.123720.423750.28-29.8595-44.3005
314052.183954.213880.9373.275497.9746
324431.24131.534007.67123.862299.667
334554.964269.524129.41140.111285.442
344279.74320.264249.2371.0385-40.5643
354391.864414.084368.7545.3232-22.2157
364482.824540.364482.3158.0532-57.539
374530.684591.454583.48.05346-60.7693
384580.664554.624661.4-106.78426.0421
394623.5NANA-114.898NA
404720.14NANA-132.287NA
414811.82NANA-135.889NA
424980.18NANA-29.8595NA
435174.28NANA73.2754NA
445181.24NANA123.862NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 3106.78 & NA & NA & 8.05346 & NA \tabularnewline
2 & 3235.94 & NA & NA & -106.784 & NA \tabularnewline
3 & 2998.12 & NA & NA & -114.898 & NA \tabularnewline
4 & 2896.3 & NA & NA & -132.287 & NA \tabularnewline
5 & 2952 & NA & NA & -135.889 & NA \tabularnewline
6 & 3060.24 & NA & NA & -29.8595 & NA \tabularnewline
7 & 2988.32 & 3082.68 & 3009.41 & 73.2754 & -94.3612 \tabularnewline
8 & 2889 & 3108.66 & 2984.8 & 123.862 & -219.664 \tabularnewline
9 & 2881.82 & 3094.53 & 2954.42 & 140.111 & -212.712 \tabularnewline
10 & 2969.22 & 3012.46 & 2941.42 & 71.0385 & -43.241 \tabularnewline
11 & 3026.2 & 2975.61 & 2930.28 & 45.3232 & 50.5927 \tabularnewline
12 & 3146.08 & 2971.43 & 2913.38 & 58.0532 & 174.647 \tabularnewline
13 & 3032.48 & 2905.19 & 2897.13 & 8.05346 & 127.293 \tabularnewline
14 & 2719.74 & 2781.25 & 2888.04 & -106.784 & -61.5137 \tabularnewline
15 & 2785.18 & 2770.29 & 2885.18 & -114.898 & 14.8928 \tabularnewline
16 & 2797.28 & 2754.22 & 2886.5 & -132.287 & 43.0649 \tabularnewline
17 & 2783.7 & 2747.23 & 2883.12 & -135.889 & 36.472 \tabularnewline
18 & 2822.84 & 2838.01 & 2867.87 & -29.8595 & -15.1664 \tabularnewline
19 & 2835.8 & 2928.61 & 2855.34 & 73.2754 & -92.8137 \tabularnewline
20 & 2823.22 & 2992.42 & 2868.56 & 123.862 & -169.203 \tabularnewline
21 & 2879.14 & 3041.07 & 2900.96 & 140.111 & -161.93 \tabularnewline
22 & 3003.5 & 3008.9 & 2937.86 & 71.0385 & -5.39513 \tabularnewline
23 & 2910.7 & 3028.28 & 2982.95 & 45.3232 & -117.577 \tabularnewline
24 & 2895.54 & 3101.85 & 3043.8 & 58.0532 & -206.308 \tabularnewline
25 & 2982.36 & 3138.08 & 3130.03 & 8.05346 & -155.724 \tabularnewline
26 & 3087.2 & 3140.93 & 3247.71 & -106.784 & -53.7287 \tabularnewline
27 & 3195.28 & 3269.64 & 3384.54 & -114.898 & -74.3597 \tabularnewline
28 & 3272.72 & 3375.25 & 3507.54 & -132.287 & -102.532 \tabularnewline
29 & 3390.6 & 3486.54 & 3622.43 & -135.889 & -95.9389 \tabularnewline
30 & 3676.12 & 3720.42 & 3750.28 & -29.8595 & -44.3005 \tabularnewline
31 & 4052.18 & 3954.21 & 3880.93 & 73.2754 & 97.9746 \tabularnewline
32 & 4431.2 & 4131.53 & 4007.67 & 123.862 & 299.667 \tabularnewline
33 & 4554.96 & 4269.52 & 4129.41 & 140.111 & 285.442 \tabularnewline
34 & 4279.7 & 4320.26 & 4249.23 & 71.0385 & -40.5643 \tabularnewline
35 & 4391.86 & 4414.08 & 4368.75 & 45.3232 & -22.2157 \tabularnewline
36 & 4482.82 & 4540.36 & 4482.31 & 58.0532 & -57.539 \tabularnewline
37 & 4530.68 & 4591.45 & 4583.4 & 8.05346 & -60.7693 \tabularnewline
38 & 4580.66 & 4554.62 & 4661.4 & -106.784 & 26.0421 \tabularnewline
39 & 4623.5 & NA & NA & -114.898 & NA \tabularnewline
40 & 4720.14 & NA & NA & -132.287 & NA \tabularnewline
41 & 4811.82 & NA & NA & -135.889 & NA \tabularnewline
42 & 4980.18 & NA & NA & -29.8595 & NA \tabularnewline
43 & 5174.28 & NA & NA & 73.2754 & NA \tabularnewline
44 & 5181.24 & NA & NA & 123.862 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=297944&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]3106.78[/C][C]NA[/C][C]NA[/C][C]8.05346[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]3235.94[/C][C]NA[/C][C]NA[/C][C]-106.784[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]2998.12[/C][C]NA[/C][C]NA[/C][C]-114.898[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]2896.3[/C][C]NA[/C][C]NA[/C][C]-132.287[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]2952[/C][C]NA[/C][C]NA[/C][C]-135.889[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]3060.24[/C][C]NA[/C][C]NA[/C][C]-29.8595[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]2988.32[/C][C]3082.68[/C][C]3009.41[/C][C]73.2754[/C][C]-94.3612[/C][/ROW]
[ROW][C]8[/C][C]2889[/C][C]3108.66[/C][C]2984.8[/C][C]123.862[/C][C]-219.664[/C][/ROW]
[ROW][C]9[/C][C]2881.82[/C][C]3094.53[/C][C]2954.42[/C][C]140.111[/C][C]-212.712[/C][/ROW]
[ROW][C]10[/C][C]2969.22[/C][C]3012.46[/C][C]2941.42[/C][C]71.0385[/C][C]-43.241[/C][/ROW]
[ROW][C]11[/C][C]3026.2[/C][C]2975.61[/C][C]2930.28[/C][C]45.3232[/C][C]50.5927[/C][/ROW]
[ROW][C]12[/C][C]3146.08[/C][C]2971.43[/C][C]2913.38[/C][C]58.0532[/C][C]174.647[/C][/ROW]
[ROW][C]13[/C][C]3032.48[/C][C]2905.19[/C][C]2897.13[/C][C]8.05346[/C][C]127.293[/C][/ROW]
[ROW][C]14[/C][C]2719.74[/C][C]2781.25[/C][C]2888.04[/C][C]-106.784[/C][C]-61.5137[/C][/ROW]
[ROW][C]15[/C][C]2785.18[/C][C]2770.29[/C][C]2885.18[/C][C]-114.898[/C][C]14.8928[/C][/ROW]
[ROW][C]16[/C][C]2797.28[/C][C]2754.22[/C][C]2886.5[/C][C]-132.287[/C][C]43.0649[/C][/ROW]
[ROW][C]17[/C][C]2783.7[/C][C]2747.23[/C][C]2883.12[/C][C]-135.889[/C][C]36.472[/C][/ROW]
[ROW][C]18[/C][C]2822.84[/C][C]2838.01[/C][C]2867.87[/C][C]-29.8595[/C][C]-15.1664[/C][/ROW]
[ROW][C]19[/C][C]2835.8[/C][C]2928.61[/C][C]2855.34[/C][C]73.2754[/C][C]-92.8137[/C][/ROW]
[ROW][C]20[/C][C]2823.22[/C][C]2992.42[/C][C]2868.56[/C][C]123.862[/C][C]-169.203[/C][/ROW]
[ROW][C]21[/C][C]2879.14[/C][C]3041.07[/C][C]2900.96[/C][C]140.111[/C][C]-161.93[/C][/ROW]
[ROW][C]22[/C][C]3003.5[/C][C]3008.9[/C][C]2937.86[/C][C]71.0385[/C][C]-5.39513[/C][/ROW]
[ROW][C]23[/C][C]2910.7[/C][C]3028.28[/C][C]2982.95[/C][C]45.3232[/C][C]-117.577[/C][/ROW]
[ROW][C]24[/C][C]2895.54[/C][C]3101.85[/C][C]3043.8[/C][C]58.0532[/C][C]-206.308[/C][/ROW]
[ROW][C]25[/C][C]2982.36[/C][C]3138.08[/C][C]3130.03[/C][C]8.05346[/C][C]-155.724[/C][/ROW]
[ROW][C]26[/C][C]3087.2[/C][C]3140.93[/C][C]3247.71[/C][C]-106.784[/C][C]-53.7287[/C][/ROW]
[ROW][C]27[/C][C]3195.28[/C][C]3269.64[/C][C]3384.54[/C][C]-114.898[/C][C]-74.3597[/C][/ROW]
[ROW][C]28[/C][C]3272.72[/C][C]3375.25[/C][C]3507.54[/C][C]-132.287[/C][C]-102.532[/C][/ROW]
[ROW][C]29[/C][C]3390.6[/C][C]3486.54[/C][C]3622.43[/C][C]-135.889[/C][C]-95.9389[/C][/ROW]
[ROW][C]30[/C][C]3676.12[/C][C]3720.42[/C][C]3750.28[/C][C]-29.8595[/C][C]-44.3005[/C][/ROW]
[ROW][C]31[/C][C]4052.18[/C][C]3954.21[/C][C]3880.93[/C][C]73.2754[/C][C]97.9746[/C][/ROW]
[ROW][C]32[/C][C]4431.2[/C][C]4131.53[/C][C]4007.67[/C][C]123.862[/C][C]299.667[/C][/ROW]
[ROW][C]33[/C][C]4554.96[/C][C]4269.52[/C][C]4129.41[/C][C]140.111[/C][C]285.442[/C][/ROW]
[ROW][C]34[/C][C]4279.7[/C][C]4320.26[/C][C]4249.23[/C][C]71.0385[/C][C]-40.5643[/C][/ROW]
[ROW][C]35[/C][C]4391.86[/C][C]4414.08[/C][C]4368.75[/C][C]45.3232[/C][C]-22.2157[/C][/ROW]
[ROW][C]36[/C][C]4482.82[/C][C]4540.36[/C][C]4482.31[/C][C]58.0532[/C][C]-57.539[/C][/ROW]
[ROW][C]37[/C][C]4530.68[/C][C]4591.45[/C][C]4583.4[/C][C]8.05346[/C][C]-60.7693[/C][/ROW]
[ROW][C]38[/C][C]4580.66[/C][C]4554.62[/C][C]4661.4[/C][C]-106.784[/C][C]26.0421[/C][/ROW]
[ROW][C]39[/C][C]4623.5[/C][C]NA[/C][C]NA[/C][C]-114.898[/C][C]NA[/C][/ROW]
[ROW][C]40[/C][C]4720.14[/C][C]NA[/C][C]NA[/C][C]-132.287[/C][C]NA[/C][/ROW]
[ROW][C]41[/C][C]4811.82[/C][C]NA[/C][C]NA[/C][C]-135.889[/C][C]NA[/C][/ROW]
[ROW][C]42[/C][C]4980.18[/C][C]NA[/C][C]NA[/C][C]-29.8595[/C][C]NA[/C][/ROW]
[ROW][C]43[/C][C]5174.28[/C][C]NA[/C][C]NA[/C][C]73.2754[/C][C]NA[/C][/ROW]
[ROW][C]44[/C][C]5181.24[/C][C]NA[/C][C]NA[/C][C]123.862[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=297944&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=297944&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
13106.78NANA8.05346NA
23235.94NANA-106.784NA
32998.12NANA-114.898NA
42896.3NANA-132.287NA
52952NANA-135.889NA
63060.24NANA-29.8595NA
72988.323082.683009.4173.2754-94.3612
828893108.662984.8123.862-219.664
92881.823094.532954.42140.111-212.712
102969.223012.462941.4271.0385-43.241
113026.22975.612930.2845.323250.5927
123146.082971.432913.3858.0532174.647
133032.482905.192897.138.05346127.293
142719.742781.252888.04-106.784-61.5137
152785.182770.292885.18-114.89814.8928
162797.282754.222886.5-132.28743.0649
172783.72747.232883.12-135.88936.472
182822.842838.012867.87-29.8595-15.1664
192835.82928.612855.3473.2754-92.8137
202823.222992.422868.56123.862-169.203
212879.143041.072900.96140.111-161.93
223003.53008.92937.8671.0385-5.39513
232910.73028.282982.9545.3232-117.577
242895.543101.853043.858.0532-206.308
252982.363138.083130.038.05346-155.724
263087.23140.933247.71-106.784-53.7287
273195.283269.643384.54-114.898-74.3597
283272.723375.253507.54-132.287-102.532
293390.63486.543622.43-135.889-95.9389
303676.123720.423750.28-29.8595-44.3005
314052.183954.213880.9373.275497.9746
324431.24131.534007.67123.862299.667
334554.964269.524129.41140.111285.442
344279.74320.264249.2371.0385-40.5643
354391.864414.084368.7545.3232-22.2157
364482.824540.364482.3158.0532-57.539
374530.684591.454583.48.05346-60.7693
384580.664554.624661.4-106.78426.0421
394623.5NANA-114.898NA
404720.14NANA-132.287NA
414811.82NANA-135.889NA
424980.18NANA-29.8595NA
435174.28NANA73.2754NA
445181.24NANA123.862NA



Parameters (Session):
par1 = additive ; par2 = 12 ;
Parameters (R input):
par1 = additive ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '12'
par1 <- 'additive'
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')