Home » date » 2009 » Jul » 18 »

opgave9_hanne jacobs

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 18 Jul 2009 05:43:26 -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/Jul/18/t1247917458jybgcajqxnon439.htm/, Retrieved Sat, 18 Jul 2009 13:44:23 +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/Jul/18/t1247917458jybgcajqxnon439.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 «
0,88 1,03 0,69 0,71 1,11 1,05 1,03 0,65 0,59 0,77 0,9 1,26 0,96 0,83 0,87 0,79 1,12 0,88 0,64 0,64 0,58 0,5 0,99 1,07 0,89 0,89 0,83 0,86 0,9 1,12 0,88 0,88 0,89 0,82 0,88 0,81 0,88 0,76 1,13 0,85 1,45 1,55 0,71 0,81 0,83 0,73 0,9 0,94 1,78 0,88 1,04 0,83 1,41 0,96 1,3 0,83 1,4 0,91 0,87 0,97 1,19 1,23 1,33 1,17 1,09 0,63 0,89 0,63 1,51 0,97 0,84 0,92 0,95 0,73 1,02 0,79 1,27 0,95 0,75 0,52 0,95 0,82 0,76 1,24 0,94 1,04 1,81 0,95 1,39 0,86 1,15 1,51 0,6 0,72 1,1 1,62 1,84 1,73 1,36 1,07 1 1,49 0,9 1,43 1,54 0,81 1,61 1,3 1,4 1,03 0,79 1,11 1,15 1,03 1,59 1,11 1,33 0,93 1,07 1,14 1,12 0,86 0,82 1,02 1,07 1,31 0,98 0,89 0,8 0,8 0,78 0,97
 
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
10.88NANA1.15166336386910NA
21.03NANA0.961934534677325NA
30.69NANA1.06812510307736NA
40.71NANA0.919035241591261NA
51.11NANA1.17090745940366NA
61.05NANA1.06000337566651NA
71.030.8573259758860330.89250.9605893287238461.20140999919606
80.650.763201594058590.88750.8599454580941850.851675369994184
90.590.8825273542764950.8866666666666670.9953316025674750.668534518665076
100.770.704653621866660.89750.7851293836954431.09273546052348
110.90.8717159495679980.901250.9672299024332841.03244640693568
121.260.9841358181635820.8945833333333331.100105246200561.28031108790572
130.961.003386705770950.871251.151663363869100.956759736279727
140.830.8220532210929980.8545833333333330.9619345346773251.00966698834467
150.870.9119118067522930.853751.068125103077360.954039627031962
160.790.7739042596899740.8420833333333330.9190352415912611.02079810274784
171.120.977219850493970.8345833333333331.170907459403661.14610852351583
180.880.8802444698763960.8304166666666671.060003375666510.999722270477393
190.640.7872830039999190.8195833333333330.9605893287238460.812922413856741
200.640.7044386544221530.8191666666666670.8599454580941850.908524817572636
210.580.816171914105330.820.9953316025674750.710634597903045
220.50.6447875063598820.821250.7851293836954430.77544926827557
230.990.7882923704831270.8150.9672299024332841.25587921064522
241.070.8975025300252880.8158333333333331.100105246200561.19219719633532
250.890.9625986283005880.8358333333333331.151663363869100.924580582013963
260.890.8232556392613440.8558333333333330.9619345346773251.08107367572792
270.830.9386149343292270.878751.068125103077360.884281689586744
280.860.8317268936400910.9050.9190352415912611.03399325737343
290.91.069916691030090.913751.170907459403660.841186989179035
301.120.952236365807080.8983333333333331.060003375666511.17617856261006
310.880.8521227836887790.8870833333333330.9605893287238461.03271502281695
320.880.75782693494550.881250.8599454580941851.16121499437505
330.890.8841862402807740.8883333333333330.9953316025674751.00657526599530
340.820.7069435825691050.9004166666666670.7851293836954431.15992282866482
350.880.8926725974540520.9229166666666670.9672299024332840.98580375661783
360.811.060226431025790.963751.100105246200560.763987744784207
370.881.122391920037420.9745833333333331.151663363869100.78403985656869
380.760.9278660199075030.9645833333333330.9619345346773250.81908377254268
391.131.024509994701700.9591666666666671.068125103077361.10296630178705
400.850.875763998966340.9529166666666670.9190352415912610.970581116605903
411.451.112362086433480.951.170907459403661.30353238184257
421.551.013628227981100.956251.060003375666511.52916025541951
430.710.9597888376165760.9991666666666670.9605893287238460.739746048477839
440.810.895776518848111.041666666666670.8599454580941850.904243394369825
450.831.038047917177661.042916666666670.9953316025674750.799577732650992
460.730.8152260100704351.038333333333330.7851293836954430.895457199576997
470.91.001888973937141.035833333333330.9672299024332840.898303128802038
480.941.110647921476651.009583333333331.100105246200560.846352819667854
491.781.162700137772841.009583333333331.151663363869101.53091923030954
500.880.9956022433910321.0350.9619345346773250.883887120425433
511.041.131767557135721.059583333333331.068125103077360.918916603893505
520.831.00251427603581.090833333333330.9190352415912610.827918384645886
531.411.284583058587431.097083333333331.170907459403661.09763241121246
540.961.162912036720801.097083333333331.060003375666510.825513856324874
551.31.031432791717231.073750.9605893287238461.26038265453596
560.830.9147669810476891.063750.8599454580941850.907334892050208
571.41.085326168299621.090416666666670.9953316025674751.28993480567541
580.910.8767278117932441.116666666666670.7851293836954431.03795041945653
590.871.080879415969201.11750.9672299024332840.804900146257198
600.971.199573095544521.090416666666671.100105246200560.808621003257568
611.191.220283305966301.059583333333331.151663363869100.975183380926187
621.230.99480063127881.034166666666670.9619345346773251.23642864844070
631.331.100613908295961.030416666666671.068125103077361.20841649371776
641.170.9534990631509331.03750.9190352415912611.22705941223856
651.091.216280123455551.038751.170907459403660.896175131846454
660.631.097545161888031.035416666666671.060003375666510.574008270344206
670.890.9830030797274031.023333333333330.9605893287238460.90538882161672
680.630.8534958671584790.99250.8599454580941850.738140656846345
691.510.9542741739615670.958750.9953316025674751.58235446499762
700.970.7301703268367620.930.7851293836954431.32845716177241
710.840.891463560076010.9216666666666670.9672299024332840.942270708102054
720.921.036849194544030.94251.100105246200560.887303577840544
730.951.094080195675640.951.151663363869100.868309291910117
740.730.903817656540570.9395833333333330.9619345346773250.80768503991627
751.020.9737740523055230.9116666666666661.068125103077361.04747091749367
760.790.8106656693536250.8820833333333330.9190352415912610.974507777823992
771.271.021616758329690.87251.170907459403661.24312761086301
780.950.9354529790256930.88251.060003375666511.01555077732443
790.750.8601276947614770.8954166666666670.9605893287238460.871963552118832
800.520.7807588138280120.9079166666666670.8599454580941850.666018738168926
810.950.949297515948730.953750.9953316025674751.00074000409721
820.820.779895187804140.9933333333333340.7851293836954431.05142333588284
830.760.972066051945451.0050.9672299024332840.78183987443957
841.241.106980903989311.006251.100105246200561.12016385786902
850.941.173736911676591.019166666666671.151663363869100.800860900469838
861.041.036083655058701.077083333333330.9619345346773251.00377995051092
871.811.178943082521631.103751.068125103077361.53527343841622
880.950.9971532371265181.0850.9190352415912610.95271214556511
891.391.282143668047011.0951.170907459403661.08412187701031
900.861.192503797624821.1251.060003375666510.72117170755591
911.151.131894425679601.178333333333330.9605893287238461.01599581543087
921.511.070273784719721.244583333333330.8599454580941851.41085395303355
930.61.248726439721111.254583333333330.9953316025674750.480489545920084
940.720.9742147102687621.240833333333330.7851293836954430.739056793549514
951.11.189289767533591.229583333333330.9672299024332840.924921772665407
961.621.363672128102771.239583333333331.100105246200561.18796884281403
971.841.445817381390661.255416666666671.151663363869101.27263651944078
981.731.194402047224351.241666666666670.9619345346773251.44842350531827
991.361.364529819181321.27751.068125103077360.996680307665214
1001.071.213509450251131.320416666666670.9190352415912610.881740146134479
10111.575358411006011.345416666666671.170907459403660.634776183637736
1021.491.434537901735341.353333333333331.060003375666511.03866199575317
1030.91.269578896130021.321666666666670.9605893287238460.70889647169106
1041.431.095713837855011.274166666666670.8599454580941851.30508527919972
1051.541.215548719635531.221250.9953316025674751.26691754523978
1060.810.9415009859481181.199166666666670.7851293836954430.860328360871876
1071.611.167527094728841.207083333333330.9672299024332841.37898298657807
1081.31.313709014837831.194166666666671.100105246200560.98956464888115
1091.41.386314774257431.203751.151663363869101.00987165829629
1101.031.172758520194111.219166666666670.9619345346773250.878271171996706
1110.791.278634758808851.197083333333331.068125103077360.617846491781552
1121.111.096715388298901.193333333333330.9190352415912611.01211308954249
1131.151.376792021015471.175833333333331.170907459403660.835275032427776
1141.031.215470537430931.146666666666671.060003375666510.847408446589789
1151.591.083864959243411.128333333333330.9605893287238461.46697241795685
1161.110.9541811478770061.109583333333330.8599454580941851.16330112208744
1171.331.098597256333851.103750.9953316025674751.21063473655338
1180.930.8646237337946061.101250.7851293836954431.07561238912385
1191.071.058310718245751.094166666666670.9672299024332841.01104522665482
1201.141.212866033936111.10251.100105246200560.939922438342475
1211.121.253873487412481.088751.151663363869100.893232061482738
1220.861.014039321972351.054166666666670.9619345346773250.84809334447432
1230.821.092602970022881.022916666666671.068125103077360.750501346324209
1241.020.9148229967339680.9954166666666670.9190352415912611.11496978502019
1251.071.145049919675160.9779166666666671.170907459403660.934457076162712
1261.311.016278236420260.958751.060003375666511.28901707529853
1270.98NANA0.960589328723846NA
1280.89NANA0.859945458094185NA
1290.8NANA0.995331602567475NA
1300.8NANA0.785129383695443NA
1310.78NANA0.967229902433284NA
1320.97NANA1.10010524620056NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/1qswp1247917404.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/1qswp1247917404.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/20y9i1247917404.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/20y9i1247917404.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/3zzh11247917404.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/3zzh11247917404.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/4bz7n1247917404.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/18/t1247917458jybgcajqxnon439/4bz7n1247917404.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