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 computationMon, 12 Dec 2016 19:49:49 +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/12/t14815686010p763sysjun3ftk.htm/, Retrieved Fri, 03 May 2024 19:50:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=298969, Retrieved Fri, 03 May 2024 19:50:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact62
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [classical decompo...] [2016-12-12 18:49:49] [130d73899007e5ff8a4f636b9bcfb397] [Current]
Feedback Forum

Post a new message
Dataseries X:
4360
3120
4120
4000
5360
5240
4240
5460
4660
5160
5500
3820
5380
4920
4420
5700
6000
7160
6700
4520
5980
6240
4780
4800
5900
4200
5100
5440
5820
6160
7060
6760
5980
7020
6420
6620
7500
6180
8060
6500
6360
7760
7080
7940
7340
7860
6720
7680
8920
7200
7800




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=298969&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
14360NANA394.757NA
23120NANA-839.132NA
34120NANA-150.799NA
44000NANA-205.521NA
55360NANA-79.9653NA
65240NANA816.146NA
742405010.734629.17381.563-770.729
854604938.234746.67191.563521.771
946604764.94834.17-69.2708-104.896
1051605364.24917.5446.701-204.201
1155004839.765015-175.243660.243
1238204410.875121.67-710.799-590.868
1353805698.925304.17394.757-318.924
1449204528.375367.5-839.132391.632
1544205232.535383.33-150.799-812.535
1657005277.815483.33-205.521422.188
1760005418.375498.33-79.9653581.632
1871606325.315509.17816.146834.688
1967005953.235571.67381.563746.771
2045205754.95563.33191.563-1234.9
2159805492.45561.67-69.2708487.604
2262406025.875579.17446.701214.132
2347805385.595560.83-175.243-605.59
2448004800.875511.67-710.799-0.868056
2559005879.765485394.75720.2431
2642004754.25593.33-839.132-554.201
2751005535.875686.67-150.799-435.868
2854405513.655719.17-205.521-73.6458
2958205740.035820-79.965379.9653
3061606780.315964.17816.146-620.312
3170606488.236106.67381.563571.771
3267606447.46255.83191.563312.604
3359806392.46461.67-69.2708-412.396
3470207075.876629.17446.701-55.8681
3564206520.596695.83-175.243-100.59
3666206074.26785-710.799545.799
3775007247.266852.5394.757252.743
3861806063.376902.5-839.132116.632
3980606857.537008.33-150.7991202.47
4065006894.487100-205.521-394.479
4163607067.537147.5-79.9653-707.535
4277608020.317204.17816.146-260.313
4370807689.067307.5381.563-609.062
4479407600.737409.17191.563339.271
4573407371.567440.83-69.2708-31.5625
467860NANA446.701NA
476720NANA-175.243NA
487680NANA-710.799NA
498920NANA394.757NA
507200NANA-839.132NA
517800NANA-150.799NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 4360 & NA & NA & 394.757 & NA \tabularnewline
2 & 3120 & NA & NA & -839.132 & NA \tabularnewline
3 & 4120 & NA & NA & -150.799 & NA \tabularnewline
4 & 4000 & NA & NA & -205.521 & NA \tabularnewline
5 & 5360 & NA & NA & -79.9653 & NA \tabularnewline
6 & 5240 & NA & NA & 816.146 & NA \tabularnewline
7 & 4240 & 5010.73 & 4629.17 & 381.563 & -770.729 \tabularnewline
8 & 5460 & 4938.23 & 4746.67 & 191.563 & 521.771 \tabularnewline
9 & 4660 & 4764.9 & 4834.17 & -69.2708 & -104.896 \tabularnewline
10 & 5160 & 5364.2 & 4917.5 & 446.701 & -204.201 \tabularnewline
11 & 5500 & 4839.76 & 5015 & -175.243 & 660.243 \tabularnewline
12 & 3820 & 4410.87 & 5121.67 & -710.799 & -590.868 \tabularnewline
13 & 5380 & 5698.92 & 5304.17 & 394.757 & -318.924 \tabularnewline
14 & 4920 & 4528.37 & 5367.5 & -839.132 & 391.632 \tabularnewline
15 & 4420 & 5232.53 & 5383.33 & -150.799 & -812.535 \tabularnewline
16 & 5700 & 5277.81 & 5483.33 & -205.521 & 422.188 \tabularnewline
17 & 6000 & 5418.37 & 5498.33 & -79.9653 & 581.632 \tabularnewline
18 & 7160 & 6325.31 & 5509.17 & 816.146 & 834.688 \tabularnewline
19 & 6700 & 5953.23 & 5571.67 & 381.563 & 746.771 \tabularnewline
20 & 4520 & 5754.9 & 5563.33 & 191.563 & -1234.9 \tabularnewline
21 & 5980 & 5492.4 & 5561.67 & -69.2708 & 487.604 \tabularnewline
22 & 6240 & 6025.87 & 5579.17 & 446.701 & 214.132 \tabularnewline
23 & 4780 & 5385.59 & 5560.83 & -175.243 & -605.59 \tabularnewline
24 & 4800 & 4800.87 & 5511.67 & -710.799 & -0.868056 \tabularnewline
25 & 5900 & 5879.76 & 5485 & 394.757 & 20.2431 \tabularnewline
26 & 4200 & 4754.2 & 5593.33 & -839.132 & -554.201 \tabularnewline
27 & 5100 & 5535.87 & 5686.67 & -150.799 & -435.868 \tabularnewline
28 & 5440 & 5513.65 & 5719.17 & -205.521 & -73.6458 \tabularnewline
29 & 5820 & 5740.03 & 5820 & -79.9653 & 79.9653 \tabularnewline
30 & 6160 & 6780.31 & 5964.17 & 816.146 & -620.312 \tabularnewline
31 & 7060 & 6488.23 & 6106.67 & 381.563 & 571.771 \tabularnewline
32 & 6760 & 6447.4 & 6255.83 & 191.563 & 312.604 \tabularnewline
33 & 5980 & 6392.4 & 6461.67 & -69.2708 & -412.396 \tabularnewline
34 & 7020 & 7075.87 & 6629.17 & 446.701 & -55.8681 \tabularnewline
35 & 6420 & 6520.59 & 6695.83 & -175.243 & -100.59 \tabularnewline
36 & 6620 & 6074.2 & 6785 & -710.799 & 545.799 \tabularnewline
37 & 7500 & 7247.26 & 6852.5 & 394.757 & 252.743 \tabularnewline
38 & 6180 & 6063.37 & 6902.5 & -839.132 & 116.632 \tabularnewline
39 & 8060 & 6857.53 & 7008.33 & -150.799 & 1202.47 \tabularnewline
40 & 6500 & 6894.48 & 7100 & -205.521 & -394.479 \tabularnewline
41 & 6360 & 7067.53 & 7147.5 & -79.9653 & -707.535 \tabularnewline
42 & 7760 & 8020.31 & 7204.17 & 816.146 & -260.313 \tabularnewline
43 & 7080 & 7689.06 & 7307.5 & 381.563 & -609.062 \tabularnewline
44 & 7940 & 7600.73 & 7409.17 & 191.563 & 339.271 \tabularnewline
45 & 7340 & 7371.56 & 7440.83 & -69.2708 & -31.5625 \tabularnewline
46 & 7860 & NA & NA & 446.701 & NA \tabularnewline
47 & 6720 & NA & NA & -175.243 & NA \tabularnewline
48 & 7680 & NA & NA & -710.799 & NA \tabularnewline
49 & 8920 & NA & NA & 394.757 & NA \tabularnewline
50 & 7200 & NA & NA & -839.132 & NA \tabularnewline
51 & 7800 & NA & NA & -150.799 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=298969&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]4360[/C][C]NA[/C][C]NA[/C][C]394.757[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]3120[/C][C]NA[/C][C]NA[/C][C]-839.132[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]4120[/C][C]NA[/C][C]NA[/C][C]-150.799[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]4000[/C][C]NA[/C][C]NA[/C][C]-205.521[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]5360[/C][C]NA[/C][C]NA[/C][C]-79.9653[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]5240[/C][C]NA[/C][C]NA[/C][C]816.146[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]4240[/C][C]5010.73[/C][C]4629.17[/C][C]381.563[/C][C]-770.729[/C][/ROW]
[ROW][C]8[/C][C]5460[/C][C]4938.23[/C][C]4746.67[/C][C]191.563[/C][C]521.771[/C][/ROW]
[ROW][C]9[/C][C]4660[/C][C]4764.9[/C][C]4834.17[/C][C]-69.2708[/C][C]-104.896[/C][/ROW]
[ROW][C]10[/C][C]5160[/C][C]5364.2[/C][C]4917.5[/C][C]446.701[/C][C]-204.201[/C][/ROW]
[ROW][C]11[/C][C]5500[/C][C]4839.76[/C][C]5015[/C][C]-175.243[/C][C]660.243[/C][/ROW]
[ROW][C]12[/C][C]3820[/C][C]4410.87[/C][C]5121.67[/C][C]-710.799[/C][C]-590.868[/C][/ROW]
[ROW][C]13[/C][C]5380[/C][C]5698.92[/C][C]5304.17[/C][C]394.757[/C][C]-318.924[/C][/ROW]
[ROW][C]14[/C][C]4920[/C][C]4528.37[/C][C]5367.5[/C][C]-839.132[/C][C]391.632[/C][/ROW]
[ROW][C]15[/C][C]4420[/C][C]5232.53[/C][C]5383.33[/C][C]-150.799[/C][C]-812.535[/C][/ROW]
[ROW][C]16[/C][C]5700[/C][C]5277.81[/C][C]5483.33[/C][C]-205.521[/C][C]422.188[/C][/ROW]
[ROW][C]17[/C][C]6000[/C][C]5418.37[/C][C]5498.33[/C][C]-79.9653[/C][C]581.632[/C][/ROW]
[ROW][C]18[/C][C]7160[/C][C]6325.31[/C][C]5509.17[/C][C]816.146[/C][C]834.688[/C][/ROW]
[ROW][C]19[/C][C]6700[/C][C]5953.23[/C][C]5571.67[/C][C]381.563[/C][C]746.771[/C][/ROW]
[ROW][C]20[/C][C]4520[/C][C]5754.9[/C][C]5563.33[/C][C]191.563[/C][C]-1234.9[/C][/ROW]
[ROW][C]21[/C][C]5980[/C][C]5492.4[/C][C]5561.67[/C][C]-69.2708[/C][C]487.604[/C][/ROW]
[ROW][C]22[/C][C]6240[/C][C]6025.87[/C][C]5579.17[/C][C]446.701[/C][C]214.132[/C][/ROW]
[ROW][C]23[/C][C]4780[/C][C]5385.59[/C][C]5560.83[/C][C]-175.243[/C][C]-605.59[/C][/ROW]
[ROW][C]24[/C][C]4800[/C][C]4800.87[/C][C]5511.67[/C][C]-710.799[/C][C]-0.868056[/C][/ROW]
[ROW][C]25[/C][C]5900[/C][C]5879.76[/C][C]5485[/C][C]394.757[/C][C]20.2431[/C][/ROW]
[ROW][C]26[/C][C]4200[/C][C]4754.2[/C][C]5593.33[/C][C]-839.132[/C][C]-554.201[/C][/ROW]
[ROW][C]27[/C][C]5100[/C][C]5535.87[/C][C]5686.67[/C][C]-150.799[/C][C]-435.868[/C][/ROW]
[ROW][C]28[/C][C]5440[/C][C]5513.65[/C][C]5719.17[/C][C]-205.521[/C][C]-73.6458[/C][/ROW]
[ROW][C]29[/C][C]5820[/C][C]5740.03[/C][C]5820[/C][C]-79.9653[/C][C]79.9653[/C][/ROW]
[ROW][C]30[/C][C]6160[/C][C]6780.31[/C][C]5964.17[/C][C]816.146[/C][C]-620.312[/C][/ROW]
[ROW][C]31[/C][C]7060[/C][C]6488.23[/C][C]6106.67[/C][C]381.563[/C][C]571.771[/C][/ROW]
[ROW][C]32[/C][C]6760[/C][C]6447.4[/C][C]6255.83[/C][C]191.563[/C][C]312.604[/C][/ROW]
[ROW][C]33[/C][C]5980[/C][C]6392.4[/C][C]6461.67[/C][C]-69.2708[/C][C]-412.396[/C][/ROW]
[ROW][C]34[/C][C]7020[/C][C]7075.87[/C][C]6629.17[/C][C]446.701[/C][C]-55.8681[/C][/ROW]
[ROW][C]35[/C][C]6420[/C][C]6520.59[/C][C]6695.83[/C][C]-175.243[/C][C]-100.59[/C][/ROW]
[ROW][C]36[/C][C]6620[/C][C]6074.2[/C][C]6785[/C][C]-710.799[/C][C]545.799[/C][/ROW]
[ROW][C]37[/C][C]7500[/C][C]7247.26[/C][C]6852.5[/C][C]394.757[/C][C]252.743[/C][/ROW]
[ROW][C]38[/C][C]6180[/C][C]6063.37[/C][C]6902.5[/C][C]-839.132[/C][C]116.632[/C][/ROW]
[ROW][C]39[/C][C]8060[/C][C]6857.53[/C][C]7008.33[/C][C]-150.799[/C][C]1202.47[/C][/ROW]
[ROW][C]40[/C][C]6500[/C][C]6894.48[/C][C]7100[/C][C]-205.521[/C][C]-394.479[/C][/ROW]
[ROW][C]41[/C][C]6360[/C][C]7067.53[/C][C]7147.5[/C][C]-79.9653[/C][C]-707.535[/C][/ROW]
[ROW][C]42[/C][C]7760[/C][C]8020.31[/C][C]7204.17[/C][C]816.146[/C][C]-260.313[/C][/ROW]
[ROW][C]43[/C][C]7080[/C][C]7689.06[/C][C]7307.5[/C][C]381.563[/C][C]-609.062[/C][/ROW]
[ROW][C]44[/C][C]7940[/C][C]7600.73[/C][C]7409.17[/C][C]191.563[/C][C]339.271[/C][/ROW]
[ROW][C]45[/C][C]7340[/C][C]7371.56[/C][C]7440.83[/C][C]-69.2708[/C][C]-31.5625[/C][/ROW]
[ROW][C]46[/C][C]7860[/C][C]NA[/C][C]NA[/C][C]446.701[/C][C]NA[/C][/ROW]
[ROW][C]47[/C][C]6720[/C][C]NA[/C][C]NA[/C][C]-175.243[/C][C]NA[/C][/ROW]
[ROW][C]48[/C][C]7680[/C][C]NA[/C][C]NA[/C][C]-710.799[/C][C]NA[/C][/ROW]
[ROW][C]49[/C][C]8920[/C][C]NA[/C][C]NA[/C][C]394.757[/C][C]NA[/C][/ROW]
[ROW][C]50[/C][C]7200[/C][C]NA[/C][C]NA[/C][C]-839.132[/C][C]NA[/C][/ROW]
[ROW][C]51[/C][C]7800[/C][C]NA[/C][C]NA[/C][C]-150.799[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=298969&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=298969&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
14360NANA394.757NA
23120NANA-839.132NA
34120NANA-150.799NA
44000NANA-205.521NA
55360NANA-79.9653NA
65240NANA816.146NA
742405010.734629.17381.563-770.729
854604938.234746.67191.563521.771
946604764.94834.17-69.2708-104.896
1051605364.24917.5446.701-204.201
1155004839.765015-175.243660.243
1238204410.875121.67-710.799-590.868
1353805698.925304.17394.757-318.924
1449204528.375367.5-839.132391.632
1544205232.535383.33-150.799-812.535
1657005277.815483.33-205.521422.188
1760005418.375498.33-79.9653581.632
1871606325.315509.17816.146834.688
1967005953.235571.67381.563746.771
2045205754.95563.33191.563-1234.9
2159805492.45561.67-69.2708487.604
2262406025.875579.17446.701214.132
2347805385.595560.83-175.243-605.59
2448004800.875511.67-710.799-0.868056
2559005879.765485394.75720.2431
2642004754.25593.33-839.132-554.201
2751005535.875686.67-150.799-435.868
2854405513.655719.17-205.521-73.6458
2958205740.035820-79.965379.9653
3061606780.315964.17816.146-620.312
3170606488.236106.67381.563571.771
3267606447.46255.83191.563312.604
3359806392.46461.67-69.2708-412.396
3470207075.876629.17446.701-55.8681
3564206520.596695.83-175.243-100.59
3666206074.26785-710.799545.799
3775007247.266852.5394.757252.743
3861806063.376902.5-839.132116.632
3980606857.537008.33-150.7991202.47
4065006894.487100-205.521-394.479
4163607067.537147.5-79.9653-707.535
4277608020.317204.17816.146-260.313
4370807689.067307.5381.563-609.062
4479407600.737409.17191.563339.271
4573407371.567440.83-69.2708-31.5625
467860NANA446.701NA
476720NANA-175.243NA
487680NANA-710.799NA
498920NANA394.757NA
507200NANA-839.132NA
517800NANA-150.799NA



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