Home » date » 2010 » Dec » 26 »

Retail sale of wines and spirits in specialised stores

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 26 Dec 2010 14:57:29 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26.htm/, Retrieved Sun, 26 Dec 2010 15:56:08 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
57,7 63,6 78 77,4 74,1 85,9 82 78,4 68,1 70,9 85,2 149,6 57,9 63,7 85 66,1 80,2 83,4 85,7 81,8 69,4 76,4 90,3 157,3 65,3 68,4 72,7 86,6 82,6 84,8 93,4 82,2 75,2 83,9 85,4 166,3 70,4 73,9 82,4 92,3 82,7 95,8 105,8 84,2 82,7 88,4 90,2 176,6 69,5 77,3 98,6 86,4 90,8 101,5 112,2 93,6 93,8 90,8 98,1 187,6 75 83,7 99,7 104,9 98,9 117,3 115,7 102,2 101,9 96,6 110 203,7 82,3 93,3 121,9 100,9 107,7 130 123,2 116,1 105,3 107,7 123,9 205,2 90,3 106,9 122,4 111,3 122,6 124,8 139,5 118,8 111 121,2 120,6 219,1 101,3 105 113,4 133,6 123,9 136,2 151,7 121,9 120,2 132,2 125,2 233,8
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
157.7NANA0.742642680514456NA
263.6NANA0.809533496184677NA
378NANA0.957061403008848NA
477.4NANA0.932479236330016NA
574.1NANA0.938635699865698NA
685.9NANA1.03062188643898NA
78286.66484246968980.91666666666671.071038217957020.94617376162288
878.476.39816400946680.92916666666670.944012735533741.02620267144490
968.171.064958378813981.2250.8749148461534490.958278194394921
1070.973.614719973507481.04583333333330.9083097421028110.96312259321934
1185.280.06790874065380.82916666666670.9905818907034761.06409673163777
12149.6145.77611787831180.97916666666671.800168165206831.02623119738228
1357.960.175717533185981.02916666666670.7426426805144560.962182128830771
1463.765.835311577218981.3250.8095334961846770.967565862056955
158578.020443124450481.52083333333330.9570614030088481.08945805222378
1666.176.280686861946781.80416666666670.9324792363300160.866536507722173
1780.277.198875331870982.24583333333330.9386356998656981.03887523821076
1883.485.314020907846682.77916666666671.030621886438980.977564990051119
1985.789.333512696098783.40833333333331.071038217957020.959326432080877
2081.879.21446867047583.91250.944012735533741.03263963481571
2169.473.139235659902783.59583333333330.8749148461534490.94887510614289
2276.476.241248977754783.93750.9083097421028111.00208221959076
2390.384.092147671635984.89166666666670.9905818907034761.07382202144015
24157.3153.10430245084185.051.800168165206831.02740417794925
2565.363.443345327449585.42916666666670.7426426805144561.02926476627246
2668.469.430989522772585.76666666666670.8095334961846770.985150873840933
2772.782.331207193836186.0250.9570614030088480.88301875410182
2886.680.733275215422686.57916666666670.9324792363300161.07266798936279
2982.681.367982232107786.68750.9386356998656981.01514130907631
3084.889.518099352945686.85833333333331.030621886438980.947294464616106
3193.493.657829501100187.44583333333331.071038217957020.997247112147767
3282.282.966919294221687.88750.944012735533740.99075632431883
3375.277.448191277208488.52083333333330.8749148461534490.970971674868926
3483.980.987167380241989.16250.9083097421028111.03596659463446
3585.488.562148453435389.40416666666670.9905818907034760.964294582858975
36166.3161.77511244658789.86666666666671.800168165206831.02797023278168
3770.467.46289883573490.84166666666670.7426426805144561.04353653956403
3873.974.025092113620591.44166666666670.8095334961846770.998310139034633
3982.487.894126598825191.83750.9570614030088480.937491538838518
4092.386.102801484622992.33750.9324792363300161.07197441208093
4182.787.034995270046992.7250.9386356998656980.950192502951295
4295.896.212847356938893.35416666666671.030621886438980.995709020486555
43105.8100.40537027422993.74583333333331.071038217957021.05372849789844
4484.288.595595229841593.850.944012735533740.950385849110916
4582.782.825272102526594.66666666666670.8749148461534490.998487513540898
4688.486.376471850051995.09583333333330.9083097421028111.02342684421588
4790.294.29101372133795.18750.9905818907034760.956612899152538
48176.6172.38860392061995.76251.800168165206831.02442966636774
4969.571.491735377524996.26666666666670.7426426805144560.972140340879863
5077.378.464034117699896.9250.8095334961846770.98516474291962
5198.693.58066643503697.77916666666670.9570614030088481.05363643748411
5286.491.701562232754498.34166666666670.9324792363300160.942186783914345
5390.892.709830272151698.77083333333330.9386356998656980.979399916205809
54101.5102.60699731072199.55833333333331.030621886438980.98921128831625
55112.2107.36711869095100.2458333333331.071038217957021.04501267583571
5693.695.1014163322283100.7416666666670.944012735533740.984212471379152
5793.888.4137906823316101.0541666666670.8749148461534491.06092046586964
5890.892.5302703527984101.8708333333330.9083097421028110.981300493922677
5998.1102.009297619735102.9791666666670.9905818907034760.961677046005082
60187.6187.17248497738103.9751.800168165206831.00228406981225
617577.8134811954042104.7791666666670.7426426805144560.96384326787361
6283.785.2303849233101105.2833333333330.8095334961846770.98204413925049
6399.7101.428569939708105.9791666666670.9570614030088480.982957760907642
64104.999.363433291266106.5583333333330.9324792363300161.05572036437695
6598.9100.711699613507107.2958333333330.9386356998656980.982011031285747
66117.3111.783826357888108.46251.030621886438981.04934679570237
67115.7117.211744977672109.43751.071038217957020.987102444571919
68102.2103.975136046245110.1416666666670.944012735533740.98292730249032
69101.997.5238415179044111.4666666666670.8749148461534491.04487270408941
7096.6101.935060807488112.2250.9083097421028110.947662160936327
71110111.366169062338112.4250.9905818907034760.987732638431932
72203.7203.996556621375113.3208333333331.800168165206830.998546266533676
7382.384.7819450142315114.16250.7426426805144560.970725547593713
7493.393.1402017922812115.0541666666670.8095334961846771.00171567384055
75121.9110.803783933349115.7750.9570614030088481.10014293440850
76100.9108.521156458057116.3791666666670.9324792363300160.929772620318485
77107.7110.215386074647117.4208333333330.9386356998656980.977177541500937
78130121.677796467702118.06251.030621886438981.06839541620486
79123.2126.873402235492118.4583333333331.071038217957020.971046711361346
80116.1112.675786758748119.3583333333330.944012735533741.03038996522459
81105.3104.942390317581119.9458333333330.8749148461534491.00340767616725
82107.7109.360492949178120.40.9083097421028110.98481633628014
83123.9120.310298050482121.4541666666670.9905818907034761.02983702981113
84205.2219.365492331829121.8583333333331.800168165206830.93542515652188
8590.390.8406715494286122.3208333333330.7426426805144560.994048133504446
86106.999.663692549036123.11250.8095334961846771.07260725812867
87122.4118.161193468980123.46250.9570614030088481.03587308494927
88111.3115.872201104459124.26250.9324792363300160.960541000681114
89122.6117.036138827004124.68750.9386356998656981.04753968499610
90124.8128.960857798537125.1291666666671.030621886438980.967735498432885
91139.5135.129321832244126.1666666666671.071038217957021.03234440984749
92118.8119.460878295397126.5458333333330.944012735533740.994467826582
93111110.319471142899126.0916666666670.8749148461534491.00616871029249
94121.2115.033644213396126.6458333333330.9083097421028111.05360480256685
95120.6126.427141225576127.6291666666670.9905818907034760.953909096028845
96219.1230.706551772632128.1583333333331.800168165206830.949691278017669
97101.395.9061134994376129.1416666666670.7426426805144561.05624132084754
98105105.060582523601129.7791666666670.8095334961846770.999423356294575
99113.4124.697125300361130.2916666666670.9570614030088480.909403482452788
100133.6122.279110524076131.1333333333330.9324792363300161.09258236690964
101123.9123.696541313968131.7833333333330.9386356998656981.00164482113947
102136.2136.647579368228132.58751.030621886438980.99672457155628
103151.7NANA1.07103821795702NA
104121.9NANA0.94401273553374NA
105120.2NANA0.874914846153449NA
106132.2NANA0.908309742102811NA
107125.2NANA0.990581890703476NA
108233.8NANA1.80016816520683NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/1nf6m1293375446.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/1nf6m1293375446.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/2yon61293375446.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/2yon61293375446.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/3yon61293375446.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/3yon61293375446.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/4rxns1293375446.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293375364m9ph4jgamwwuf26/4rxns1293375446.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; 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