Home » date » 2010 » Dec » 28 »

Paper

*The author of this computation has been verified*
R Software Module: /rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Tue, 28 Dec 2010 19:23:24 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln.htm/, Retrieved Tue, 28 Dec 2010 20:21:47 +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/2010/Dec/28/t1293564106f0hj7ezoj41fcln.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
961 935 956 951 986 980 1031 1059 1036 1023 1030 1075 1151 1220 1290 1330 1419 1443 1516 1546 1579 1591 1603 1606 1616 1628 1594 1596 1526 1535 1581 1611 1571 1535 1498 1493 1480 1448 1462 1428 1315 1186 1230 1271 1243 1220 1214 1227 1262 1274 1272 1249 1266 1307 1345 1369 1374 1400 1425 1465 1510 1508 1512 1539 1569 1571 1650 1736 1700 1731 1752
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1961993.56309616905110.146251441526918.29065238942332.5630961690513
2935931.627978721933.9310079154315934.441013362638-3.37202127806961
3956957.0262098830834.38241578106375950.5913743358541.02620988308274
4951939.42566243381-5.03494916108284967.609286727273-11.5743375661901
59861004.99182176169-17.6190208803822984.62719911869318.9918217616896
6980994.568313682935-37.39263629513991002.824322612214.5683136829349
710311033.144793735867.833760158421681021.021446105722.14479373586107
810591039.8637033435437.57646655003321040.55983010643-19.1362966564618
91036999.24926351876812.65252237409241060.09821410714-36.750736481232
101023959.1203129200570.1745878627038511086.70509921724-63.8796870799433
111030954.82469494038-8.136679267720091113.31198432734-75.1753050596192
1210751006.57162279473-8.513718405747181151.94209561101-68.4283772052663
1311511101.2815416637910.1462514415261190.57220689469-49.7184583362136
1412201200.28049687163.93100791543151235.78849521297-19.7195031284032
1512901294.612800687684.382415781063751281.004783531264.61280068768087
1613301336.27269511379-5.034949161082841328.762254047296.27269511379359
1714191479.09929631706-17.61902088038221376.5197245633260.099296317059
1814431503.497298035-37.39263629513991419.8953382601460.4972980349987
1915161560.895287884627.833760158421681463.2709519569644.8952878846187
2015461558.6071429889737.57646655003321495.81639046112.6071429889685
2115791616.9856486608712.65252237409241528.3618289650437.985648660871
2215911634.19602253330.1745878627038511547.62938960443.1960225332959
2316031647.23972902476-8.136679267720091566.8969502429644.2397290247566
2416061645.07549137118-8.513718405747181575.4382270345739.0754913711762
2516161637.874244732310.1462514415261583.9795038261821.8742447322957
2616281666.445830599883.93100791543151585.6231614846938.4458305998769
2715941596.350765075734.382415781063751587.26681914322.35076507573126
2815961614.26133892942-5.034949161082841582.7736102316718.2613389294156
2915261491.33861956025-17.61902088038221578.28040132013-34.6613804397473
3015351538.51841233463-37.39263629513991568.874223960513.51841233463324
3115811594.698193240697.833760158421681559.4680466008813.6981932406945
3216111637.0194174251937.57646655003321547.4041160247826.0194174251865
3315711594.0072921772312.65252237409241535.3401854486823.0072921772307
3415351550.353662752210.1745878627038511519.4717493850815.3536627522114
3514981500.53336594623-8.136679267720091503.603313321492.53336594622783
3614931514.43786986119-8.513718405747181480.0758485445621.4378698611856
3714801493.3053647908410.1462514415261456.5483837676313.3053647908434
3814481464.169536962763.93100791543151427.899455121816.1695369627637
3914621520.367057742964.382415781063751399.2505264759858.3670577429573
4014281489.52735159265-5.034949161082841371.5075975684361.5273515926528
4113151303.8543522195-17.61902088038221343.76466866088-11.1456477804986
4211861088.98831148918-37.39263629513991320.40432480596-97.011688510817
4312301155.122258890557.833760158421681297.04398095103-74.877741109455
4412711224.3037008393637.57646655003321280.11983261061-46.6962991606399
4512431210.1517933557312.65252237409241263.19568427018-32.8482066442723
4612201184.071049870850.1745878627038511255.75436226645-35.9289501291496
4712141187.82363900501-8.136679267720091248.31304026271-26.1763609949912
4812271210.33509690024-8.513718405747181252.1786215055-16.6649030997564
4912621257.8095458101810.1462514415261256.0442027483-4.19045418982182
5012741277.734781934143.93100791543151266.334210150433.73478193414303
5112721262.993366666384.382415781063751276.62421755256-9.006633333619
5212491212.09746785192-5.034949161082841290.93748130916-36.9025321480822
5312661244.36827581461-17.61902088038221305.25074506577-21.6317241853928
5413071327.67132325972-37.39263629513991323.7213130354220.6713232597181
5513451339.974358836517.833760158421681342.19188100507-5.02564116349049
5613691337.093311896537.57646655003321363.33022155347-31.9066881035021
5713741350.8789155240412.65252237409241384.46856210187-23.1210844759612
5814001392.324277660190.1745878627038511407.5011344771-7.67572233980786
5914251427.60297241538-8.136679267720091430.533706852342.60297241538115
6014651483.10095158686-8.513718405747181455.4127668188918.1009515868559
6115101529.5619217730310.1462514415261480.2918267854419.5619217730309
6215081504.733411566243.93100791543151507.33558051833-3.2665884337589
6315121485.238249967724.382415781063751534.37933425121-26.7617500322754
6415391521.17014681437-5.034949161082841561.86480234671-17.8298531856256
6515691566.26875043818-17.61902088038221589.35027044221-2.73124956182301
6615711562.60185362193-37.39263629513991616.79078267321-8.39814637807308
6716501647.934944937367.833760158421681644.23129490422-2.06505506264284
6817361762.5918483204437.57646655003321671.8316851295326.5918483204396
6917001687.9154022710712.65252237409241699.43207535483-12.0845977289257
7017311734.598255825570.1745878627038511727.227156311733.59825582556527
7117521757.11444199909-8.136679267720091755.022237268635.11444199909192
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/1gj0h1293564200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/1gj0h1293564200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/2rbzk1293564200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/2rbzk1293564200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/3rbzk1293564200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/3rbzk1293564200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/422y51293564200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564106f0hj7ezoj41fcln/422y51293564200.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
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