Home » date » 2010 » Dec » 17 »

Classical Decomp of Time Series By Moving Averages : BRU Passengers

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 17 Dec 2010 15:38: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/17/t1292600201y2i7du2lttagquk.htm/, Retrieved Fri, 17 Dec 2010 16:36:42 +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/17/t1292600201y2i7du2lttagquk.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 «
989236 1008380 1207763 1368839 1469798 1498721 1761769 1653214 1599104 1421179 1163995 1037735 1015407 1039210 1258049 1469445 1552346 1549144 1785895 1662335 1629440 1467430 1202209 1076982 1039367 1063449 1335135 1491602 1591972 1641248 1898849 1798580 1762444 1622044 1368955 1262973 1195650 1269530 1479279 1607819 1712466 1721766 1949843 1821326 1757802 1590367 1260647 1149235 1016367 1027885 1262159 1520854 1544144 1564709 1821776 1741365 1623386 1498658 1241822 1136029
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1989236NANA0.733744074532938NA
21008380NANA0.755235166348185NA
31207763NANA0.915662813815028NA
41368839NANA1.04597623431699NA
51469798NANA1.09772359962096NA
61498721NANA1.10914781047047NA
717617691349402.822827451349401.541666671.281160783590811.01907025513798
816532141351777.784016651351776.583333331.200683319851771.01858125150116
915991041355157.584305711355156.416666671.167639045263971.01059855901928
1014211791361444.636718231361443.583333331.053384900374580.990973505518608
1111639951369075.8608719313690750.8608719278976580.987609658442794
1210377351374616.237103661374615.458333330.7787703239166390.969384000015323
1310154071377722.400410741377721.666666670.7337440745329381.00446326298971
1410392101379107.71356851379106.958333330.7552351663481850.997753278359556
1512580491380751.9156628113807510.9156628138150280.995053915814916
1614694451383943.170976231383942.1251.045976234316991.01511113032871
1715523461387462.59772361387461.51.097723599620961.01923560136255
1815491441390690.150814481390689.041666671.109147810470471.00432050701601
1917858951393323.947827451393322.666666671.281160783590811.00046196530806
2016623351395332.159016651395330.958333331.200683319851770.992231114319257
2116294401399554.000972381399552.833333331.167639045263970.997104018081911
2214674301403689.011718231403687.958333331.053384900374580.992429649176563
2312022091406263.110871931406262.250.8608719278976580.993059133389468
2410769821411751.7787703214117510.7787703239166390.97958233995903
2510393671420295.817077411420295.083333330.7337440745329380.99734573109696
2610634491430679.130235171430678.3750.7552351663481850.984220599443754
2713351351441897.998996151441897.083333330.9156628138150281.01124256195496
2814916021453882.21264291453881.166666671.045976234316990.98084917061082
2915919721467272.264390271467271.166666671.097723599620960.988398415723614
3016412481481969.650814481481968.541666671.109147810470470.998494780181753
3118988491496231.239494121496229.958333331.281160783590810.990577473614528
3217985801511329.659016651511328.458333331.200683319851770.991156930938869
3317624441525922.334305711525921.166666671.167639045263970.989178390187852
3416220441536770.595051571536769.541666671.053384900374581.00199786867595
3513689551546633.360871931546632.50.8608719278976581.02816660595764
3612629731555008.7787703215550080.7787703239166391.0429225186482
3711956501560488.400410741560487.666666670.7337440745329381.04423710399253
3812695301563560.921901831563560.166666670.7552351663481851.07509332702272
3914792791564315.415662811564314.50.9156628138150281.03273868114025
4016078191562802.254309571562801.208333331.045976234316990.983584330041577
4117124661556969.59772361556968.51.097723599620961.00195710751537
4217217661547717.692481141547716.583333331.109147810470471.00298229162928
4319498431535508.656160781535507.3751.281160783590810.991160761287156
4418213261517969.909016651517968.708333331.200683319851770.999301158588433
4517578021498854.667639051498853.51.167639045263971.00438948805868
4615903671486184.345051571486183.291666671.053384900374581.0158694319766
4712606471475547.194205261475546.333333330.8608719278976580.99243505755782
4811492351461989.653770321461988.8750.7787703239166391.00938159672517
4910163671450109.442077411450108.708333330.7337440745329380.955224357268524
5010278851441441.630235171441440.8750.7552351663481850.944203250521692
5112621591432509.415662811432508.50.9156628138150280.962235296437596
5215208541423087.670976231423086.6251.045976234316991.02172582436661
5315441441418482.139390271418481.041666671.097723599620960.991679330746192
5415647091417147.525814481417146.416666671.109147810470470.99547287652068
551821776NANA1.28116078359081NA
561741365NANA1.20068331985177NA
571623386NANA1.16763904526397NA
581498658NANA1.05338490037458NA
591241822NANA0.860871927897658NA
601136029NANA0.778770323916639NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/10kzt1292600300.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/10kzt1292600300.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/20kzt1292600300.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/20kzt1292600300.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/3sbye1292600300.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/3sbye1292600300.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/4sbye1292600300.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292600201y2i7du2lttagquk/4sbye1292600300.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])
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