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, 14 Dec 2016 13:47:17 +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/14/t1481719654wjpe2zkiaiiyr5e.htm/, Retrieved Fri, 03 May 2024 21:45:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=299375, Retrieved Fri, 03 May 2024 21:45:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact88
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [F1-competitie (ko...] [2016-12-14 12:47:17] [55eb8f21ed24cda91766c505eb72bb6f] [Current]
Feedback Forum

Post a new message
Dataseries X:
2101.7
2290.33
2287.53
2205.2
2304.8
2530.7
2586.01
2538.41
2600.75
2801.75
2872.53
2893.59
2961.73
3058.65
3070.09
2918.35
2942.26
3282.96
3416.49
3141.21
3233.54
3526.8
3575.95
3581.45
3865.96
4016.26
4118.02
3842.53
3849.62
4512.5
4381.64
4192.42
4401
4829.9
4752.56




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299375&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
12101.7NANA86.5471NA
22290.33NANA138.29NA
32287.53NANA122.926NA
42205.2NANA-170.447NA
52304.8NANA-236.368NA
62530.7NANA96.2507NA
72586.012648.412536.94111.465-62.3982
82538.412482.12604.79-122.68756.3062
92600.752549.972669.41-119.44450.7833
102801.752787.172731.7355.439614.5783
112872.532837.122788.0149.109835.4127
122893.592834.832845.91-11.081458.7589
132961.732998.412911.8686.5471-36.6771
143058.653109.872971.58138.29-51.2196
153070.093145.993023.06122.926-75.8988
162918.352909.193079.64-170.4479.15788
172942.262902.793139.16-236.36839.4687
183282.963293.383197.1396.2507-10.4198
193416.493374.933263.47111.46541.5585
203141.213218.363341.04-122.687-77.1459
213233.543305.163424.61-119.444-71.623
223526.83562.223506.7855.4396-35.418
233575.953632.23583.0949.1098-56.2523
243581.453661.053672.13-11.0814-79.5986
253865.963850.123763.5886.547115.8375
264016.263985.883847.59138.2930.38
274118.024062.963940.04122.92655.0591
283842.533872.534042.98-170.447-29.9975
293849.623909.934146.3-236.368-60.3084
304512.5NANA96.2507NA
314381.64NANA111.465NA
324192.42NANA-122.687NA
334401NANA-119.444NA
344829.9NANA55.4396NA
354752.56NANA49.1098NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 2101.7 & NA & NA & 86.5471 & NA \tabularnewline
2 & 2290.33 & NA & NA & 138.29 & NA \tabularnewline
3 & 2287.53 & NA & NA & 122.926 & NA \tabularnewline
4 & 2205.2 & NA & NA & -170.447 & NA \tabularnewline
5 & 2304.8 & NA & NA & -236.368 & NA \tabularnewline
6 & 2530.7 & NA & NA & 96.2507 & NA \tabularnewline
7 & 2586.01 & 2648.41 & 2536.94 & 111.465 & -62.3982 \tabularnewline
8 & 2538.41 & 2482.1 & 2604.79 & -122.687 & 56.3062 \tabularnewline
9 & 2600.75 & 2549.97 & 2669.41 & -119.444 & 50.7833 \tabularnewline
10 & 2801.75 & 2787.17 & 2731.73 & 55.4396 & 14.5783 \tabularnewline
11 & 2872.53 & 2837.12 & 2788.01 & 49.1098 & 35.4127 \tabularnewline
12 & 2893.59 & 2834.83 & 2845.91 & -11.0814 & 58.7589 \tabularnewline
13 & 2961.73 & 2998.41 & 2911.86 & 86.5471 & -36.6771 \tabularnewline
14 & 3058.65 & 3109.87 & 2971.58 & 138.29 & -51.2196 \tabularnewline
15 & 3070.09 & 3145.99 & 3023.06 & 122.926 & -75.8988 \tabularnewline
16 & 2918.35 & 2909.19 & 3079.64 & -170.447 & 9.15788 \tabularnewline
17 & 2942.26 & 2902.79 & 3139.16 & -236.368 & 39.4687 \tabularnewline
18 & 3282.96 & 3293.38 & 3197.13 & 96.2507 & -10.4198 \tabularnewline
19 & 3416.49 & 3374.93 & 3263.47 & 111.465 & 41.5585 \tabularnewline
20 & 3141.21 & 3218.36 & 3341.04 & -122.687 & -77.1459 \tabularnewline
21 & 3233.54 & 3305.16 & 3424.61 & -119.444 & -71.623 \tabularnewline
22 & 3526.8 & 3562.22 & 3506.78 & 55.4396 & -35.418 \tabularnewline
23 & 3575.95 & 3632.2 & 3583.09 & 49.1098 & -56.2523 \tabularnewline
24 & 3581.45 & 3661.05 & 3672.13 & -11.0814 & -79.5986 \tabularnewline
25 & 3865.96 & 3850.12 & 3763.58 & 86.5471 & 15.8375 \tabularnewline
26 & 4016.26 & 3985.88 & 3847.59 & 138.29 & 30.38 \tabularnewline
27 & 4118.02 & 4062.96 & 3940.04 & 122.926 & 55.0591 \tabularnewline
28 & 3842.53 & 3872.53 & 4042.98 & -170.447 & -29.9975 \tabularnewline
29 & 3849.62 & 3909.93 & 4146.3 & -236.368 & -60.3084 \tabularnewline
30 & 4512.5 & NA & NA & 96.2507 & NA \tabularnewline
31 & 4381.64 & NA & NA & 111.465 & NA \tabularnewline
32 & 4192.42 & NA & NA & -122.687 & NA \tabularnewline
33 & 4401 & NA & NA & -119.444 & NA \tabularnewline
34 & 4829.9 & NA & NA & 55.4396 & NA \tabularnewline
35 & 4752.56 & NA & NA & 49.1098 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299375&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]2101.7[/C][C]NA[/C][C]NA[/C][C]86.5471[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]2290.33[/C][C]NA[/C][C]NA[/C][C]138.29[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]2287.53[/C][C]NA[/C][C]NA[/C][C]122.926[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]2205.2[/C][C]NA[/C][C]NA[/C][C]-170.447[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]2304.8[/C][C]NA[/C][C]NA[/C][C]-236.368[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]2530.7[/C][C]NA[/C][C]NA[/C][C]96.2507[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]2586.01[/C][C]2648.41[/C][C]2536.94[/C][C]111.465[/C][C]-62.3982[/C][/ROW]
[ROW][C]8[/C][C]2538.41[/C][C]2482.1[/C][C]2604.79[/C][C]-122.687[/C][C]56.3062[/C][/ROW]
[ROW][C]9[/C][C]2600.75[/C][C]2549.97[/C][C]2669.41[/C][C]-119.444[/C][C]50.7833[/C][/ROW]
[ROW][C]10[/C][C]2801.75[/C][C]2787.17[/C][C]2731.73[/C][C]55.4396[/C][C]14.5783[/C][/ROW]
[ROW][C]11[/C][C]2872.53[/C][C]2837.12[/C][C]2788.01[/C][C]49.1098[/C][C]35.4127[/C][/ROW]
[ROW][C]12[/C][C]2893.59[/C][C]2834.83[/C][C]2845.91[/C][C]-11.0814[/C][C]58.7589[/C][/ROW]
[ROW][C]13[/C][C]2961.73[/C][C]2998.41[/C][C]2911.86[/C][C]86.5471[/C][C]-36.6771[/C][/ROW]
[ROW][C]14[/C][C]3058.65[/C][C]3109.87[/C][C]2971.58[/C][C]138.29[/C][C]-51.2196[/C][/ROW]
[ROW][C]15[/C][C]3070.09[/C][C]3145.99[/C][C]3023.06[/C][C]122.926[/C][C]-75.8988[/C][/ROW]
[ROW][C]16[/C][C]2918.35[/C][C]2909.19[/C][C]3079.64[/C][C]-170.447[/C][C]9.15788[/C][/ROW]
[ROW][C]17[/C][C]2942.26[/C][C]2902.79[/C][C]3139.16[/C][C]-236.368[/C][C]39.4687[/C][/ROW]
[ROW][C]18[/C][C]3282.96[/C][C]3293.38[/C][C]3197.13[/C][C]96.2507[/C][C]-10.4198[/C][/ROW]
[ROW][C]19[/C][C]3416.49[/C][C]3374.93[/C][C]3263.47[/C][C]111.465[/C][C]41.5585[/C][/ROW]
[ROW][C]20[/C][C]3141.21[/C][C]3218.36[/C][C]3341.04[/C][C]-122.687[/C][C]-77.1459[/C][/ROW]
[ROW][C]21[/C][C]3233.54[/C][C]3305.16[/C][C]3424.61[/C][C]-119.444[/C][C]-71.623[/C][/ROW]
[ROW][C]22[/C][C]3526.8[/C][C]3562.22[/C][C]3506.78[/C][C]55.4396[/C][C]-35.418[/C][/ROW]
[ROW][C]23[/C][C]3575.95[/C][C]3632.2[/C][C]3583.09[/C][C]49.1098[/C][C]-56.2523[/C][/ROW]
[ROW][C]24[/C][C]3581.45[/C][C]3661.05[/C][C]3672.13[/C][C]-11.0814[/C][C]-79.5986[/C][/ROW]
[ROW][C]25[/C][C]3865.96[/C][C]3850.12[/C][C]3763.58[/C][C]86.5471[/C][C]15.8375[/C][/ROW]
[ROW][C]26[/C][C]4016.26[/C][C]3985.88[/C][C]3847.59[/C][C]138.29[/C][C]30.38[/C][/ROW]
[ROW][C]27[/C][C]4118.02[/C][C]4062.96[/C][C]3940.04[/C][C]122.926[/C][C]55.0591[/C][/ROW]
[ROW][C]28[/C][C]3842.53[/C][C]3872.53[/C][C]4042.98[/C][C]-170.447[/C][C]-29.9975[/C][/ROW]
[ROW][C]29[/C][C]3849.62[/C][C]3909.93[/C][C]4146.3[/C][C]-236.368[/C][C]-60.3084[/C][/ROW]
[ROW][C]30[/C][C]4512.5[/C][C]NA[/C][C]NA[/C][C]96.2507[/C][C]NA[/C][/ROW]
[ROW][C]31[/C][C]4381.64[/C][C]NA[/C][C]NA[/C][C]111.465[/C][C]NA[/C][/ROW]
[ROW][C]32[/C][C]4192.42[/C][C]NA[/C][C]NA[/C][C]-122.687[/C][C]NA[/C][/ROW]
[ROW][C]33[/C][C]4401[/C][C]NA[/C][C]NA[/C][C]-119.444[/C][C]NA[/C][/ROW]
[ROW][C]34[/C][C]4829.9[/C][C]NA[/C][C]NA[/C][C]55.4396[/C][C]NA[/C][/ROW]
[ROW][C]35[/C][C]4752.56[/C][C]NA[/C][C]NA[/C][C]49.1098[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299375&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299375&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
12101.7NANA86.5471NA
22290.33NANA138.29NA
32287.53NANA122.926NA
42205.2NANA-170.447NA
52304.8NANA-236.368NA
62530.7NANA96.2507NA
72586.012648.412536.94111.465-62.3982
82538.412482.12604.79-122.68756.3062
92600.752549.972669.41-119.44450.7833
102801.752787.172731.7355.439614.5783
112872.532837.122788.0149.109835.4127
122893.592834.832845.91-11.081458.7589
132961.732998.412911.8686.5471-36.6771
143058.653109.872971.58138.29-51.2196
153070.093145.993023.06122.926-75.8988
162918.352909.193079.64-170.4479.15788
172942.262902.793139.16-236.36839.4687
183282.963293.383197.1396.2507-10.4198
193416.493374.933263.47111.46541.5585
203141.213218.363341.04-122.687-77.1459
213233.543305.163424.61-119.444-71.623
223526.83562.223506.7855.4396-35.418
233575.953632.23583.0949.1098-56.2523
243581.453661.053672.13-11.0814-79.5986
253865.963850.123763.5886.547115.8375
264016.263985.883847.59138.2930.38
274118.024062.963940.04122.92655.0591
283842.533872.534042.98-170.447-29.9975
293849.623909.934146.3-236.368-60.3084
304512.5NANA96.2507NA
314381.64NANA111.465NA
324192.42NANA-122.687NA
334401NANA-119.444NA
344829.9NANA55.4396NA
354752.56NANA49.1098NA



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')