Home » date » 2009 » Jun » 05 »

Duncan Huysmans Opgave 9 opdracht 2 correct

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 05 Jun 2009 11:05:40 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp.htm/, Retrieved Fri, 05 Jun 2009 19:07:35 +0200
 
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/2009/Jun/05/t1244221650wyveuu5hkjkzitp.htm/},
    year = {2009},
}
@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 = {2009},
    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:
Duncan Huysmans Opgave 9 opdracht 2 correct
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1664.81 2397.53 2840.71 3547.29 3752.96 3714.74 4349.61 3566.34 5021.82 6423.48 7600.60 19756.21 2499.81 5198.24 7225.14 4806.03 5900.88 4951.34 6179.12 4752.15 5496.43 5835.10 12600.08 28541.72 4717.02 5702.63 9957.58 5304.78 6492.43 6630.80 7349.62 8176.62 8573.17 9690.50 15151.84 34061.01 5921.10 5814.58 12421.25 6369.77 7609.12 7224.75 8121.22 7979.25 8093.06 8476.70 17914.66 30114.41 4826.64 6470.23 9638.77 8821.17 8722.37 10209.48 11276.55 12552.22 11637.39 13606.89 21822.11 45060.69 7615.03 9849.69 14558.40 11587.33 9332.56 13082.09 16732.78 19888.61 23933.38 25391.35 36024.80 80721.71 10243.24 11266.88 21826.84 17357.33 15997.79 18601.53 26155.15 28586.52 30505.41 30821.33 46634.38 104660.67
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11664.81NANA0.474541560006453NA
22397.53NANA0.604244670194867NA
32840.71NANA0.982889337904476NA
43547.29NANA0.656813757195405NA
53752.96NANA0.674859893085904NA
63714.74NANA0.679399190357424NA
74349.614217.041961366205421.133333333330.777889364099671.03143626263345
83566.344262.886120944925572.621250.7649696488784190.836602221785245
95021.824906.79244877415872.002083333330.8356251205532071.02344251411217
106423.485628.976484892686107.134166666670.9217050635003551.14114528942156
117600.69247.099284210176249.078333333331.479754099878220.821944240717558
1219756.2120111.61473169786390.13.147308294345600.982328384048764
132499.813092.992881870216517.854583333330.4745415600064530.808217184932047
145198.244014.295186373186643.492916666670.6042446701948671.29493217580157
157225.146597.818734004056712.677083333330.9828893379044761.09508010014929
164806.034405.865085062166707.936666666670.6568137571954051.09082550355311
175900.884650.953858126656891.73250.6748598930859041.26874619271686
184951.345072.46710753857466.107083333330.6793991903574240.976120671663206
196179.126164.426077361167924.553750.777889364099671.00238366434351
204752.156148.790657838478037.953750.7649696488784190.772859292898834
215496.436829.41509046828172.821666666660.8356251205532070.804817092999862
225835.17657.022954257568307.454583333330.9217050635003550.762058574834948
2312600.0812360.21397486878352.883751.479754099878221.01940630037789
2428541.7226586.91566681058447.509166666673.147308294345601.07352505110737
254717.024065.045197466988566.25750.4745415600064531.16038562201948
265702.635291.802360067038757.714583333330.6042446701948671.07763472858192
279957.588874.113038055459028.598333333330.9828893379044761.12209298634108
285304.786119.821131808369317.43750.6568137571954050.866819452030696
296492.436468.128846442279584.40250.6748598930859041.00375706083392
306630.86740.113000031949920.696250.6793991903574240.983781725910023
317349.627935.1223479179410200.83666666670.777889364099670.926213822264307
328176.627845.27723512510255.671250.7649696488784191.04223467889592
338573.178659.5737235102810362.988750.8356251205532070.990022173577009
349690.59687.13519509610510.016250.9217050635003551.00034734777994
3515151.8415686.754215916810600.91958333331.479754099878220.96590026154843
3634061.0133588.69177650910672.196253.147308294345601.01406182255128
375921.15091.4010833061310729.09416666670.4745415600064531.16296082416573
385814.586497.4552752674210753.02041666670.6042446701948670.894901119540324
3912421.2510541.283789950710724.79208333330.9828893379044761.17834319305980
406369.776997.8333420832510654.21250.6568137571954050.910248885421973
417609.127233.65785331410718.7550.6748598930859041.05190488053205
427224.757248.8026697412110669.43083333330.6793991903574240.996681842390108
438121.228136.245643005910459.38666666670.777889364099670.998153246145066
447979.257987.1268320659410441.10291666670.7649696488784190.99901380906657
458093.068650.7965261502710352.4850.8356251205532070.935527725745912
468476.79529.2229229604810338.690.9217050635003550.889547874840408
4717914.6615518.502475375410487.21708333331.479754099878221.15440649176212
4830114.4133543.905579480410657.966253.147308294345600.897760993532657
494826.645179.0526662266810913.80208333330.4745415600064530.93195422233784
506470.236789.1810772769211235.81458333330.6042446701948670.953020684873992
519638.7711375.996007570511574.03541666670.9828893379044760.847290205937628
528821.177839.3833576446311935.473750.6568137571954051.12523773842466
538722.378308.9034040274912312.04208333330.6748598930859041.04976187300145
5410209.488898.5084604472613097.61416666670.6793991903574241.14732486296775
5511276.5510763.311887365213836.558750.777889364099671.04768403238758
5612552.2210781.139907374614093.55250.7649696488784191.16427577304826
5711637.3912065.881843574314439.34791666670.8356251205532070.964487316457315
5813606.8913603.988070101614759.58916666670.9217050635003551.00021331464593
5921822.1122048.736238356714900.27041666671.479754099878220.989721576969004
6045060.6947352.471559015115045.38708333333.147308294345600.95160164858219
617615.037304.3439877027715392.42208333330.4745415600064531.04253441689223
629849.699622.8670241117815925.44791666670.6042446701948671.02357124704310
6314558.416456.971999465116743.463750.9828893379044760.884634184251708
6411587.3311656.352785746617746.81583333330.6568137571954050.994078526361095
659332.5612707.351122173918829.613750.6748598930859040.734422139616101
6613082.0914204.381178252120907.26833333330.6793991903574240.92098978729391
6716732.7817504.574367901422502.65291666670.777889364099670.955908989748606
6819888.6117342.788509561022671.211250.7649696488784191.14679424182769
6923933.3819247.047409528123033.11250.8356251205532071.24348319463026
7025391.3521730.469593096023576.38083333330.9217050635003551.16846761599975
7136024.835653.957972391524094.51541666671.479754099878221.01040114614752
7280721.7177430.739592232224602.213.147308294345601.04250211770027
7310243.2411970.209022453025224.78541666670.4745415600064530.855727747175202
7411266.8815698.153920348325979.79708333330.6042446701948670.717720061681623
7521826.8426160.626438148526616.04458333330.9828893379044760.834339347783018
7617357.3317810.246131209427116.12833333330.6568137571954050.97456991173099
7715997.7918750.606457384727784.44333333330.6748598930859040.853187870822144
7818601.5319854.738726199729223.96583333330.6793991903574240.936881127297535
7926155.15NANA0.77788936409967NA
8028586.52NANA0.764969648878419NA
8130505.41NANA0.835625120553207NA
8230821.33NANA0.921705063500355NA
8346634.38NANA1.47975409987822NA
84104660.67NANA3.14730829434560NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/198021244221538.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/198021244221538.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/2hnzl1244221538.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/2hnzl1244221538.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/3c34a1244221538.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/3c34a1244221538.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/4hf2c1244221538.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244221650wyveuu5hkjkzitp/4hf2c1244221538.ps (open in new window)


 
Parameters (Session):
par1 = 9 ;
 
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