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 computationThu, 22 Dec 2016 21:06:06 +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/22/t14824372267vwi3kqj6txk2jg.htm/, Retrieved Mon, 29 Apr 2024 01:06:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302672, Retrieved Mon, 29 Apr 2024 01:06:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact52
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2016-12-22 20:06:06] [2802fcbee976b89d2ab84425d3d65dcf] [Current]
Feedback Forum

Post a new message
Dataseries X:
1550.61
1488.54
1200.03
1451.49
2576.19
2434.2
2586.21
1898.55
2958.18
3290.73
3408.39
3214.71
4205.43
4378.53
4279.68
4799.25
4902.84
5379.84
5527.05
6004.83
5827.71
6496.02
6858.99
6696.84
6831
7366.47
7881.03
7494.66
5813.55
6911.25
7252.59
7425.63
7603.5
6045.72
6064.35
5486.85
5808.27
6467.88




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302672&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]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302672&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302672&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 time1 seconds
R ServerBig Analytics Cloud Computing Center







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11550.61NANA140.271NA
21488.54NANA282.193NA
31200.03NANA278.123NA
41451.49NANA190.55NA
52576.19NANA-710.939NA
62434.2NANA-26.2573NA
72586.212562.142448.77113.37124.069
81898.552652.62679.8-27.2007-754.053
92958.182753.182928.54-175.362205.004
103290.733256.333196.3559.980834.4017
113408.393539.733432.78106.951-131.343
123214.713420.783652.46-231.68-206.07
134205.4340383897.73140.271167.429
144378.534473.554191.36282.193-95.0227
154279.684760.144482.02278.123-480.461
164799.254925.694735.14190.55-126.436
174902.844301.535012.46-710.939601.314
185379.845275.075301.33-26.2573104.769
195527.055669.195555.82113.371-142.137
206004.835762.515789.71-27.2007242.318
215827.715888.96064.27-175.362-61.1939
226496.026386.616326.6359.9808109.408
236858.996583.846476.89106.951275.152
246696.846346.966578.64-231.68349.879
2568316854.626714.35140.271-23.6189
267366.477127.646845.45282.193238.832
277881.037256.766978.64278.123624.271
287494.667224.417033.86190.55270.245
295813.556271.056981.99-710.939-457.504
306911.256872.216898.47-26.257339.0411
317252.596918.816805.44113.371333.783
327425.636698.186725.38-27.2007727.449
337603.5NANA-175.362NA
346045.72NANA59.9808NA
356064.35NANA106.951NA
365486.85NANA-231.68NA
375808.27NANA140.271NA
386467.88NANA282.193NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 1550.61 & NA & NA & 140.271 & NA \tabularnewline
2 & 1488.54 & NA & NA & 282.193 & NA \tabularnewline
3 & 1200.03 & NA & NA & 278.123 & NA \tabularnewline
4 & 1451.49 & NA & NA & 190.55 & NA \tabularnewline
5 & 2576.19 & NA & NA & -710.939 & NA \tabularnewline
6 & 2434.2 & NA & NA & -26.2573 & NA \tabularnewline
7 & 2586.21 & 2562.14 & 2448.77 & 113.371 & 24.069 \tabularnewline
8 & 1898.55 & 2652.6 & 2679.8 & -27.2007 & -754.053 \tabularnewline
9 & 2958.18 & 2753.18 & 2928.54 & -175.362 & 205.004 \tabularnewline
10 & 3290.73 & 3256.33 & 3196.35 & 59.9808 & 34.4017 \tabularnewline
11 & 3408.39 & 3539.73 & 3432.78 & 106.951 & -131.343 \tabularnewline
12 & 3214.71 & 3420.78 & 3652.46 & -231.68 & -206.07 \tabularnewline
13 & 4205.43 & 4038 & 3897.73 & 140.271 & 167.429 \tabularnewline
14 & 4378.53 & 4473.55 & 4191.36 & 282.193 & -95.0227 \tabularnewline
15 & 4279.68 & 4760.14 & 4482.02 & 278.123 & -480.461 \tabularnewline
16 & 4799.25 & 4925.69 & 4735.14 & 190.55 & -126.436 \tabularnewline
17 & 4902.84 & 4301.53 & 5012.46 & -710.939 & 601.314 \tabularnewline
18 & 5379.84 & 5275.07 & 5301.33 & -26.2573 & 104.769 \tabularnewline
19 & 5527.05 & 5669.19 & 5555.82 & 113.371 & -142.137 \tabularnewline
20 & 6004.83 & 5762.51 & 5789.71 & -27.2007 & 242.318 \tabularnewline
21 & 5827.71 & 5888.9 & 6064.27 & -175.362 & -61.1939 \tabularnewline
22 & 6496.02 & 6386.61 & 6326.63 & 59.9808 & 109.408 \tabularnewline
23 & 6858.99 & 6583.84 & 6476.89 & 106.951 & 275.152 \tabularnewline
24 & 6696.84 & 6346.96 & 6578.64 & -231.68 & 349.879 \tabularnewline
25 & 6831 & 6854.62 & 6714.35 & 140.271 & -23.6189 \tabularnewline
26 & 7366.47 & 7127.64 & 6845.45 & 282.193 & 238.832 \tabularnewline
27 & 7881.03 & 7256.76 & 6978.64 & 278.123 & 624.271 \tabularnewline
28 & 7494.66 & 7224.41 & 7033.86 & 190.55 & 270.245 \tabularnewline
29 & 5813.55 & 6271.05 & 6981.99 & -710.939 & -457.504 \tabularnewline
30 & 6911.25 & 6872.21 & 6898.47 & -26.2573 & 39.0411 \tabularnewline
31 & 7252.59 & 6918.81 & 6805.44 & 113.371 & 333.783 \tabularnewline
32 & 7425.63 & 6698.18 & 6725.38 & -27.2007 & 727.449 \tabularnewline
33 & 7603.5 & NA & NA & -175.362 & NA \tabularnewline
34 & 6045.72 & NA & NA & 59.9808 & NA \tabularnewline
35 & 6064.35 & NA & NA & 106.951 & NA \tabularnewline
36 & 5486.85 & NA & NA & -231.68 & NA \tabularnewline
37 & 5808.27 & NA & NA & 140.271 & NA \tabularnewline
38 & 6467.88 & NA & NA & 282.193 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302672&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]1550.61[/C][C]NA[/C][C]NA[/C][C]140.271[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]1488.54[/C][C]NA[/C][C]NA[/C][C]282.193[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]1200.03[/C][C]NA[/C][C]NA[/C][C]278.123[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]1451.49[/C][C]NA[/C][C]NA[/C][C]190.55[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]2576.19[/C][C]NA[/C][C]NA[/C][C]-710.939[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]2434.2[/C][C]NA[/C][C]NA[/C][C]-26.2573[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]2586.21[/C][C]2562.14[/C][C]2448.77[/C][C]113.371[/C][C]24.069[/C][/ROW]
[ROW][C]8[/C][C]1898.55[/C][C]2652.6[/C][C]2679.8[/C][C]-27.2007[/C][C]-754.053[/C][/ROW]
[ROW][C]9[/C][C]2958.18[/C][C]2753.18[/C][C]2928.54[/C][C]-175.362[/C][C]205.004[/C][/ROW]
[ROW][C]10[/C][C]3290.73[/C][C]3256.33[/C][C]3196.35[/C][C]59.9808[/C][C]34.4017[/C][/ROW]
[ROW][C]11[/C][C]3408.39[/C][C]3539.73[/C][C]3432.78[/C][C]106.951[/C][C]-131.343[/C][/ROW]
[ROW][C]12[/C][C]3214.71[/C][C]3420.78[/C][C]3652.46[/C][C]-231.68[/C][C]-206.07[/C][/ROW]
[ROW][C]13[/C][C]4205.43[/C][C]4038[/C][C]3897.73[/C][C]140.271[/C][C]167.429[/C][/ROW]
[ROW][C]14[/C][C]4378.53[/C][C]4473.55[/C][C]4191.36[/C][C]282.193[/C][C]-95.0227[/C][/ROW]
[ROW][C]15[/C][C]4279.68[/C][C]4760.14[/C][C]4482.02[/C][C]278.123[/C][C]-480.461[/C][/ROW]
[ROW][C]16[/C][C]4799.25[/C][C]4925.69[/C][C]4735.14[/C][C]190.55[/C][C]-126.436[/C][/ROW]
[ROW][C]17[/C][C]4902.84[/C][C]4301.53[/C][C]5012.46[/C][C]-710.939[/C][C]601.314[/C][/ROW]
[ROW][C]18[/C][C]5379.84[/C][C]5275.07[/C][C]5301.33[/C][C]-26.2573[/C][C]104.769[/C][/ROW]
[ROW][C]19[/C][C]5527.05[/C][C]5669.19[/C][C]5555.82[/C][C]113.371[/C][C]-142.137[/C][/ROW]
[ROW][C]20[/C][C]6004.83[/C][C]5762.51[/C][C]5789.71[/C][C]-27.2007[/C][C]242.318[/C][/ROW]
[ROW][C]21[/C][C]5827.71[/C][C]5888.9[/C][C]6064.27[/C][C]-175.362[/C][C]-61.1939[/C][/ROW]
[ROW][C]22[/C][C]6496.02[/C][C]6386.61[/C][C]6326.63[/C][C]59.9808[/C][C]109.408[/C][/ROW]
[ROW][C]23[/C][C]6858.99[/C][C]6583.84[/C][C]6476.89[/C][C]106.951[/C][C]275.152[/C][/ROW]
[ROW][C]24[/C][C]6696.84[/C][C]6346.96[/C][C]6578.64[/C][C]-231.68[/C][C]349.879[/C][/ROW]
[ROW][C]25[/C][C]6831[/C][C]6854.62[/C][C]6714.35[/C][C]140.271[/C][C]-23.6189[/C][/ROW]
[ROW][C]26[/C][C]7366.47[/C][C]7127.64[/C][C]6845.45[/C][C]282.193[/C][C]238.832[/C][/ROW]
[ROW][C]27[/C][C]7881.03[/C][C]7256.76[/C][C]6978.64[/C][C]278.123[/C][C]624.271[/C][/ROW]
[ROW][C]28[/C][C]7494.66[/C][C]7224.41[/C][C]7033.86[/C][C]190.55[/C][C]270.245[/C][/ROW]
[ROW][C]29[/C][C]5813.55[/C][C]6271.05[/C][C]6981.99[/C][C]-710.939[/C][C]-457.504[/C][/ROW]
[ROW][C]30[/C][C]6911.25[/C][C]6872.21[/C][C]6898.47[/C][C]-26.2573[/C][C]39.0411[/C][/ROW]
[ROW][C]31[/C][C]7252.59[/C][C]6918.81[/C][C]6805.44[/C][C]113.371[/C][C]333.783[/C][/ROW]
[ROW][C]32[/C][C]7425.63[/C][C]6698.18[/C][C]6725.38[/C][C]-27.2007[/C][C]727.449[/C][/ROW]
[ROW][C]33[/C][C]7603.5[/C][C]NA[/C][C]NA[/C][C]-175.362[/C][C]NA[/C][/ROW]
[ROW][C]34[/C][C]6045.72[/C][C]NA[/C][C]NA[/C][C]59.9808[/C][C]NA[/C][/ROW]
[ROW][C]35[/C][C]6064.35[/C][C]NA[/C][C]NA[/C][C]106.951[/C][C]NA[/C][/ROW]
[ROW][C]36[/C][C]5486.85[/C][C]NA[/C][C]NA[/C][C]-231.68[/C][C]NA[/C][/ROW]
[ROW][C]37[/C][C]5808.27[/C][C]NA[/C][C]NA[/C][C]140.271[/C][C]NA[/C][/ROW]
[ROW][C]38[/C][C]6467.88[/C][C]NA[/C][C]NA[/C][C]282.193[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302672&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302672&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
11550.61NANA140.271NA
21488.54NANA282.193NA
31200.03NANA278.123NA
41451.49NANA190.55NA
52576.19NANA-710.939NA
62434.2NANA-26.2573NA
72586.212562.142448.77113.37124.069
81898.552652.62679.8-27.2007-754.053
92958.182753.182928.54-175.362205.004
103290.733256.333196.3559.980834.4017
113408.393539.733432.78106.951-131.343
123214.713420.783652.46-231.68-206.07
134205.4340383897.73140.271167.429
144378.534473.554191.36282.193-95.0227
154279.684760.144482.02278.123-480.461
164799.254925.694735.14190.55-126.436
174902.844301.535012.46-710.939601.314
185379.845275.075301.33-26.2573104.769
195527.055669.195555.82113.371-142.137
206004.835762.515789.71-27.2007242.318
215827.715888.96064.27-175.362-61.1939
226496.026386.616326.6359.9808109.408
236858.996583.846476.89106.951275.152
246696.846346.966578.64-231.68349.879
2568316854.626714.35140.271-23.6189
267366.477127.646845.45282.193238.832
277881.037256.766978.64278.123624.271
287494.667224.417033.86190.55270.245
295813.556271.056981.99-710.939-457.504
306911.256872.216898.47-26.257339.0411
317252.596918.816805.44113.371333.783
327425.636698.186725.38-27.2007727.449
337603.5NANA-175.362NA
346045.72NANA59.9808NA
356064.35NANA106.951NA
365486.85NANA-231.68NA
375808.27NANA140.271NA
386467.88NANA282.193NA



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