Home » date » 2009 » Jan » 24 »

Opgave 9 oefening 2 stap 1 verbetering Magali Leys

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 24 Jan 2009 10:43:24 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx.htm/, Retrieved Sat, 24 Jan 2009 18:44:19 +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/2009/Jan/24/t1232819054abpm3y806cctuqx.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.89 0.88 0.87 0.87 0.87 0.87 0.88 0.87 0.86 0.86 0.86 0.84 0.84 0.83 0.84 0.88 0.9 0.89 0.91 0.94 0.94 0.95 0.95 0.98 0.96 1 1.05 1.03 1.07 1.12 1.1 1.06 1.11 1.08 1.07 1.02 1 1.04 1.02 1.07 1.12 1.08 1.02 1.01 1.04 0.98 0.95 0.94 0.94 0.96 0.97 1.03 1.01 0.99 1 1 1.02 1.01 0.99 0.98 1.01 1.03 1.03 1 0.96 0.97 0.98 1.02 1.04 1.01 1.01 1 1.01 1.02 1.03 1.06 1.12 1.12 1.13 1.13 1.13 1.17 1.14 1.08 1.07 1.12 1.14 1.21 1.2 1.23 1.29 1.31 1.37 1.35 1.26 1.26
 
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.89NANA0.964797642150465NA
20.88NANA0.982901728577316NA
30.87NANA0.988859632010012NA
40.87NANA1.01078232211031NA
50.87NANA1.01958615719100NA
60.87NANA1.01667345176799NA
70.880.8765431438503650.866251.011882417143281.00394373759454
80.870.8718092834139390.8620833333333331.011281914061600.997924679802842
90.860.8787217704746820.858751.023256792401380.97869431359989
100.860.8647739436307170.8579166666666671.007992940608900.994479547324618
110.860.852478758553480.8595833333333330.991734862107781.00882279044616
120.840.836032203854620.8616666666666670.9702501398699651.00474598481624
130.840.8333439634074640.863750.9647976421504651.00798714202635
140.830.8530767919277280.8679166666666670.9829017285773160.972948751922343
150.840.8644281283154190.8741666666666670.9888596320100120.971740706352275
160.880.8907519213597080.881251.010782322110310.987929387406434
170.90.9061571972035060.888751.019586157191000.99320515554861
180.890.9133116508382490.8983333333333331.016673451767990.974475688756567
190.910.9199697642527640.9091666666666671.011882417143280.989162943566019
200.940.931643463329250.921251.011281914061601.00896967241190
210.940.9588768858794570.9370833333333331.023256792401380.980313545818613
220.950.9596932788713880.9520833333333331.007992940608900.989899607421668
230.950.957437364793220.9654166666666660.991734862107780.992232009041317
240.980.9528664915306280.9820833333333330.9702501398699651.02847566653938
250.960.9643956431329020.9995833333333330.9647976421504650.99544207487435
2610.9951880001845321.01250.9829017285773161.00483526711996
271.051.013169097963591.024583333333330.9888596320100121.03635217666077
281.031.048265499888561.037083333333331.010782322110310.98257550220769
291.071.068016499657581.04751.019586157191001.00185718136663
301.121.071743263738761.054166666666671.016673451767991.04502639568071
311.11.070065656129021.05751.011882417143281.02797430578164
321.061.072801563833681.060833333333331.011281914061600.988067165200677
331.111.085931270935961.061251.023256792401381.02216413663389
341.081.070152505279781.061666666666671.007992940608901.00920195455474
351.071.056610851004001.065416666666670.991734862107781.01267178827785
361.021.034124940744741.065833333333330.9702501398699650.986341166151
3711.023489498714621.060833333333330.9647976421504650.977049594798854
381.041.037370866035981.055416666666670.9829017285773161.00253442047594
391.021.038714638457181.050416666666670.9888596320100120.981982887537831
401.071.054582889401751.043333333333331.010782322110311.01461915488406
411.121.054422017561701.034166666666671.019586157191001.06219329769872
421.081.042937515938671.025833333333331.016673451767991.03553662946718
431.021.032120065486141.021.011882417143280.988257116694621
441.011.025608407844141.014166666666671.011281914061600.984781318362093
451.041.032210289334891.008751.023256792401381.00754663148159
460.981.013032905311941.0051.007992940608900.96739207074249
470.950.9904951935301450.998750.991734862107780.959116213996133
480.940.9609519093628780.9904166666666670.9702501398699650.978196713947143
490.940.9511296755533330.9858333333333330.9647976421504650.988298466718685
500.960.9677486602617490.9845833333333330.9829017285773160.991993106702258
510.970.9723786381431790.9833333333333330.9888596320100120.997553794324687
521.030.9943571093760150.983751.010782322110311.03584516094661
531.011.005991675095120.9866666666666671.019586157191001.00398445136685
540.991.006506717250310.991.016673451767990.983599992958408
5511.006401387383750.9945833333333331.011882417143280.993639329730662
5611.011703281525791.000416666666671.011281914061600.988432100854567
571.021.029225790357051.005833333333331.023256792401380.99103618424306
581.011.015132890604881.007083333333331.007992940608900.994943626935564
590.990.9954538678406841.003750.991734862107780.994521224923748
600.980.971058681653191.000833333333330.9702501398699651.00920780434359
611.010.963993644115340.9991666666666670.9647976421504651.04772475022580
621.030.9820826438035010.9991666666666660.9829017285773161.04879157217454
631.030.9896836817033541.000833333333330.9888596320100121.04073656971615
6411.012466959313821.001666666666671.010782322110310.987686551942126
650.961.022135122583981.00251.019586157191000.939210461306815
660.971.020909591150361.004166666666671.016673451767990.950133105231192
670.981.016941829228991.0051.011882417143280.963673606329083
681.021.015916956167721.004583333333331.011281914061601.00401907243254
691.041.027520362369721.004166666666671.023256792401381.01214539204022
701.011.014712893546291.006666666666671.007992940608900.995355441350687
711.011.007437330757821.015833333333330.991734862107781.00254375052814
7210.9981448313912271.028750.9702501398699651.00185861665605
731.011.004595544889171.041250.9647976421504651.00537973230951
741.021.034094526940721.052083333333330.9829017285773160.986370175478624
751.031.048603234777281.060416666666670.9888596320100120.982259033578859
761.061.082379403259791.070833333333331.010782322110310.97932388292646
771.121.104126842724761.082916666666671.019586157191001.01437620811398
781.121.109868518180061.091666666666671.016673451767991.00912854239397
791.131.110540952814751.09751.011882417143281.01752213381770
801.131.116623780109691.104166666666671.011281914061601.01197916444964
811.131.138799538543371.112916666666671.023256792401380.992272969697001
821.171.132732067009251.123751.007992940608901.03290092518450
831.141.123966177055481.133333333333330.991734862107781.01426539630091
841.081.107297972126601.141250.9702501398699650.975347221060857
851.071.111929282578411.15250.9647976421504650.962291412560714
861.121.146718683340201.166666666666670.9829017285773160.976699879640598
871.141.170974614238521.184166666666670.9888596320100120.97354800534368
881.211.214623423735891.201666666666671.010782322110310.996193533200879
891.21.237947525856081.214166666666671.019586157191000.969346418112644
901.231.247119434168741.226666666666671.016673451767990.98627281902623
911.29NANA1.01188241714328NA
921.31NANA1.01128191406160NA
931.37NANA1.02325679240138NA
941.35NANA1.00799294060890NA
951.26NANA0.99173486210778NA
961.26NANA0.970250139869965NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/1jnzs1232819002.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/1jnzs1232819002.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/2myku1232819002.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/2myku1232819002.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/313v01232819002.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/313v01232819002.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/4zmkx1232819002.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/24/t1232819054abpm3y806cctuqx/4zmkx1232819002.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