Home » date » 2009 » May » 31 »

Opgave 9 - Sofie Loopmans - Eigen reeks

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 31 May 2009 01:29:14 -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/May/31/t1243755004k86i00bhwx83uuz.htm/, Retrieved Sun, 31 May 2009 09:30:08 +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/May/31/t1243755004k86i00bhwx83uuz.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 «
30,06 30,46 30,46 30,49 30,49 30,5 30,5 30,5 30,51 30,51 30,61 30,88 30,95 31,09 31,28 31,31 31,32 31,34 31,34 31,34 31,34 31,36 31,36 31,36 31,72 32,07 32,13 32,19 32,26 32,27 32,28 32,28 32,28 32,29 32,61 32,68 32,69 32,74 32,86 32,86 32,9 32,95 32,95 32,96 32,99 33 33,06 33,42 33,48 33,5 33,51 33,52 33,55 33,56 33,56 33,56 33,6 33,61 33,62 33,72 33,83 33,96 34,06 34,11 34,11 34,21 34,19 34,17 34,12 34,15 34,15 34,15
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
130.06NANA0.0297361111111099NA
230.46NANA0.106402777777778NA
330.46NANA0.141736111111112NA
430.49NANA0.111319444444446NA
530.49NANA0.0814861111111083NA
630.5NANA0.0627361111111125NA
730.530.519319444444430.5345833333333-0.0152638888888861-0.0193194444444487
830.530.524069444444430.5979166666667-0.0738472222222223-0.0240694444444429
930.5130.541319444444430.6583333333333-0.117013888888891-0.031319444444442
1030.5130.559486111111130.7266666666667-0.167180555555555-0.0494861111111149
1130.6130.665902777777830.7954166666667-0.129513888888890-0.0559027777777814
1230.8830.834402777777830.865-0.03059722222222190.0455972222222201
1330.9530.964736111111130.9350.0297361111111099-0.0147361111111088
1431.0931.111402777777831.0050.106402777777778-0.0214027777777765
1531.2831.216319444444431.07458333333330.1417361111111120.0636805555555604
1631.3131.255902777777831.14458333333330.1113194444444460.0540972222222251
1731.3231.292736111111131.211250.08148611111110830.0272638888888928
1831.3431.325236111111131.26250.06273611111111250.0147638888888935
1931.3431.299319444444431.3145833333333-0.01526388888888610.0406805555555607
2031.3431.313652777777831.3875-0.07384722222222230.0263472222222241
2131.3431.346736111111131.46375-0.117013888888891-0.00673611111110617
2231.3631.368652777777831.5358333333333-0.167180555555555-0.00865277777776896
2331.3631.482152777777831.6116666666667-0.129513888888890-0.122152777777767
2431.3631.658986111111131.6895833333333-0.0305972222222219-0.298986111111102
2531.7231.797236111111131.76750.0297361111111099-0.0772361111111088
2632.0731.952236111111131.84583333333330.1064027777777780.117763888888891
2732.1332.065902777777831.92416666666670.1417361111111120.0640972222222267
2832.1932.113402777777832.00208333333330.1113194444444460.0765972222222189
2932.2632.174402777777832.09291666666670.08148611111110830.0855972222222192
3032.2732.262736111111132.20.06273611111111250.00726388888888607
3132.2832.280152777777832.2954166666667-0.0152638888888861-0.000152777777771007
3232.2832.289902777777832.36375-0.0738472222222223-0.00990277777777493
3332.2832.305069444444432.4220833333333-0.117013888888891-0.0250694444444477
3432.2932.313236111111132.4804166666667-0.167180555555555-0.0232361111111175
3532.6132.405486111111132.535-0.1295138888888900.204513888888883
3632.6832.559402777777832.59-0.03059722222222190.120597222222216
3732.6932.675986111111132.646250.02973611111110990.0140138888888828
3832.7432.808902777777832.70250.106402777777778-0.0689027777777795
3932.8632.902152777777832.76041666666670.141736111111112-0.0421527777777868
4032.8632.930902777777832.81958333333330.111319444444446-0.070902777777782
4132.932.949402777777832.86791666666670.0814861111111083-0.0494027777777788
4232.9532.980236111111132.91750.0627361111111125-0.0302361111111082
4332.9532.965986111111132.98125-0.0152638888888861-0.0159861111111042
4432.9632.971986111111133.0458333333333-0.0738472222222223-0.0119861111111135
4532.9932.987569444444433.1045833333333-0.1170138888888910.00243055555556282
463332.991986111111133.1591666666667-0.1671805555555550.00801388888888965
4733.0633.084236111111133.21375-0.129513888888890-0.024236111111108
4833.4233.235652777777833.26625-0.03059722222222190.184347222222229
4933.4833.346819444444433.31708333333330.02973611111110990.133180555555555
5033.533.473902777777833.36750.1064027777777780.0260972222222193
5133.5133.559652777777833.41791666666670.141736111111112-0.0496527777777871
5233.5233.580069444444433.468750.111319444444446-0.0600694444444443
5333.5533.598986111111133.51750.0814861111111083-0.0489861111111125
5433.5633.616069444444433.55333333333330.0627361111111125-0.0560694444444465
5533.5633.565152777777833.5804166666667-0.0152638888888861-0.00515277777778067
5633.5633.540319444444433.6141666666667-0.07384722222222230.0196805555555528
5733.633.539236111111133.65625-0.1170138888888910.0607638888888857
5833.6133.536569444444433.70375-0.1671805555555550.0734305555555537
5933.6233.622152777777833.7516666666667-0.129513888888890-0.00215277777778056
6033.7233.771486111111133.8020833333333-0.0305972222222219-0.0514861111111173
6133.8333.885152777777833.85541666666670.0297361111111099-0.0551527777777778
6233.9634.013486111111133.90708333333330.106402777777778-0.0534861111111127
6334.0634.095902777777833.95416666666670.141736111111112-0.0359027777777712
6434.1134.109652777777833.99833333333330.1113194444444460.000347222222224275
6534.1134.124402777777834.04291666666670.0814861111111083-0.0144027777777822
6634.2134.145652777777834.08291666666670.06273611111111250.0643472222222172
6734.19NANA-0.0152638888888861NA
6834.17NANA-0.0738472222222223NA
6934.12NANA-0.117013888888891NA
7034.15NANA-0.167180555555555NA
7134.15NANA-0.129513888888890NA
7234.15NANA-0.0305972222222219NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/146cx1243754951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/146cx1243754951.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/2oy5t1243754951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/2oy5t1243754951.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/3tmn61243754951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/3tmn61243754951.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/4h6jd1243754951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243755004k86i00bhwx83uuz/4h6jd1243754951.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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