Home » date » 2011 » May » 20 »

Sarah Geerts - decompositie - 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: Fri, 20 May 2011 04:04:52 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55.htm/, Retrieved Fri, 20 May 2011 06:01:38 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31.514 27.071 29.462 26.105 22.397 23.843 21.705 18.089 20.764 25.316 17.704 15.548 28.029 29.383 36.438 32.034 22.679 24.319 18.004 17.537 20.366 22.782 19.169 13.807 29.743 25.591 29.096 26.482 22.405 27.044 17.970 18.730 19.684 19.785 18.479 10.698 31.956 29.506 34.506 27.165 26.736 23.691 18.157 17.328 18.205 20.995 17.382 9.367 31.124 26.551 30.651 25.859 25.100 25.778 20.418 18.688 20.424 24.776 19.814 12.738 31.566 30.111 30.019 31.934 25.826 26.835 20.205 17.789 20.520 22.518 15.572 11.509 25.447 24.090 27.786 26.195 20.516 22.759 19.028 16.971 20.036 22.485 18.730 14.538 27.561 25.985 34.670 32.066 27.186 29.586 21.359 21.553 19.573 24.256 22.380 16.167 27.297 28.287
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
131.514NANA1.2605490810558NA
227.071NANA1.17093781869857NA
329.462NANA1.36524305933105NA
426.105NANA1.23380943922305NA
522.397NANA1.04174825738425NA
623.843NANA1.09954886097311NA
721.70519.123115286042623.14795833333330.8261253545849471.13501381314382
818.08918.147567547569423.09908333333330.7856401609401260.996772705354816
920.76420.534863753588723.48608333333330.8743417734724621.0111584011056
1025.31622.588217009748324.02379166666670.9402436269496031.12076132388291
1117.70419.492214432575724.28258333333330.802724082730450.908260067692092
1215.54814.566337264020924.31416666666670.5990884846565811.06739255848509
1328.02930.479814165537424.17979166666671.26054908105580.919592220863719
1429.38328.10553257146424.00258333333331.170937818698571.04545252523815
1536.43832.715319430749923.9631.365243059331051.11379013361401
1632.03429.415045205610223.84083333333331.233809439223051.08903453236544
1722.67924.789745375957323.79629166666671.041748257384250.914854092127768
1824.31926.15254058556623.78479166666671.099548860973110.929890536654862
1918.00419.648290058330223.78366666666670.8261253545849470.91631383425994
2017.53718.617380363811623.69708333333330.7856401609401260.941969259761614
2120.36620.313728146714623.23316666666670.8743417734724621.00257322796228
2222.78221.339691003612622.69591666666670.9402436269496031.06758809188677
2319.16918.023697616893922.45316666666670.802724082730451.06354425198704
2413.80713.512615505570622.55529166666670.5990884846565811.02178590031723
2529.74328.573391249075622.66741666666671.26054908105581.04093349440845
2625.59126.598681966026322.71570833333331.170937818698570.962115342131863
2729.09631.041531440010122.7371.365243059331050.937324888632833
2826.48227.86399251432722.58370833333331.233809439223050.950402207665812
2922.40523.366500225483522.43008333333331.041748257384250.958851337761104
3027.04424.488923158913722.27179166666671.099548860973111.10433602263791
3117.9718.368449774629222.23445833333330.8261253545849470.978307925844696
3218.7317.668883544509922.48979166666670.7856401609401261.06005565959032
3319.68420.003482540760822.87833333333330.8743417734724620.984028654005132
3419.78521.749911462687223.13220833333330.9402436269496030.90965887534494
3518.47918.736483155521823.3411250.802724082730450.98625765820701
3610.69814.007812062179623.3818750.5990884846565810.763716699832379
3731.95629.30771361166923.24995833333331.26054908105581.09036141213269
3829.50627.164976768594423.19933333333331.170937818698571.086177994973
3934.50631.508842762193623.07929166666671.365243059331051.0951211461629
4027.16528.461618961450623.06808333333331.233809439223050.95444324642225
4126.73624.036040511739823.07279166666671.041748257384251.11232962795771
4223.69125.258424103451322.9716251.099548860973110.937944501326305
4318.15718.902987300935522.88150.8261253545849470.960536010046489
4417.32817.852657872156522.72370833333330.7856401609401260.970611778038118
4518.20519.620192965814822.43995833333330.8743417734724620.927870588822415
4620.99520.896836255319322.22491666666670.9402436269496031.00469754098091
4717.38217.742075251202622.10233333333330.802724082730450.979705009357446
489.36713.252511255148822.1211250.5990884846565810.706809435559677
4931.12428.113133265855122.30229166666671.26054908105581.1070982272119
5026.55126.291261999542122.45316666666671.170937818698571.00987925191504
5130.65130.857621822892722.60229166666671.365243059331050.993304026341415
5225.85928.195373166211622.85229166666671.233809439223050.917136292098753
5325.124.07601760111723.11116666666671.041748257384251.04253121989891
5425.77825.677718735769123.35295833333331.099548860973111.00390538058551
5520.41819.423721649442223.51183333333330.8261253545849471.05118886938881
5618.68818.602846020834223.67858333333330.7856401609401261.00457747051556
5720.42420.809844241345823.80058333333330.8743417734724620.98145857139194
5824.77622.591586216078224.0273750.9402436269496031.09669147456176
5919.81419.514824494239324.310750.802724082730451.01533067877956
6012.73814.608797660370924.38504166666670.5990884846565810.871940340070161
6131.56630.782871173774624.42020833333331.26054908105581.02544040878463
6230.11128.540292025731624.3738751.170937818698571.05503475482494
6330.01933.230584915392424.34041666666671.365243059331050.903354547517915
6431.93429.920290170972124.25033333333331.233809439223051.06730248328212
6525.82624.980602337945623.97951.041748257384251.03384216483724
6626.83526.115980585938623.75154166666671.099548860973111.02753177931402
6720.20519.368818735252123.4453750.8261253545849471.04317151583571
6817.78918.022225206892722.93954166666670.7856401609401260.987059022722481
6920.5219.756298835218722.5956250.8743417734724621.03865608488468
7022.51820.933074811774722.26345833333330.9402436269496031.07571392174712
7115.57217.501860069445621.80308333333330.802724082730450.88973400188391
7211.50912.827682633466721.4120.5990884846565810.897200244880837
7325.44726.714974243450821.1931251.26054908105580.952536946811333
7424.0924.718497352726821.111.170937818698570.9745738042342
7527.78628.746216546509721.055751.365243059331050.96659676778834
7626.19525.952204788250821.03420833333331.233809439223051.00935547533361
7720.51622.047994181054221.16441666666671.041748257384250.93051548506074
7822.75923.554764772445321.42220833333331.099548860973110.966216399096621
7919.02817.874461234477221.63650.8261253545849471.06453558238151
8016.97117.129737984064721.80354166666670.7856401609401260.990733192520959
8120.03619.383574223368822.16933333333330.8743417734724621.03365869313434
8222.48521.34427469129422.70079166666670.9402436269496031.05344408864693
8318.7318.641928947943523.22333333333330.802724082730451.00472435295202
8414.53814.249743961900123.78570833333330.5990884846565811.02022885736548
8527.56130.464057302024224.16729166666671.26054908105580.904705493649681
8625.98528.635674668879824.45533333333331.170937818698570.9074345305452
8734.6733.621783937018324.62695833333331.365243059331051.03117669380498
8832.06630.452216265457124.68145833333331.233809439223051.05299396669442
8927.18625.947171096088624.90733333333331.041748257384251.04774427621892
9029.58627.628684931422425.12729166666671.099548860973111.07084358424717
9121.35920.805278617426425.18416666666670.8261253545849471.02661446610524
9221.55319.852406696809525.26908333333330.7856401609401261.08566182071335
9319.573NANA0.874341773472462NA
9424.256NANA0.940243626949603NA
9522.38NANA0.80272408273045NA
9616.167NANA0.599088484656581NA
9727.297NANANANA
9828.287NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/1ombj1305864290.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/1ombj1305864290.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/266451305864290.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/266451305864290.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/3n4681305864290.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/3n4681305864290.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/4frb81305864290.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t130586409455k8fosbi2azc55/4frb81305864290.ps (open in new window)


 
Parameters (Session):
 
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])
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