Home » date » 2011 » May » 15 »

Australian sparkling wine

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 15 May 2011 15:42:12 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8.htm/, Retrieved Sun, 15 May 2011 17:41:43 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1686 1591 2304 1712 1471 1377 1966 2453 1984 2596 4087 5179 1530 1523 1633 1976 1170 1480 1781 2472 1981 2273 3857 4551 1510 1329 1518 1790 1537 1449 1954 1897 1706 2514 3593 4524 1609 1638 2030 1375 1320 1245 1600 2298 2191 2511 3440 4923 1609 1435 2061 1789 1567 1404 1597 3159 1759 2504 4273 5274 1771 1682 1846 1589 1896 1379 1645 2512 1771 3727 4388 5434 1606 1523 1577 1605 1765 1403 2584 3318 1562 2349 3987 5891 1389 1442 1548 1935 1518 1250 1847 1930 2638 3114 4405 7242 1853 1779 2108 2336 1728 1661 2230 1645 2421 3740 4988 6757 1757 1394 1982 1650 1654 1406 1971 1968 2608 3845 4514 6694 1720 1321 1859 1628 1615 1457 1899 1605 2424 3116 4286 6047 1902 2049 1874 1279 1432 1540 2214 1857 2408 3252 3627 6153 1577 1667 1993 1997 1783 1625 2076 1773 2377 3088 4096 6119 1494 1564 1898 2121 1831 1515 2048 2795 1749 3339 4227 6410 1197 1968 1720 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11686NANA-823.33308531746NA
21591NANA-835.675347222222NA
32304NANA-597.681299603174NA
41712NANA-663.815228174603NA
51471NANA-829.740823412698NA
61377NANA-972.758680555556NA
719661884.693700396832360.66666666667-475.97296626984181.3062996031745
824532109.018105158732351.33333333333-242.315228174603343.98189484127
919842066.300843253972320.54166666667-254.240823412698-82.3008432539682
1025962919.896081349212303.58333333333616.312748015873-323.896081349206
1140873963.848462301592302.041666666671661.80679563492123.151537698413
1251795711.205605158732293.791666666673417.41393849206-532.20560515873
1315301467.041914682542290.375-823.3330853174662.9580853174607
1415231447.782986111112283.45833333333-835.67534722222275.2170138888891
1516331686.443700396832284.125-597.681299603174-53.4437003968251
1619761606.726438492062270.54166666667-663.815228174603369.273561507937
1711701417.75917658732247.5-829.740823412698-247.759176587302
1814801238.991319444442211.75-972.758680555556241.008680555556
1917811708.777033730162184.75-475.97296626984172.222966269841
2024721933.518105158732175.83333333333-242.315228174603538.48189484127
2119811908.717509920632162.95833333333-254.24082341269872.2824900793653
2222732766.729414682542150.41666666667616.312748015873-493.72941468254
2338573819.765128968252157.958333333331661.8067956349237.234871031746
2445515589.37227182542171.958333333333417.41393849206-1038.3722718254
2515101354.541914682542177.875-823.33308531746155.45808531746
2613291325.449652777782161.125-835.6753472222223.55034722222217
2715181528.027033730162125.70833333333-597.681299603174-10.027033730159
2817901460.476438492062124.29166666667-663.815228174603329.523561507937
2915371293.592509920632123.33333333333-829.740823412698243.407490079365
3014491138.449652777782111.20833333333-972.758680555556310.550347222223
3119541638.235367063492114.20833333333-475.972966269841315.764632936508
3218971888.893105158732131.20833333333-242.3152281746038.10689484127033
3317061911.175843253972165.41666666667-254.240823412698-205.175843253968
3425142785.771081349212169.45833333333616.312748015873-271.771081349206
3535933804.931795634922143.1251661.80679563492-211.93179563492
3645245542.99727182542125.583333333333417.41393849206-1018.9972718254
3716091279.000248015872102.33333333333-823.33308531746329.999751984127
3816381268.616319444442104.29166666667-835.675347222222369.383680555556
3920301543.527033730162141.20833333333-597.681299603174486.472966269841
4013751497.476438492062161.29166666667-663.815228174603-122.476438492063
4113201325.050843253972154.79166666667-829.740823412698-5.0508432539682
4212451192.282986111112165.04166666667-972.75868055555652.7170138888891
4316001705.693700396832181.66666666667-475.972966269841-105.693700396826
4422981930.893105158732173.20833333333-242.315228174603367.10689484127
4521911911.800843253972166.04166666667-254.240823412698279.199156746032
4625112800.896081349212184.58333333333616.312748015873-289.896081349206
4734403873.931795634922212.1251661.80679563492-433.93179563492
4849235646.455605158732229.041666666673417.41393849206-723.45560515873
4916091412.208581349212235.54166666667-823.33308531746196.791418650794
5014351435.616319444442271.29166666667-835.675347222222-0.616319444444798
5120611691.485367063492289.16666666667-597.681299603174369.514632936508
5217891607.05977182542270.875-663.815228174603181.940228174604
5315671475.550843253972305.29166666667-829.74082341269891.4491567460318
5414041381.866319444442354.625-972.75868055555622.1336805555561
5515971900.027033730162376-475.972966269841-303.027033730159
5631592150.726438492062393.04166666667-242.3152281746031008.27356150794
5717592140.13417658732394.375-254.240823412698-381.134176587302
5825042993.396081349212377.08333333333616.312748015873-489.396081349206
5942734044.265128968252382.458333333331661.80679563492228.734871031746
6052745812.538938492062395.1253417.41393849206-538.538938492063
6117711572.750248015872396.08333333333-823.33308531746198.249751984127
6216821535.449652777782371.125-835.675347222222146.550347222222
6318461746.985367063492344.66666666667-597.68129960317499.014632936508
6415891732.30977182542396.125-663.815228174603-143.309771825397
6518961622.13417658732451.875-829.740823412698273.865823412699
6613791490.574652777782463.33333333333-972.758680555556-111.574652777777
6716451987.152033730162463.125-475.972966269841-342.152033730159
6825122207.30977182542449.625-242.315228174603304.690228174603
6917712177.550843253972431.79166666667-254.240823412698-406.550843253968
7037273037.562748015872421.25616.312748015873689.437251984128
7143884078.265128968252416.458333333331661.80679563492309.734871031746
7254345829.4139384920624123417.41393849206-395.413938492063
7316061628.791914682542452.125-823.33308531746-22.7919146825393
7415231689.157986111112524.83333333333-835.675347222222-166.157986111111
7515771952.027033730162549.70833333333-597.681299603174-375.027033730159
7616051819.768105158732483.58333333333-663.815228174603-214.76810515873
7717651579.717509920642409.45833333333-829.740823412698185.282490079365
7814031439.032986111112411.79166666667-972.758680555556-36.0329861111109
7925841945.818700396822421.79166666667-475.972966269841638.181299603175
8033182167.05977182542409.375-242.3152281746031150.9402281746
8115622150.550843253972404.79166666667-254.240823412698-588.550843253969
8223493033.646081349212417.33333333333616.312748015873-684.646081349206
8339874082.598462301592420.791666666671661.80679563492-95.598462301587
8458915821.538938492062404.1253417.4139384920669.4610615079368
8513891543.708581349212367.04166666667-823.33308531746-154.708581349206
8614421442.824652777782278.5-835.675347222222-0.824652777777828
8715481667.818700396832265.5-597.681299603174-119.818700396826
8819351678.393105158732342.20833333333-663.815228174603256.60689484127
8915181561.75917658732391.5-829.740823412698-43.7591765873017
9012501492.449652777782465.20833333333-972.758680555556-242.449652777778
9118472064.860367063492540.83333333333-475.972966269841-217.860367063493
9219302331.893105158732574.20833333333-242.315228174603-401.89310515873
9326382357.342509920632611.58333333333-254.240823412698280.657490079365
9431143267.937748015872651.625616.312748015873-153.937748015872
9544054338.890128968252677.083333333331661.8067956349266.1098710317465
9672426120.37227182542702.958333333333417.413938492061121.6277281746
9718531912.708581349212736.04166666667-823.33308531746-59.7085813492067
9817791904.449652777782740.125-835.675347222222-125.449652777778
9921082121.527033730162719.20833333333-597.681299603174-13.5270337301586
10023362072.43477182542736.25-663.815228174603263.565228174603
10117281956.88417658732786.625-829.740823412698-228.884176587302
10216611817.949652777782790.70833333333-972.758680555556-156.949652777777
10322302290.527033730162766.5-475.972966269841-60.5270337301586
10416452504.143105158732746.45833333333-242.315228174603-859.14310515873
10524212470.925843253972725.16666666667-254.240823412698-49.9258432539677
10637403307.646081349212691.33333333333616.312748015873432.353918650794
10749884321.473462301592659.666666666671661.80679563492666.526537698413
10867576063.37227182542645.958333333333417.41393849206693.627728174603
10917571801.208581349212624.54166666667-823.33308531746-44.2085813492058
11013941791.532986111112627.20833333333-835.675347222222-397.532986111111
11119822050.777033730162648.45833333333-597.681299603174-68.7770337301586
11216501996.80977182542660.625-663.815228174603-346.809771825397
11316541815.50917658732645.25-829.740823412698-161.509176587302
11414061650.116319444442622.875-972.758680555556-244.116319444444
11519712142.735367063492618.70833333333-475.972966269841-171.735367063492
11619682371.80977182542614.125-242.315228174603-403.809771825397
11726082351.717509920642605.95833333333-254.240823412698256.282490079365
11838453216.229414682542599.91666666667616.312748015873628.770585317461
11945144259.181795634922597.3751661.80679563492254.81820436508
12066946015.288938492062597.8753417.41393849206678.711061507937
12117201773.666914682542597-823.33308531746-53.6669146825398
12213211743.199652777782578.875-835.675347222222-422.199652777778
12318591958.402033730162556.08333333333-597.681299603174-99.4020337301581
12416281854.226438492062518.04166666667-663.815228174603-226.226438492063
12516151648.425843253972478.16666666667-829.740823412698-33.4258432539682
12614571468.949652777782441.70833333333-972.758680555556-11.9496527777774
12718991946.360367063492422.33333333333-475.972966269841-47.360367063492
12816052217.93477182542460.25-242.315228174603-612.934771825396
12924242236.967509920632491.20833333333-254.240823412698187.032490079365
13031163093.604414682542477.29166666667616.31274801587322.3955853174607
13142864116.931795634922455.1251661.80679563492169.06820436508
13260475868.37227182542450.958333333333417.41393849206178.627728174604
13319021644.208581349212467.54166666667-823.33308531746257.791418650794
13420491655.491319444442491.16666666667-835.675347222222393.508680555556
13518741903.318700396832501-597.681299603174-29.3187003968251
13612791842.18477182542506-663.815228174603-563.184771825397
13714321654.467509920642484.20833333333-829.740823412698-222.467509920635
13815401488.407986111112461.16666666667-972.75868055555651.5920138888891
13922141976.068700396832452.04166666667-475.972966269841237.931299603174
14018572180.268105158732422.58333333333-242.315228174603-323.26810515873
14124082157.38417658732411.625-254.240823412698250.615823412698
14232523062.812748015872446.5616.312748015873189.187251984127
14336274152.848462301592491.041666666671661.80679563492-525.848462301588
14461535926.62227182542509.208333333333417.41393849206226.377728174604
14515771683.666914682542507-823.33308531746-106.666914682539
14616671662.074652777782497.75-835.6753472222224.92534722222263
14719931895.277033730162492.95833333333-597.68129960317497.722966269841
14819971821.018105158732484.83333333333-663.815228174603175.98189484127
14917831667.800843253972497.54166666667-829.740823412698115.199156746031
15016251542.907986111112515.66666666667-972.75868055555682.0920138888891
15120762034.818700396832510.79166666667-475.97296626984141.1812996031745
15217732260.726438492062503.04166666667-242.315228174603-487.726438492063
15323772240.550843253972494.79166666667-254.240823412698136.449156746032
15430883112.312748015872496616.312748015873-24.3127480158728
15540964164.973462301592503.166666666671661.80679563492-68.9734623015866
15661195917.99727182542500.583333333333417.41393849206201.002728174603
15714941671.500248015872494.83333333333-823.33308531746-177.500248015873
15815641700.574652777782536.25-835.675347222222-136.574652777778
15918981954.985367063492552.66666666667-597.681299603174-56.985367063492
16021211873.143105158732536.95833333333-663.815228174603247.85689484127
16118311723.13417658732552.875-829.740823412698107.865823412699
16215151597.699652777782570.45833333333-972.758680555556-82.6996527777778
16320482094.235367063492570.20833333333-475.972966269841-46.235367063492
16427952332.351438492062574.66666666667-242.315228174603462.648561507937
16517492329.842509920642584.08333333333-254.240823412698-580.842509920635
16633393176.479414682542560.16666666667616.312748015873162.52058531746
16742274198.931795634922537.1251661.8067956349228.06820436508
16864105955.4139384920625383417.41393849206454.586061507937
16911971721.375248015872544.70833333333-823.33308531746-524.375248015873
17019681654.157986111112489.83333333333-835.675347222222313.842013888889
17117201888.777033730162486.45833333333-597.681299603174-168.777033730159
17217251875.351438492062539.16666666667-663.815228174603-150.351438492063
17316741690.592509920632520.33333333333-829.740823412698-16.5925099206347
17416931509.699652777782482.45833333333-972.758680555556183.300347222223
17520311984.068700396832460.04166666667-475.97296626984146.9312996031745
17614952188.851438492062431.16666666667-242.315228174603-693.851438492063
17729682160.717509920632414.95833333333-254.240823412698807.282490079365
17833853044.354414682542428.04166666667616.312748015873340.645585317461
17937294095.390128968252433.583333333331661.80679563492-366.390128968254
18059995850.62227182542433.208333333333417.41393849206148.377728174604
1811070NA2433NANA
1821402NANANANA
1831897NANANANA
1841862NANANANA
1851670NANANANA
1861688NANANANA
1872031NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/10i8t1305474127.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/10i8t1305474127.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/273at1305474127.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/273at1305474127.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/3okmz1305474127.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/3okmz1305474127.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/4w8kh1305474127.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t13054741034lws8hjjg146yw8/4w8kh1305474127.ps (open in new window)


 
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,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by