Home » date » 2009 » Jun » 01 »

Kim Van Assche opdracht 9 Loess eigen reeks

*Unverified author*
R Software Module: rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Mon, 01 Jun 2009 11:43:04 -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/t12438782152dwjw3bgybtfe7g.htm/, Retrieved Mon, 01 Jun 2009 19:43:39 +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/t12438782152dwjw3bgybtfe7g.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 «
519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
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


Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal721073
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1519518.7050666278141.19195314747985518.102980224707-0.294933372186392
2517515.944947298012-3.69379264886424521.748845350852-1.05505270198751
3510508.387729642824-13.7824401198209525.394710476997-1.61227035717593
4509508.620556683349-19.6172212212476528.996664537898-0.379443316650736
5501501.211511408574-31.8101300073742532.59861859880.211511408574324
6507506.764080871408-28.9280901418061536.164009270398-0.235919128592286
7569573.89162889294824.3789711650554539.7293999419974.89162889294767
8580582.00607060326134.7055252392002543.2884041575382.00607060326149
9578579.23666744996929.9159241769509546.847408373081.23666744996945
10565565.87388634636113.9529578768212550.1731557768180.873886346361246
11547545.345037623251-4.84394080380629553.498903180555-1.65496237674915
12555555.189932449049-1.46971856140716556.2797861123580.189932449049252
13562563.747377808361.19195314747985559.060669044161.74737780835983
14561564.036240885513-3.69379264886424561.6575517633513.03624088551305
15555559.528005637279-13.7824401198209564.2544344825424.52800563727897
16544540.732853492546-19.6172212212476566.884367728702-3.26714650745441
17537536.295829032512-31.8101300073742569.514300974862-0.70417096748804
18543542.742588475903-28.9280901418061572.185501665903-0.257411524096597
19594588.76432647800224.3789711650554574.856702356943-5.23567352199848
20611609.89306403346134.7055252392002577.401410727339-1.10693596653925
21613616.13795672531429.9159241769509579.9461190977353.13795672531398
22611625.6770337913213.9529578768212582.37000833185914.6770337913194
23594608.050043237823-4.84394080380629584.79389756598414.0500432378226
24595604.372353878194-1.46971856140716587.0973646832149.3723538781935
25591591.4072150520771.19195314747985589.4008318004440.407215052076594
26589590.32261440106-3.69379264886424591.3711782478041.32261440105981
27584588.440915424656-13.7824401198209593.3415246951654.4409154246556
28573571.208663492073-19.6172212212476594.408557729175-1.7913365079271
29567570.33453924419-31.8101300073742595.4755907631843.33453924419007
30569571.028867684827-28.9280901418061595.8992224569792.02886768482745
31621621.29817468417124.3789711650554596.3228541507730.298174684171386
32629626.89902611180934.7055252392002596.395448648991-2.10097388819111
33628629.61603267584129.9159241769509596.4680431472081.61603267584064
34612613.79754311225513.9529578768212596.2494990109241.79754311225463
35595598.812985929166-4.84394080380629596.030954874643.81298592916619
36597599.855365030379-1.46971856140716595.6143535310282.85536503037895
37593589.6102946651041.19195314747985595.197752187416-3.38970533489623
38590589.861578202421-3.69379264886424593.832214446443-0.138421797578985
39580581.315763414351-13.7824401198209592.466676705471.31576341435084
40574578.159482959709-19.6172212212476589.4577382615384.15948295970918
41573591.361330189768-31.8101300073742586.44879981760718.3613301897675
42573591.586823979417-28.9280901418061583.34126616238918.5868239794174
43620635.38729632777424.3789711650554580.23373250717115.3872963277739
44626640.20773688039534.7055252392002577.08673788040514.2077368803949
45620636.1443325694129.9159241769509573.93974325363916.1443325694100
46588591.35490048159813.9529578768212570.6921416415813.35490048159761
47566569.399400774283-4.84394080380629567.4445400295233.39940077428287
48557552.507065145519-1.46971856140716562.962653415888-4.49293485448072
49561562.3272800502681.19195314747985558.4807668022521.32728005026797
50549547.882000161726-3.69379264886424553.811792487138-1.11799983827382
51532528.639621947797-13.7824401198209549.142818172024-3.36037805220303
52526526.898342131504-19.6172212212476544.7188790897440.89834213150391
53511513.515189999911-31.8101300073742540.2949400074632.51518999991072
54499490.481120777170-28.9280901418061536.446969364637-8.5188792228305
55555553.02203011313524.3789711650554532.59899872181-1.97796988686503
56565566.13659244461634.7055252392002529.1578823161841.13659244461621
57542528.36730991249229.9159241769509525.716765910557-13.6326900875084
58527517.49078044100213.9529578768212522.556261682177-9.5092195589981
59510505.44818335001-4.84394080380629519.395757453796-4.5518166499902
60514512.820535108731-1.46971856140716516.649183452677-1.17946489126939
61517518.9054374009641.19195314747985513.9026094515571.90543740096359
62508508.135293094875-3.69379264886424511.5584995539890.135293094874783
63493490.568050463399-13.7824401198209509.214389656422-2.43194953660139
64490492.689726278834-19.6172212212476506.9274949424142.68972627883386
65469465.169529778969-31.8101300073742504.640600228405-3.83047022103096
66478482.60186155960-28.9280901418061502.3262285822064.60186155960037
67528531.60917189893824.3789711650554500.0118569360063.60917189893837
68534535.60680349546934.7055252392002497.6876712653311.60680349546885
69518510.72059022839329.9159241769509495.363485594656-7.27940977160654
70506505.05407423497113.9529578768212492.992967888207-0.945925765028676
71502518.221490622047-4.84394080380629490.62245018175916.2214906220469
72516545.254851693819-1.46971856140716488.21486686758829.2548516938194
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/1gnzy1243878181.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/1gnzy1243878181.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/2jfy21243878181.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/2jfy21243878181.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/42dym1243878181.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438782152dwjw3bgybtfe7g/42dym1243878181.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = TRUE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = TRUE ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Time Series Components',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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