Home » date » 2009 » Jun » 01 »

dorien storms opgave 9 oef 2

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 05:09:05 -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/t12438545734n5l0do9ax2dxug.htm/, Retrieved Mon, 01 Jun 2009 13:09:37 +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/t12438545734n5l0do9ax2dxug.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 «
65 65,05 65,84 66,6 67,55 68,07 69,06 69,06 69,11 69,29 69,38 69,28 69,75 69,9 70,21 70,48 71,55 72,18 72,64 72,77 72,74 73,13 73,44 73,34 73,34 73,81 74,26 74,72 75,11 75,26 75,89 75,91 76,43 76,56 76,76 76,76 76,56 76,82 77,09 77,51 77,76 77,86 77,89 77,94 77,99 78,17 78,91 78,87 78,88 79,08 79,41 79,51 79,73 80,38 80,56 80,46 80,45 80,58 80,68 80,52 81,49 81,66 81,95 82,3 82,4 83,14 83,17 83,11 83,21 83,33 83,88 83,8 83,73
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
165NANA-0.304083333333336NA
265.05NANA-0.288750000000002NA
365.84NANA-0.193333333333337NA
466.6NANA-0.107833333333326NA
567.55NANA0.0603333333333408NA
668.07NANA0.272499999999999NA
769.0668.273083333333367.97208333333330.3009999999999930.786916666666698
869.0668.656833333333368.37208333333330.2847500000000020.403166666666678
969.1168.871166666666768.756250.1149166666666730.238833333333318
1069.2969.1177569.10.01774999999999210.172250000000005
1169.3869.494416666666769.42833333333330.0660833333333355-0.114416666666671
1269.2869.542916666666769.76625-0.223333333333335-0.262916666666655
1369.7569.782583333333370.0866666666667-0.304083333333336-0.0325833333333208
1469.970.101666666666770.3904166666667-0.288750000000002-0.201666666666654
1570.2170.502916666666770.69625-0.193333333333337-0.29291666666667
1670.4870.899666666666771.0075-0.107833333333326-0.419666666666672
1771.5571.39771.33666666666670.06033333333334080.152999999999992
1872.1871.947571.6750.2724999999999990.232500000000016
1972.6472.2947571.993750.3009999999999930.345250000000007
2072.7772.59172.306250.2847500000000020.179000000000002
2172.7472.752833333333372.63791666666670.114916666666673-0.0128333333333330
2273.1373.001083333333372.98333333333330.01774999999999210.128916666666669
2373.4473.374416666666773.30833333333330.06608333333333550.0655833333333362
2473.3473.361666666666773.585-0.223333333333335-0.0216666666666470
2573.3473.544666666666773.84875-0.304083333333336-0.204666666666654
2673.8173.8262574.115-0.288750000000002-0.016249999999971
2774.2674.2062574.3995833333333-0.1933333333333370.0537500000000222
2874.7274.588416666666774.69625-0.1078333333333260.131583333333339
2975.1175.037833333333374.97750.06033333333334080.0721666666666607
3075.2675.530833333333375.25833333333330.272499999999999-0.270833333333329
3175.8975.83675.5350.3009999999999930.0539999999999878
3275.9176.079333333333375.79458333333330.284750000000002-0.169333333333341
3376.4376.152833333333376.03791666666670.1149166666666730.277166666666673
3476.5676.289833333333376.27208333333330.01774999999999210.270166666666682
3576.7676.564833333333376.498750.06608333333333550.195166666666680
3676.7676.494166666666776.7175-0.2233333333333350.265833333333319
3776.5676.605083333333376.9091666666667-0.304083333333336-0.0450833333333236
3876.8276.788333333333377.0770833333333-0.2887500000000020.0316666666666663
3977.0977.033333333333377.2266666666667-0.1933333333333370.0566666666666862
4077.5177.250916666666777.35875-0.1078333333333260.259083333333351
4177.7677.5757577.51541666666670.06033333333334080.184250000000006
4277.8677.965416666666777.69291666666670.272499999999999-0.105416666666656
4377.8978.178577.87750.300999999999993-0.288499999999999
4477.9478.353083333333378.06833333333330.284750000000002-0.413083333333333
4577.9978.374083333333378.25916666666670.114916666666673-0.384083333333336
4678.1778.456916666666778.43916666666670.0177499999999921-0.28691666666667
4778.9178.670666666666778.60458333333330.06608333333333550.239333333333335
4878.8778.568333333333378.7916666666667-0.2233333333333350.301666666666662
4978.8878.703833333333379.0079166666667-0.3040833333333360.17616666666666
5079.0878.935416666666779.2241666666667-0.2887500000000020.144583333333344
5179.4179.238333333333379.4316666666667-0.1933333333333370.171666666666667
5279.5179.5267579.6345833333333-0.107833333333326-0.0167499999999734
5379.7379.869083333333379.808750.0603333333333408-0.139083333333332
5480.3880.2237579.951250.2724999999999990.156250000000014
5580.5680.4297580.128750.3009999999999930.130250000000018
5680.4680.6297580.3450.284750000000002-0.169749999999993
5780.4580.6732580.55833333333330.114916666666673-0.223249999999993
5880.5880.798166666666780.78041666666670.0177499999999921-0.218166666666662
5980.6881.07481.00791666666670.0660833333333355-0.394000000000005
6080.5281.010833333333381.2341666666667-0.223333333333335-0.490833333333342
6181.4981.153833333333381.4579166666667-0.3040833333333360.336166666666671
6281.6681.388333333333381.6770833333333-0.2887500000000020.271666666666661
6381.9581.709166666666781.9025-0.1933333333333370.240833333333342
6482.382.0242582.1320833333333-0.1078333333333260.275750000000002
6582.482.440333333333382.380.0603333333333408-0.0403333333333364
6683.1482.922582.650.2724999999999990.217500000000001
6783.1783.18182.880.300999999999993-0.0109999999999673
6883.11NANA0.284750000000002NA
6983.21NANA0.114916666666673NA
7083.33NANA0.0177499999999921NA
7183.88NANA0.0660833333333355NA
7283.8NANA-0.223333333333335NA
7383.73NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/1y5vp1243854543.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/1y5vp1243854543.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/35q6g1243854543.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/35q6g1243854543.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/4xea31243854543.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438545734n5l0do9ax2dxug/4xea31243854543.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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