Home » date » 2010 » Dec » 28 »

Paper: Structural Time Series Analysis -AEX

*The author of this computation has been verified*
R Software Module: /rwasp_structuraltimeseries.wasp (opens new window with default values)
Title produced by software: Structural Time Series Models
Date of computation: Tue, 28 Dec 2010 01:36:48 +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/t129350014487jcj056k1nyaxf.htm/, Retrieved Tue, 28 Dec 2010 02:35:50 +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/t129350014487jcj056k1nyaxf.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 «
508643 527568 520008 498484 523917 553522 558901 548933 567013 551085 588245 605010 631572 639180 653847 657073 626291 625616 633352 672820 691369 702595 692241 718722 732297 721798 766192 788456 806132 813944 788025 765985 702684 730159 678942 672527 594783 594575 576299 530770 524491 456590 428448 444937 372206 317272 297604 288561 289287 258923 255493 277992 295474 291680 318736 338463 351963 347240 347081 383486
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
1508643508643000
2527568522879.7379072612235.54280668410880.5702673952390.679303067014587
3520008520796.001371167996.795015088428765.275075422108-0.243427050519995
4498484503560.94062598-5295.81893424825732.968754851264-0.947006177484237
5523917517414.2325427591636.66492039466794.9865767115660.953082098762873
6553522545188.49762713511212.4883283357700.2943074053671.28471769597676
7558901557855.49221038111747.1124366646622.5840099503720.0713250413239441
8548933553110.1230130285677.75448637661616.737770967309-0.808827985701807
9567013564625.0465324527827.16489197715690.682500920350.286389305936121
10551085555423.9750524091554.77422647304613.855402129362-0.83572580679396
11588245580623.74089699810266.1205282576742.551714506391.16069288393369
12605010601310.49398228914105.7163429042667.6520227249420.511585887166022
13631572628239.79330681118596.4610658461-210.3066442245390.729299621435798
14639180640578.32237632116435.4087605407-129.931498527007-0.250167206246470
15653847654652.2086059515577.1458193328-126.925143892356-0.115418825504425
16657073660253.15292657811899.5042631907-287.83803785221-0.489106217650624
17626291636772.459353388-1141.36001055664-254.148786458373-1.73060835486476
18625616627864.302269351-4000.86459090566-1.34669412313031-0.380141688125085
19633352631216.058422033-1294.702032838995.986993057464850.360240919284134
20672820663172.17038918110944.75469329267.161509649550541.63027772212875
21691369687487.85503241115867.46256818482.597645506322680.655838226061422
22702595702948.88515119115717.8059228557-235.961903076208-0.0199396744163479
23692241698303.1697534268218.82534935807-153.130575179061-0.99915478906515
24718722716007.34379540111711.7910413418-37.73757663976370.465400457032939
25732297729951.72323177212514.03244326131713.065357064410.118683922536796
26721798726110.5898126616740.59227656606-516.813170496904-0.70603027917733
27766192758782.00047185616199.5968023204-41.45859784022951.26811487042180
28788456785645.89354837220127.4105096696-274.9104033987280.522730032274457
29806132806421.22665931220366.0359282316-476.2855873315380.0317093666897173
30813944817089.97161170416797.3256909277-344.820344599108-0.474776398854136
31788025798809.7724134973891.14654477199-643.309830327182-1.71856979833561
32765985774530.683132659-6474.38151495653-396.491162230097-1.38081451977589
33702684717758.709195631-24984.2587289551-519.882835634134-2.46609516221689
34730159721709.675032519-14334.807722291074.87310425707491.41890446246529
35678942685814.728003832-22270.4212982397-632.260199730614-1.05733375108728
36672527670590.065285948-19677.3728513075-102.2016613747640.345497027198647
37594783610567.894496334-34293.0198164359-4281.86959513517-2.08982269214111
38594575590641.630655958-29166.994563884389.5600345211410.642464534745484
39576299572304.346249627-25210.7169378212886.0458108305440.529598517436605
40530770534077.4971425-30001.3836008155449.299166231358-0.637781472220461
41524491519411.797332152-24357.0622374916659.8039886738350.750521747724276
42456590464867.87315356-35460.9133840915424.736430042922-1.47777298827776
43428448428260.566477481-35882.5311876229518.152288689237-0.0561502261798934
44444937432125.601786134-21263.44007472381339.688568893851.94753762706702
45372206381139.297982589-32196.5266642407-352.814968523353-1.45665169505806
46317272323629.368723455-41508.3908607915951.078195664782-1.24069340101103
47297604293847.217310637-37194.5227785536370.9856908183260.574776418881518
48288561280459.431575179-28438.04000073761228.977656283881.16671956217339
49289287282962.702731473-17185.4437558441-2519.959640732061.58048912720570
50258923260483.862645361-19085.9787334948-209.332049499595-0.241580024153711
51255493251752.16391006-15300.9673259458773.4971158576670.506220109776332
52277992268540.725016916-3497.46645586085209.9552519140431.57174074866072
53295474288103.8552045344985.10703724913737.6686390605261.12834901281228
54291680292048.0986895744602.41929475903-68.6415006026201-0.050941238873255
55318736313933.49695340710955.8986525835-172.5745559184050.84621538156101
56338463334477.11100657914480.64807266261224.968050283030.469576478158825
57351963351678.88437628915481.1004640056-499.6246236941920.133294815364596
58347240351511.9629336369727.55428130257235.448915146358-0.766592517058976
59347081350508.5714194315781.78484233479-336.366757860426-0.525731564377954
60383486376720.50020926813292.0990938283881.82455122651.0006922242197
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/1g6le1293500202.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/1g6le1293500202.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/32o2k1293500202.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/32o2k1293500202.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/42o2k1293500202.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/42o2k1293500202.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/5cf141293500202.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t129350014487jcj056k1nyaxf/5cf141293500202.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 12 ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
nx <- length(x)
x <- ts(x,frequency=par1)
m <- StructTS(x,type='BSM')
m$coef
m$fitted
m$resid
mylevel <- as.numeric(m$fitted[,'level'])
myslope <- as.numeric(m$fitted[,'slope'])
myseas <- as.numeric(m$fitted[,'sea'])
myresid <- as.numeric(m$resid)
myfit <- mylevel+myseas
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(mylevel,na.action=na.pass,lag.max = mylagmax,main='Level')
acf(myseas,na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(myresid,na.action=na.pass,lag.max = mylagmax,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(mylevel,main='Level')
spectrum(myseas,main='Seasonal')
spectrum(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(mylevel,main='Level')
cpgram(myseas,main='Seasonal')
cpgram(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test1.png')
plot(as.numeric(m$resid),main='Standardized Residuals',ylab='Residuals',xlab='time',type='b')
grid()
dev.off()
bitmap(file='test5.png')
op <- par(mfrow = c(2,2))
hist(m$resid,main='Residual Histogram')
plot(density(m$resid),main='Residual Kernel Density')
qqnorm(m$resid,main='Residual Normal QQ Plot')
qqline(m$resid)
plot(m$resid^2, myfit^2,main='Sq.Resid vs. Sq.Fit',xlab='Squared residuals',ylab='Squared Fit')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Structural Time Series Model',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,'Level',header=TRUE)
a<-table.element(a,'Slope',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Stand. Residuals',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,mylevel[i])
a<-table.element(a,myslope[i])
a<-table.element(a,myseas[i])
a<-table.element(a,myresid[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