Home » date » 2009 » Dec » 04 »

WS 9, Populair model 1

*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, 04 Dec 2009 08:53:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4.htm/, Retrieved Fri, 04 Dec 2009 16:57:36 +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/2009/Dec/04/t1259942251nfyk2dd52rld7w4.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 «
95.1 97 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 115.7 99.4 94.3
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
195.1NANA0.965174011311693NA
297NANA0.974505675453896NA
3112.7NANA1.05513816877183NA
4102.9NANA1.00231085470890NA
597.4NANA1.00104366051728NA
6111.4NANA1.08588163191988NA
787.484.4747140159778102.5291666666670.8239091056949111.03462913154662
896.896.5718598066724102.46250.9425093063967051.00236238790248
9114.1110.092737041569102.0833333333331.078459464897001.03639897659114
10110.3109.555392550455101.7458333333331.076755567881951.00679662983455
11103.9105.470068464427101.7708333333331.036348676825490.985113611024565
12101.697.6205104418725101.9041666666670.9579638756204521.04076489192809
1394.698.1943909758234101.73750.9651740113116930.963395149762593
1495.998.835177692597101.4208333333330.9745056754538960.970302297611826
15104.7106.925064177916101.33751.055138168771830.979190434020097
16102.8101.350332591982101.1166666666671.002310854708901.01430352886807
1798.1101.243053215567101.13751.001043660517280.968955369126665
18113.9110.076725929078101.3708333333331.085881631919881.03473281057964
1980.983.6954333201747101.5833333333330.8239091056949110.966599930136202
2095.796.104532275584101.9666666666670.9425093063967050.995790705536925
21113.2110.667915422848102.6166666666671.078459464897001.02288002414681
22105.9110.883391084176102.9791666666671.076755567881950.95505737121267
23108.8107.141180705808103.3833333333331.036348676825491.01548255566407
24102.399.5364381931134103.9041666666670.9579638756204521.02776432286561
2599100.494722369450104.1208333333330.9651740113116930.98512635953205
26100.7101.843963965561104.5083333333330.9745056754538960.988767483893814
27115.5110.552101633069104.7751.055138168771831.04475625785346
28100.7105.526627819935105.2833333333331.002310854708900.954261517498964
29109.9106.006352633528105.8958333333331.001043660517281.03673032105852
30114.6115.162271571903106.0541666666671.085881631919880.995117571369265
3185.487.6090015722255106.3333333333330.8239091056949110.974785678040123
32100.5100.675702411608106.8166666666670.9425093063967050.998254768455553
33114.8115.552438082610107.1458333333331.078459464897000.993488340920402
34116.5115.760196510375107.5083333333331.076755567881951.00639082786594
35112.9111.623388733079107.7083333333331.036348676825491.01143677218019
36102103.260522759588107.7916666666670.9579638756204520.987792791224555
37106104.427806465545108.1958333333330.9651740113116931.01505531512791
38105.3105.875981197751108.6458333333330.9745056754538960.99455985020176
39118.8114.697915354535108.7041666666671.055138168771831.03576424761327
40106.1109.105712830292108.8541666666671.002310854708900.972451370763994
41109.3109.230547423444109.1166666666671.001043660517281.00063583473849
42117.2118.415391960863109.051.085881631919880.989736199486087
4392.589.9399777504207109.16250.8239091056949111.0284636744817
44104.2103.365781056949109.6708333333330.9425093063967051.00807055230968
45112.5118.208144514919109.6083333333331.078459464897000.951711072546285
46122.4118.120085796650109.71.076755567881951.03623358529148
47113.3114.162442991301110.1583333333331.036348676825490.992445475335818
48100105.467831189663110.0958333333330.9579638756204520.948156408186392
49110.7106.350111371407110.18750.9651740113116931.04090158978209
50112.8107.341800151247110.150.9745056754538961.05084878249724
51109.8116.219072881181110.1458333333331.055138168771830.944767474717824
52117.3110.300133265487110.0458333333331.002310854708901.06346199707361
53109.1109.301454682731109.18751.001043660517280.998156889280974
54115.9117.677897352518108.3708333333331.085881631919880.984891832769652
5596NANA0.823909105694911NA
5699.8NANA0.942509306396705NA
57116.8NANA1.07845946489700NA
58115.7NANA1.07675556788195NA
5999.4NANA1.03634867682549NA
6094.3NANA0.957963875620452NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/1aq9e1259941999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/1aq9e1259941999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/22f3a1259941999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/22f3a1259941999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/3duwp1259941999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/3duwp1259941999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/4812u1259941999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259942251nfyk2dd52rld7w4/4812u1259941999.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