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, 28 Nov 2018 12:20:30 +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/2018/Nov/28/t1543404101s1a0exm9jv5vsbg.htm/, Retrieved Mon, 06 May 2024 03:29:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=315720, Retrieved Mon, 06 May 2024 03:29:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2018-11-28 11:20:30] [52298ad8b2f20a5607009b73b570cc21] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.27
0.282
0.277
0.28
0.272
0.262
0.275
0.267
0.265
0.277
0.282
0.27
0.272
0.287
0.277
0.287
0.28
0.277
0.277
0.277
0.292
0.287
0.277
0.285
0.282
0.265
0.265
0.265
0.268
0.26




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315720&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.27NANA-0.00553472NA
20.282NANA0.00896528NA
30.277NANA-0.00257639NA
40.28NANA0.00588194NA
50.272NANA-0.00132639NA
60.262NANA-0.00474306NA
70.2750.2707150.273333-0.002618060.00428472
80.2670.2671110.273625-0.00651389-0.000111111
90.2650.2744240.2738330.000590278-0.00942361
100.2770.2787780.2741250.00465278-0.00177778
110.2820.2772990.274750.002548610.00470139
120.270.2763820.2757080.000673611-0.00638194
130.2720.2708820.276417-0.005534720.00111806
140.2870.2858820.2769170.008965280.00111806
150.2770.2758820.278458-0.002576390.00111806
160.2870.2858820.280.005881940.00111806
170.280.2788820.280208-0.001326390.00111806
180.2770.2758820.280625-0.004743060.00111806
190.2770.2790490.281667-0.00261806-0.00204861
200.2770.2746530.281167-0.006513890.00234722
210.2920.280340.279750.0005902780.0116597
220.2870.2829860.2783330.004652780.00401389
230.2770.2794650.2769170.00254861-0.00246528
240.2850.2763820.2757080.0006736110.00861806
250.282NANA-0.00553472NA
260.265NANA0.00896528NA
270.265NANA-0.00257639NA
280.265NANA0.00588194NA
290.268NANA-0.00132639NA
300.26NANA-0.00474306NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 0.27 & NA & NA & -0.00553472 & NA \tabularnewline
2 & 0.282 & NA & NA & 0.00896528 & NA \tabularnewline
3 & 0.277 & NA & NA & -0.00257639 & NA \tabularnewline
4 & 0.28 & NA & NA & 0.00588194 & NA \tabularnewline
5 & 0.272 & NA & NA & -0.00132639 & NA \tabularnewline
6 & 0.262 & NA & NA & -0.00474306 & NA \tabularnewline
7 & 0.275 & 0.270715 & 0.273333 & -0.00261806 & 0.00428472 \tabularnewline
8 & 0.267 & 0.267111 & 0.273625 & -0.00651389 & -0.000111111 \tabularnewline
9 & 0.265 & 0.274424 & 0.273833 & 0.000590278 & -0.00942361 \tabularnewline
10 & 0.277 & 0.278778 & 0.274125 & 0.00465278 & -0.00177778 \tabularnewline
11 & 0.282 & 0.277299 & 0.27475 & 0.00254861 & 0.00470139 \tabularnewline
12 & 0.27 & 0.276382 & 0.275708 & 0.000673611 & -0.00638194 \tabularnewline
13 & 0.272 & 0.270882 & 0.276417 & -0.00553472 & 0.00111806 \tabularnewline
14 & 0.287 & 0.285882 & 0.276917 & 0.00896528 & 0.00111806 \tabularnewline
15 & 0.277 & 0.275882 & 0.278458 & -0.00257639 & 0.00111806 \tabularnewline
16 & 0.287 & 0.285882 & 0.28 & 0.00588194 & 0.00111806 \tabularnewline
17 & 0.28 & 0.278882 & 0.280208 & -0.00132639 & 0.00111806 \tabularnewline
18 & 0.277 & 0.275882 & 0.280625 & -0.00474306 & 0.00111806 \tabularnewline
19 & 0.277 & 0.279049 & 0.281667 & -0.00261806 & -0.00204861 \tabularnewline
20 & 0.277 & 0.274653 & 0.281167 & -0.00651389 & 0.00234722 \tabularnewline
21 & 0.292 & 0.28034 & 0.27975 & 0.000590278 & 0.0116597 \tabularnewline
22 & 0.287 & 0.282986 & 0.278333 & 0.00465278 & 0.00401389 \tabularnewline
23 & 0.277 & 0.279465 & 0.276917 & 0.00254861 & -0.00246528 \tabularnewline
24 & 0.285 & 0.276382 & 0.275708 & 0.000673611 & 0.00861806 \tabularnewline
25 & 0.282 & NA & NA & -0.00553472 & NA \tabularnewline
26 & 0.265 & NA & NA & 0.00896528 & NA \tabularnewline
27 & 0.265 & NA & NA & -0.00257639 & NA \tabularnewline
28 & 0.265 & NA & NA & 0.00588194 & NA \tabularnewline
29 & 0.268 & NA & NA & -0.00132639 & NA \tabularnewline
30 & 0.26 & NA & NA & -0.00474306 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315720&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.27[/C][C]NA[/C][C]NA[/C][C]-0.00553472[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]0.282[/C][C]NA[/C][C]NA[/C][C]0.00896528[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]0.277[/C][C]NA[/C][C]NA[/C][C]-0.00257639[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]0.28[/C][C]NA[/C][C]NA[/C][C]0.00588194[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]0.272[/C][C]NA[/C][C]NA[/C][C]-0.00132639[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]0.262[/C][C]NA[/C][C]NA[/C][C]-0.00474306[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]0.275[/C][C]0.270715[/C][C]0.273333[/C][C]-0.00261806[/C][C]0.00428472[/C][/ROW]
[ROW][C]8[/C][C]0.267[/C][C]0.267111[/C][C]0.273625[/C][C]-0.00651389[/C][C]-0.000111111[/C][/ROW]
[ROW][C]9[/C][C]0.265[/C][C]0.274424[/C][C]0.273833[/C][C]0.000590278[/C][C]-0.00942361[/C][/ROW]
[ROW][C]10[/C][C]0.277[/C][C]0.278778[/C][C]0.274125[/C][C]0.00465278[/C][C]-0.00177778[/C][/ROW]
[ROW][C]11[/C][C]0.282[/C][C]0.277299[/C][C]0.27475[/C][C]0.00254861[/C][C]0.00470139[/C][/ROW]
[ROW][C]12[/C][C]0.27[/C][C]0.276382[/C][C]0.275708[/C][C]0.000673611[/C][C]-0.00638194[/C][/ROW]
[ROW][C]13[/C][C]0.272[/C][C]0.270882[/C][C]0.276417[/C][C]-0.00553472[/C][C]0.00111806[/C][/ROW]
[ROW][C]14[/C][C]0.287[/C][C]0.285882[/C][C]0.276917[/C][C]0.00896528[/C][C]0.00111806[/C][/ROW]
[ROW][C]15[/C][C]0.277[/C][C]0.275882[/C][C]0.278458[/C][C]-0.00257639[/C][C]0.00111806[/C][/ROW]
[ROW][C]16[/C][C]0.287[/C][C]0.285882[/C][C]0.28[/C][C]0.00588194[/C][C]0.00111806[/C][/ROW]
[ROW][C]17[/C][C]0.28[/C][C]0.278882[/C][C]0.280208[/C][C]-0.00132639[/C][C]0.00111806[/C][/ROW]
[ROW][C]18[/C][C]0.277[/C][C]0.275882[/C][C]0.280625[/C][C]-0.00474306[/C][C]0.00111806[/C][/ROW]
[ROW][C]19[/C][C]0.277[/C][C]0.279049[/C][C]0.281667[/C][C]-0.00261806[/C][C]-0.00204861[/C][/ROW]
[ROW][C]20[/C][C]0.277[/C][C]0.274653[/C][C]0.281167[/C][C]-0.00651389[/C][C]0.00234722[/C][/ROW]
[ROW][C]21[/C][C]0.292[/C][C]0.28034[/C][C]0.27975[/C][C]0.000590278[/C][C]0.0116597[/C][/ROW]
[ROW][C]22[/C][C]0.287[/C][C]0.282986[/C][C]0.278333[/C][C]0.00465278[/C][C]0.00401389[/C][/ROW]
[ROW][C]23[/C][C]0.277[/C][C]0.279465[/C][C]0.276917[/C][C]0.00254861[/C][C]-0.00246528[/C][/ROW]
[ROW][C]24[/C][C]0.285[/C][C]0.276382[/C][C]0.275708[/C][C]0.000673611[/C][C]0.00861806[/C][/ROW]
[ROW][C]25[/C][C]0.282[/C][C]NA[/C][C]NA[/C][C]-0.00553472[/C][C]NA[/C][/ROW]
[ROW][C]26[/C][C]0.265[/C][C]NA[/C][C]NA[/C][C]0.00896528[/C][C]NA[/C][/ROW]
[ROW][C]27[/C][C]0.265[/C][C]NA[/C][C]NA[/C][C]-0.00257639[/C][C]NA[/C][/ROW]
[ROW][C]28[/C][C]0.265[/C][C]NA[/C][C]NA[/C][C]0.00588194[/C][C]NA[/C][/ROW]
[ROW][C]29[/C][C]0.268[/C][C]NA[/C][C]NA[/C][C]-0.00132639[/C][C]NA[/C][/ROW]
[ROW][C]30[/C][C]0.26[/C][C]NA[/C][C]NA[/C][C]-0.00474306[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=315720&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315720&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.27NANA-0.00553472NA
20.282NANA0.00896528NA
30.277NANA-0.00257639NA
40.28NANA0.00588194NA
50.272NANA-0.00132639NA
60.262NANA-0.00474306NA
70.2750.2707150.273333-0.002618060.00428472
80.2670.2671110.273625-0.00651389-0.000111111
90.2650.2744240.2738330.000590278-0.00942361
100.2770.2787780.2741250.00465278-0.00177778
110.2820.2772990.274750.002548610.00470139
120.270.2763820.2757080.000673611-0.00638194
130.2720.2708820.276417-0.005534720.00111806
140.2870.2858820.2769170.008965280.00111806
150.2770.2758820.278458-0.002576390.00111806
160.2870.2858820.280.005881940.00111806
170.280.2788820.280208-0.001326390.00111806
180.2770.2758820.280625-0.004743060.00111806
190.2770.2790490.281667-0.00261806-0.00204861
200.2770.2746530.281167-0.006513890.00234722
210.2920.280340.279750.0005902780.0116597
220.2870.2829860.2783330.004652780.00401389
230.2770.2794650.2769170.00254861-0.00246528
240.2850.2763820.2757080.0006736110.00861806
250.282NANA-0.00553472NA
260.265NANA0.00896528NA
270.265NANA-0.00257639NA
280.265NANA0.00588194NA
290.268NANA-0.00132639NA
300.26NANA-0.00474306NA



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