Home » date » 2008 » Jun » 01 »

Van Passen Glenn 2 mar 01 A verbetering oefening 9 vraag 2

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 01 Jun 2008 10:57:46 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew.htm/, Retrieved Sun, 01 Jun 2008 16:59:02 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11835.70 11542.20 13093.70 11180.20 12035.70 12112.00 10875.20 9897.30 11672.10 12385.70 11405.60 9830.90 11025.10 10853.80 12252.60 11839.40 11669.10 11601.40 11178.40 9516.40 12102.80 12989.00 11610.20 10205.50 11356.20 11307.10 12648.60 11947.20 11714.10 12192.50 11268.80 9097.40 12639.80 13040.10 11687.30 11191.70 11391.90 11793.10 13933.20 12778.10 11810.30 13698.40 11956.60 10723.80 13938.90 13979.80 13807.40 12973.90 12509.80 12934.10 14908.30 13772.10 13012.60 14049.90 11816.50 11593.20 14466.20 13615.90 14733.90 13880.70 13527.50 13584.00 16170.20 13260.60 14741.90 15486.50 13154.50 12621.20 15031.60 15452.40 15428.00 13105.90 14716.80 14180.00 16202.20 14392.40 15140.60 15960.10 14729.90 13705.20 15728.50 17315.60 16152.80
 
Text written by user:
 
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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
111835.7NANA0.962375680416726NA
211542.2NANA0.971725251223278NA
313093.7NANA1.1087688053701NA
411180.2NANA1.03593610730050NA
512035.7NANA0.989578018080147NA
612112NANA1.04906445953755NA
710875.210754.445984012211455.08333333330.9388361193949311.01122828792551
89897.39388.9672837210511392.6250.824126773568081.05414149404486
911672.112074.064640992911328.89583333331.065775943094740.966708423969492
1012385.712158.179182043711321.31666666671.07391918625871.01871339569434
1111405.611660.204963158211333.50833333331.028825728116690.978164623695494
129830.910744.174750702611296.95833333330.951067927638570.914998148122742
1311025.110863.601432842811288.31666666670.9623756804167261.01486602469315
1410853.810965.996388303711285.07916666670.9717252512232780.98976870096151
1512252.612514.844441403211287.15416666671.10876880537010.979045329517995
1611839.411737.402130540111330.23751.035936107300501.00868998678971
1711669.111245.465639661011363.90.9895780180801471.03767157127268
1811601.411946.781034028911388.03333333331.049064459537550.97109003395600
1911178.410719.102715934211417.43750.9388361193949311.04284848239985
209516.49436.3511393396511450.12083333330.824126773568081.00848303115032
2112102.812240.978475880811485.50833333331.065775943094740.98871181122056
221298912357.051116685711506.51.07391918625871.05114075173331
2311610.211844.733431043711512.86666666671.028825728116690.980199349153017
2410205.510974.725504711311539.37083333330.951067927638570.929909362709704
2511356.211132.537316735311567.76666666670.9623756804167261.02009089903777
2611307.111227.386432027611554.0750.9717252512232781.00709992200367
2712648.612816.249381532911558.99166666671.10876880537010.98691899817629
2811947.211999.761582514911583.49583333331.035936107300500.99561978109703
2911714.111468.058845102911588.83750.9895780180801471.02145447265491
3012192.512203.915475265411633.14166666671.049064459537550.999064605512181
3111268.810961.588438305211675.72083333330.9388361193949311.02802619012964
329097.49640.1885951970511697.45833333330.824126773568080.943695230665147
3312639.812545.497307221511771.23333333331.065775943094741.00751685568687
3413040.112736.014824200011859.37916666671.07391918625871.02387600674131
3511687.312240.977086680111898.00833333331.028825728116690.954768554604797
3611191.711379.301875562711964.76250.951067927638570.983513762301574
3711391.911602.561599050812056.16666666670.9623756804167260.98184352677188
3811793.111808.980190305612152.59166666670.9717252512232780.998655244563911
3913933.213609.568841905212274.48751.10876880537011.02377967750883
4012778.112812.220373068012367.77083333331.035936107300500.997336888371068
4111810.312365.037100141212495.26250.9895780180801470.955136640865004
4213698.413278.909311361212657.85833333331.049064459537551.0315907488185
4311956.611997.101207094812778.69583333330.9388361193949310.99662408390196
4410723.810608.832866233412872.81666666670.824126773568081.01083692572182
4513938.913813.508676251612960.98751.065775943094741.00907744199444
4613979.814007.163743678413043.03333333331.07391918625870.998046446505577
4713807.413513.158680461213134.54583333331.028825728116691.02177442939113
4812973.912553.419008930713199.28750.951067927638571.03349533627215
4912509.812711.150214613513208.09583333330.9623756804167260.984159559818434
5012934.112864.168542898513238.48333333330.9717252512232781.00543614279215
5114908.314742.943075014513296.67916666671.10876880537011.01121600511812
5213772.113781.563054270813303.48751.035936107300500.999313354063429
5313012.613188.036151844513326.92916666670.9895780180801470.98669732552864
5414049.914060.943154927213403.31666666671.049064459537550.999214622034556
5511816.512658.800727678713483.50416666670.9388361193949310.933461253889793
5611593.211169.379860583513552.98750.824126773568081.03794482278395
5714466.214529.345969897413632.64583333331.065775943094740.995653901419361
5813615.914673.937793110113663.91251.07391918625870.927896805341041
5914733.914109.989058889413714.65416666671.028825728116691.04421767717229
6013880.713169.025464576013846.56666666670.951067927638571.05404154903781
6113527.513436.857665722413962.1750.9623756804167261.00674579849936
621358413663.193923848114060.75833333330.9717252512232780.99420384982534
6316170.215663.743228784214127.151.10876880537011.03233306137738
6413260.614738.500400588814227.22916666671.035936107300500.899725185031055
6514741.914183.295997045114332.67083333330.9895780180801471.03938463972487
6615486.515032.368102255214329.30833333331.049064459537551.03021026990928
6713154.513469.086711425514346.57916666670.9388361193949310.976643797893243
6812621.211884.704730732814420.96666666670.824126773568081.06197000985331
6915031.615397.407153348814447.13333333331.065775943094740.976242288736958
7015452.415567.129804311314495.6251.07391918625870.99262999629646
711542814979.081019168314559.39583333331.028825728116691.02996972779954
7213105.913881.541779264614595.74166666670.951067927638570.944124234065758
7314716.8NA14681.1166666667NANA
7414180NA14791.925NANA
7516202.2NA14866.1291666667NANA
7614392.4NA14972.8NANA
7715140.6NA15080.6333333333NANA
7815960.1NANANANA
7914729.9NANANANA
8013705.2NANANANA
8115728.5NANANANA
8217315.6NANANANA
8316152.8NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/1m6kh1212339459.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/1m6kh1212339459.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/20pvl1212339459.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/20pvl1212339459.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/311rv1212339459.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/311rv1212339459.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/435kg1212339459.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339538c4s56wagw2eyvew/435kg1212339459.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])
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