Home » date » 2009 » Jun » 02 »

Datareeks - Aardolie - Silke van den Berg

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 02 Jun 2009 10:25: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/Jun/02/t1243959954rb5koe2gjuv2vi1.htm/, Retrieved Tue, 02 Jun 2009 18:25:55 +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/02/t1243959954rb5koe2gjuv2vi1.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 «
493395,00 487190,00 519493,00 519453,00 538588,00 438224,00 542034,00 512027,00 619880,00 533737,00 573789,00 589213,00 532168,00 551102,00 593789,00 527106,00 547327,00 601305,00 610872,00 601325,00 642143,00 614216,00 657979,00 673098,00 602297,00 615381,00 703671,00 733852,00 716596,00 745798,00 742027,10 679181,20 739022,70 645410,60 729382,10 671052,70 744954,80 677639,30 778207,20 763316,20 658531,60 831700,10 664156,30 621402,10 683588,70 600023,80 643273,80 653615,90 620177,50 574128,80 599828,00 599369,40 596617,70 616114,60 510226,90 493960,10 634503,30 588556,20 603239,00 617458,20 646543,50 680125,60 731595,80 759600,30 785031,70 849573,30 762342,00 815346,60 929603,20 784057,50 944667,70 1007258,30 664292,70 873207,40 1146510,00 1417266,80 1089387,90 1373379,70 1009397,60 818175,10 1003458,10 961142,70 1121906,60 1141713,30 1042352,60 992223,60 920525,30 1076093,40 967880,40 1236416,10
 
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
1493395NANA0.922773788313235NA
2487190NANA0.940017198842391NA
3519493NANA1.05592190672308NA
4519453NANA1.08361066940898NA
5538588NANA1.00276730985240NA
6438224NANA1.12159725801643NA
7542034515262.301539167532200.7916666670.9681727453383641.05195741737919
8512027488002.045038629536479.3333333330.9096381066657341.04923125877366
9619880560130.4564704345422381.032997422663911.10667076363972
10533737505083.052509689545652.5416666670.9256495918940281.05673116004969
11573789555972.102991763546335.5416666671.017638540036581.03204638670243
12589213564130.365004046553494.7083333331.019215462244871.04446247986629
13532168519667.4410789055631580.9227737883132351.02405492038359
14551102535571.9789888565697470.9400171988423911.02899707531463
15593789606516.65958292574395.3751.055921906723080.97901515254062
16527106627059.803784022578676.2916666671.083610669408980.840599248778432
17547327587157.863692697585537.51.002767309852400.932163279833814
18601305664591.94026334592540.6251.121597258016430.904773235380702
19610872579894.690180782598957.8750.9681727453383641.05341885405014
20601325549929.183997562604558.2083333330.9096381066657341.09345897162400
21642143632003.232064003611814.9166666671.032997422663911.01604385455891
22614216578538.168718105625007.750.9256495918940281.06166893251131
23657979651975.614039544640675.0416666671.017638540036581.00920799157389
24673098666310.537152078653748.4583333331.019215462244871.01018663591444
25602297613860.309895118665233.7958333330.9227737883132350.981162962145095
26615381633517.635032558673942.60.9400171988423910.971371538802347
27703671719318.56624312681223.26251.055921906723080.978246680987474
28733852743963.407076139686559.6916666671.083610669408980.986408730617709
29716596692746.349216758690834.5958333331.002767309852401.03442768166185
30745798778079.501692138693724.5041666671.121597258016430.958511306849835
31742027.1677317.540630615699583.3583333330.9681727453383641.09553799434920
32679181.2644134.327080411708121.5291666670.9096381066657341.05440926130803
33739022.7737375.563142603713821.31.032997422663911.00223378280991
34645410.6664759.558689298718154.650.9256495918940280.970893297529337
35729382.1729609.155139286716962.9751.017638540036580.999688798944357
36671052.7731921.942238469718122.8791666671.019215462244870.916836429234093
37744954.8662973.764396619718457.5166666670.9227737883132351.12365653062907
38677639.3670049.370678375712805.43750.9400171988423911.01132741802882
39778207.2747685.868670164708088.2251.055921906723081.04082106217163
40763316.2762739.851552101703887.3583333331.083610669408981.00075562912666
41658531.6700341.108268118698408.3958333331.002767309852400.940301222112308
42831700.1778493.945898941694094.0166666671.121597258016431.0683449812055
43664156.3666265.917321481688168.4291666670.9681727453383640.996833670661165
44621402.1617331.756884012678656.43750.9096381066657341.00659344521094
45683588.7688917.37857946666911.0333333331.032997422663910.992265141299749
46600023.8604122.845743178652647.450.9256495918940280.993214880430262
47643273.8654582.341801615643236.58751.017638540036580.982724034732605
48653615.9643812.022559804631674.11251.019215462244871.01522785704003
49620177.5568684.869433059616277.6583333330.9227737883132351.09054686230403
50574128.8568291.016626383604553.850.9400171988423911.01027252446866
51599828630595.022808911597198.5416666671.055921906723080.951209537506555
52599369.4644396.716636119594675.51.083610669408980.930124850928523
53596617.7594169.279574339592529.5666666671.002767309852401.00412074556836
54616114.6661018.816471936589354.8791666671.121597258016430.93206817211104
55510226.9570202.328963412588946.8916666670.9681727453383640.894817285168857
56493960.1540745.295745043594462.0083333330.9096381066657340.913480161338099
57634503.3624311.481604976604368.8666666671.032997422663911.0163248934151
58588556.2570695.814678814616535.4791666670.9256495918940281.03129580568457
59603239642193.368526056631062.351.017638540036580.939341683618654
60617458.2661104.30388304648640.3791666671.019215462244870.933980003417491
61646543.5617218.122225377668872.6208333330.9227737883132351.04751217878842
62680125.6651214.324399937692768.5208333330.9400171988423911.04439594541583
63731595.8758632.853059265718455.4541666661.055921906723080.964360819663642
64759600.3800676.857911109738897.1708333331.083610669408980.948697708063808
65785031.7763375.922074048761269.2541666671.002767309852401.02836843198711
66849573.3888010.183796487791737.1208333331.121597258016430.956715717344413
67762342782979.057056905808718.3416666670.9681727453383640.973642900316547
68815346.6743631.850792287817502.9666666670.9096381066657341.09643851205581
69929603.2870647.55346135842836.1333333331.032997422663911.06771470993546
70784057.5821539.001488057887526.9958333330.9256495918940280.95437647948525
71944667.7943972.983612475927611.2751.017638540036581.00073594943879
721007258.3980605.59306488962118.051.019215462244871.02717984388791
73664292.7917456.119803322994237.30.9227737883132350.724059369882896
74873207.4944387.4680521751004649.13750.9400171988423910.924628322102807
7511465101064204.852937621007844.279166671.055921906723081.07733957126317
761417266.81103440.871080411018300.116666671.083610669408981.28440665661796
771089387.91035922.427969421033063.620833331.002767309852401.05161146296966
781373379.71173247.783799041046050.866666671.121597258016431.17057941124161
791009397.61033433.062584231067405.654166670.9681727453383640.976742119587185
80818175.1989792.8317368321088117.158333330.9096381066657340.826612472596223
811003458.11119418.129081121083660.13751.032997422663910.89641044211397
82961142.7981214.9947035181060028.550.9256495918940280.979543428492363
831121906.61059107.492869981040750.179166671.017638540036581.0592943658248
841141713.31049772.102371471029980.551.019215462244871.08758205463912
851042352.6NANANANA
86992223.6NANANANA
87920525.3NANANANA
881076093.4NANANANA
89967880.4NANANANA
901236416.1NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/1brc81243959922.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/1brc81243959922.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/2ivez1243959922.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/2ivez1243959922.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/3arw01243959922.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243959954rb5koe2gjuv2vi1/3arw01243959922.ps (open in new window)


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