Home » date » 2008 » May » 27 »

modelu Classical Deomposition - opgave 9 - oef 2 - Toon Raeman

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 27 May 2008 07:53:39 -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/May/27/t12118965148r7v2miovzu3wf1.htm/, Retrieved Tue, 27 May 2008 15:55:14 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
117,99 118,13 117,06 118,03 118,57 118,44 118,02 118,18 116,79 116,91 117,19 117,3 116,35 117,04 116,26 115,91 115,75 115,21 115,07 114,17 113,96 113,59 114,47 113,52 113,56 113,59 113 112,07 111,11 109,61 109,51 109,21 108,86 107,99 108,74 108,74 107,74 107,8 106,96 106,73 106,27 105,69 105,39 105,09 104,94 104,75 104,38 103,65 103,49 103,39 103,48 103,33 103,61 103,21 102,85 103,25 102,88 102,51 101,99 101,6 101,21 100,74 100,36 100,26 100,37 100,23 100,02 99,8 99,58 99,69 99,53 99,37
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1117.99NANA-0.027482638888892NA
2118.13NANA0.456059027777779NA
3117.06NANA0.226475694444448NA
4118.03NANA0.106371527777774NA
5118.57NANA0.089704861111115NA
6118.44NANA-0.343420138888892NA
7118.02117.401996527778117.649166666667-0.2471701388888810.618003472222213
8118.18117.340746527778117.535416666667-0.1946701388888930.839253472222254
9116.79117.327413194444117.456666666667-0.129253472222215-0.537413194444426
10116.91117.084392361111117.335-0.250607638888888-0.174392361111103
11117.19117.386788194444117.1291666666670.257621527777782-0.196788194444451
12117.3116.933454861111116.8770833333330.05637152777776230.366545138888910
13116.35116.592100694444116.619583333333-0.027482638888892-0.242100694444446
14117.04116.785642361111116.3295833333330.4560590277777790.254357638888905
15116.26116.271059027778116.0445833333330.226475694444448-0.0110590277777476
16115.91115.894704861111115.7883333333330.1063715277777740.015295138888888
17115.75115.626371527778115.5366666666670.0897048611111150.123628472222222
18115.21114.922413194444115.265833333333-0.3434201388888920.287586805555549
19115.07114.744913194444114.992083333333-0.2471701388888810.325086805555557
20114.17114.537413194444114.732083333333-0.194670138888893-0.367413194444424
21113.96114.323246527778114.4525-0.129253472222215-0.363246527777775
22113.59113.906059027778114.156666666667-0.250607638888888-0.316059027777769
23114.47114.060954861111113.8033333333330.2576215277777820.409045138888885
24113.52113.433038194444113.3766666666670.05637152777776230.0869618055555748
25113.56112.884184027778112.911666666667-0.0274826388888920.675815972222239
26113.59112.929392361111112.4733333333330.4560590277777790.660607638888891
27113112.280642361111112.0541666666670.2264756944444480.719357638888908
28112.07111.714704861111111.6083333333330.1063715277777740.355295138888891
29111.11111.225954861111111.136250.089704861111115-0.115954861111106
30109.61110.354913194444110.698333333333-0.343420138888892-0.744913194444464
31109.51110.009496527778110.256666666667-0.247170138888881-0.499496527777779
32109.21109.578246527778109.772916666667-0.194670138888893-0.368246527777785
33108.86109.150746527778109.28-0.129253472222215-0.290746527777770
34107.99108.555225694444108.805833333333-0.250607638888888-0.565225694444436
35108.74108.639288194444108.3816666666670.2576215277777820.100711805555576
36108.74108.073038194444108.0166666666670.05637152777776230.666961805555587
37107.74107.654184027778107.681666666667-0.0274826388888920.0858159722222496
38107.8107.794392361111107.3383333333330.4560590277777790.00560763888888971
39106.96107.229809027778107.0033333333330.226475694444448-0.269809027777782
40106.73106.811371527778106.7050.106371527777774-0.0813715277777476
41106.27106.478038194444106.3883333333330.089704861111115-0.208038194444441
42105.69105.651163194444105.994583333333-0.3434201388888920.0388368055555759
43105.39105.358246527778105.605416666667-0.2471701388888810.0317534722222206
44105.09105.049913194444105.244583333333-0.1946701388888930.0400868055555748
45104.94104.786579861111104.915833333333-0.1292534722222150.153420138888890
46104.75104.378559027778104.629166666667-0.2506076388888880.371440972222231
47104.38104.634288194444104.3766666666670.257621527777782-0.254288194444442
48103.65104.218871527778104.16250.0563715277777623-0.568871527777773
49103.49103.925850694444103.953333333333-0.027482638888892-0.43585069444444
50103.39104.226892361111103.7708333333330.456059027777779-0.836892361111126
51103.48103.834809027778103.6083333333330.226475694444448-0.35480902777779
52103.33103.535538194444103.4291666666670.106371527777774-0.205538194444429
53103.61103.325954861111103.236250.0897048611111150.284045138888899
54103.21102.707829861111103.05125-0.3434201388888920.5021701388889
55102.85102.623663194444102.870833333333-0.2471701388888810.226336805555562
56103.25102.470746527778102.665416666667-0.1946701388888930.779253472222223
57102.88102.295746527778102.425-0.1292534722222150.584253472222244
58102.51101.916475694444102.167083333333-0.2506076388888880.593524305555576
59101.99102.161788194444101.9041666666670.257621527777782-0.17178819444446
60101.6101.701371527778101.6450.0563715277777623-0.101371527777786
61101.21101.375434027778101.402916666667-0.027482638888892-0.165434027777792
62100.74101.597309027778101.141250.456059027777779-0.857309027777788
63100.36101.086475694444100.860.226475694444448-0.726475694444446
64100.26100.711371527778100.6050.106371527777774-0.451371527777752
65100.37100.474704861111100.3850.089704861111115-0.104704861111102
66100.2399.8461631944444100.189583333333-0.3434201388888920.383836805555561
67100.02NANA-0.247170138888881NA
6899.8NANA-0.194670138888893NA
6999.58NANA-0.129253472222215NA
7099.69NANA-0.250607638888888NA
7199.53NANA0.257621527777782NA
7299.37NANA0.0563715277777623NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/1rzxu1211896414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/1rzxu1211896414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/2nlev1211896414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/2nlev1211896414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/3p6kd1211896414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/3p6kd1211896414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/4kda11211896414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12118965148r7v2miovzu3wf1/4kda11211896414.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