Home » date » 2009 » Jun » 01 »

opgave 9-oefening 2- elke torfs mar 201

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 05:19:22 -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/01/t1243855542neo2ed2tljcgbgo.htm/, Retrieved Mon, 01 Jun 2009 13:25:42 +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/01/t1243855542neo2ed2tljcgbgo.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
356445 291705 310900 332340 257166 334551 317365 270863 317904 423141 317684 411063 371161 299023 326964 327146 303447 351994 320317 257151 320274 476982 301723 363567 338831 265802 307691 334207 303127 318863 292123 245155 284794 391604 304982 369552 356021 247577 277885 294032 310845 311023 298462 234188 297478 371017 291128 316374 326001 222302 227424 255428 278250 280335 241894 255075 255115 319482 270694 300209 283531 218924 236466 267980 219994 256052 230444 200778 240960 277837 209776 232065
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1356445NANA1.10865727819952NA
2291705NANA0.831157667844844NA
3310900NANA0.914563040870463NA
4332340NANA0.993147513943636NA
5257166NANA0.956503869185266NA
6334551NANA1.03474533760250NA
7317365312312.910955527329040.4166666670.9491627627979641.01617636949115
8270863271788.758062098329958.50.8237058844130350.996593832398738
9317904318304.761946399330932.750.9618412258877330.998740948944816
10423141428119.735473836331385.6666666671.291907823836180.988370693847305
11317684325672.322667461333097.6250.9777083300052370.975471287820741
12411063388432.158039739335752.7916666671.156899265413621.05826201948487
13371161373176.903873262336602.5833333331.108657278199520.994597994001402
14299023279397.182466133336154.250.8311576678448441.07024343395534
15326964307002.045831132335681.6666666670.9145630408704631.06502221871136
16327146335707.488347552338023.7916666670.9931475139436360.974497177916126
17303447324830.746546038339602.1250.9565038691852660.934169573621297
18351994348665.80569664336958.0833333331.034745337602501.00954551392475
19320317316671.0708778103336320.9491627627979641.01151330025848
20257151272564.860610608330900.7083333330.8237058844130350.943448834247829
21320274316170.155729130328713.4583333330.9618412258877331.01297985972587
22476982424010.12285672328204.6251.291907823836181.12493068982973
23301723321163.009635935328485.50.9777083300052370.939469960572445
24363567378412.157093719327091.7083333331.156899265413620.96076987270247
25338831359799.752766400324536.51.108657278199520.941721047318191
26265802268349.157692583322861.9166666670.8311576678448440.990508046626697
27307691293468.418165917320883.750.9145630408704631.04846375607627
28334207313683.6559840703158480.9931475139436361.06542688350002
29303127298837.036523027312426.3750.9565038691852661.01435552810618
30318863323680.284287832312811.5416666671.034745337602500.985117152567907
31292123297825.602416251313777.1666666670.9491627627979640.980852544677202
32245155258424.576261518313734.0416666670.8237058844130350.948652034363446
33284794299837.410409354311732.750.9618412258877330.949828107210451
34391604398962.936945140308816.8751.291907823836180.981554835640905
35304982300610.602830895307464.50.9777083300052371.01454172649913
36369552355699.573286167307459.4166666671.156899265413621.03894417579941
37356021340797.782764539307396.8751.108657278199521.04466935527564
38247577255334.994824177307204.0416666670.8311576678448440.969616405970834
39277885281022.891878579307275.5833333330.9145630408704630.98883403463112
40294032304842.946482968306946.2916666670.9931475139436360.964536012370645
41310845292222.692704627305511.250.9565038691852661.06372642426574
42311023313236.297794687302718.251.034745337602500.9929340954089
43298462284038.538705229299251.6666666670.9491627627979641.05077994472342
44234188244597.574717132296947.7083333330.8237058844130350.95744203625416
45297478282581.297512727293792.0416666670.9618412258877331.05271651952339
46371017374757.9134462242900811.291907823836180.99001778665106
47291128280714.116101747287114.3750.9777083300052371.03709782765067
48316374329111.907184975284477.5833333331.156899265413620.961296121754064
49326001311357.434936004280841.9166666671.108657278199521.04703136466616
50222302232188.223458644279355.2083333330.8311576678448440.957421512119004
51227424254669.567321929278460.3750.9145630408704630.893016006551391
52255428272666.622277051274547.9583333330.9931475139436360.936777658618094
53278250259737.908299357271549.250.9565038691852661.07127219827807
54280335279406.3768415270024.2916666671.034745337602501.00332355749714
55241894253978.079426036267581.1666666670.9491627627979640.952420777992555
56255075218834.628733581265670.8333333330.8237058844130351.16560619987863
57255115255760.154545258265906.8333333330.9618412258877330.997477501738277
58319482344689.512459334266806.5833333331.291907823836180.926868931173797
59270694258997.13646213264902.250.9777083300052371.04516213459982
60300209302486.497245250261463.1251.156899265413620.99247074740198
61283531288222.344406962259974.251.108657278199520.9837231758814
62218924213802.669530221257234.7916666670.8311576678448441.02395353847093
63236466232648.947064611254382.6250.9145630408704631.01640692117265
64267980250330.403639287252057.6250.9931475139436361.07050520473791
65219994237006.514139513247784.1666666670.9565038691852660.928219212871512
66256052250829.081908318242406.5833333331.034745337602501.02082261774411
67230444NANA0.949162762797964NA
68200778NANA0.823705884413035NA
69240960NANA0.961841225887733NA
70277837NANA1.29190782383618NA
71209776NANA0.977708330005237NA
72232065NANA1.15689926541362NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/1qz6s1243855158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/1qz6s1243855158.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/20i9f1243855158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/20i9f1243855158.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/3xx361243855158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/3xx361243855158.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/4twni1243855158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243855542neo2ed2tljcgbgo/4twni1243855158.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