Home » date » 2010 » Dec » 22 »

Decomposition - CPI

*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: Wed, 22 Dec 2010 08:29:22 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp.htm/, Retrieved Wed, 22 Dec 2010 09:28:07 +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/2010/Dec/22/t1293006480bujt37e5h8tbskp.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
97.06 97.73 98 97.76 97.48 97.77 97.96 98.22 98.51 98.19 98.37 98.31 98.6 98.96 99.11 99.64 100.02 99.98 100.32 100.44 100.51 101 100.88 100.55 100.82 101.5 102.15 102.39 102.54 102.85 103.47 103.56 103.69 103.49 103.47 103.45 103.48 103.93 103.89 104.4 104.79 104.77 105.13 105.26 104.96 104.75 105.01 105.15 105.2 105.77 105.78 106.26 106.13 106.12 106.57 106.44 106.54 107.1 108.1 108.4 108.84 109.62 110.42 110.67 111.66 112.28 112.87 112.18 112.36 112.16 111.49 111.25 111.36 111.74 111.1 111.33 111.25 111.04 110.97 111.31 111.02 111.07 111.36 111.54
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
197.06NANA-0.393142361111116NA
297.73NANA-0.0377256944444476NA
398NANA-0.060503472222226NA
497.76NANA0.136510416666664NA
597.48NANA0.240190972222227NA
697.77NANA0.166440972222223NA
797.9698.417899305555698.01083333333330.407065972222215-0.457899305555557
898.2298.300052083333398.126250.173802083333332-0.080052083333328
998.5198.287621527777898.223750.06387152777779110.222378472222246
1098.1998.246996527777898.3483333333333-0.101336805555551-0.0569965277777698
1198.3798.346302083333398.5325-0.1861979166666670.0236979166667055
1298.3198.321440972222298.7304166666667-0.408975694444444-0.0114409722222035
1398.698.527690972222298.9208333333333-0.3931423611111160.0723090277777771
1498.9699.073940972222299.1116666666667-0.0377256944444476-0.113940972222224
1599.1199.226996527777899.2875-0.060503472222226-0.116996527777786
1699.6499.624427083333399.48791666666670.1365104166666640.0155729166666703
17100.0299.949774305555599.70958333333330.2401909722222270.0702256944444599
1899.98100.07394097222299.90750.166440972222223-0.0939409722222138
19100.32100.500399305556100.0933333333330.407065972222215-0.180399305555540
20100.44100.46546875100.2916666666670.173802083333332-0.0254687499999875
21100.51100.588038194444100.5241666666670.0638715277777911-0.0780381944444173
22101100.664079861111100.765416666667-0.1013368055555510.335920138888895
23100.88100.798802083333100.985-0.1861979166666670.0811979166666674
24100.55100.800607638889101.209583333333-0.408975694444444-0.250607638888894
25100.82101.067274305556101.460416666667-0.393142361111116-0.247274305555564
26101.5101.683940972222101.721666666667-0.0377256944444476-0.183940972222217
27102.15101.923663194444101.984166666667-0.0605034722222260.226336805555562
28102.39102.356927083333102.2204166666670.1365104166666640.0330729166666828
29102.54102.672274305556102.4320833333330.240190972222227-0.132274305555541
30102.85102.827274305556102.6608333333330.1664409722222230.0227256944444463
31103.47103.299565972222102.89250.4070659722222150.170434027777773
32103.56103.278385416667103.1045833333330.1738020833333320.281614583333337
33103.69103.342204861111103.2783333333330.06387152777779110.347795138888884
34103.49103.333246527778103.434583333333-0.1013368055555510.156753472222206
35103.47103.425885416667103.612083333333-0.1861979166666670.0441145833333394
36103.45103.376857638889103.785833333333-0.4089756944444440.0731423611111239
37103.48103.541857638889103.935-0.393142361111116-0.0618576388888812
38103.93104.037274305556104.075-0.0377256944444476-0.107274305555549
39103.89104.138246527778104.19875-0.060503472222226-0.248246527777766
40104.4104.440677083333104.3041666666670.136510416666664-0.0406770833333354
41104.79104.661024305556104.4208333333330.2401909722222270.128975694444449
42104.77104.722274305556104.5558333333330.1664409722222230.047725694444452
43105.13105.105399305556104.6983333333330.4070659722222150.0246006944444446
44105.26105.02046875104.8466666666670.1738020833333320.239531250000013
45104.96105.065954861111105.0020833333330.0638715277777911-0.105954861111130
46104.75105.056996527778105.158333333333-0.101336805555551-0.306996527777770
47105.01105.10546875105.291666666667-0.186197916666667-0.0954687499999949
48105.15104.994774305556105.40375-0.4089756944444440.155225694444454
49105.2105.126857638889105.52-0.3931423611111160.0731423611111239
50105.77105.591440972222105.629166666667-0.03772569444444760.178559027777766
51105.78105.683663194444105.744166666667-0.0605034722222260.096336805555552
52106.26106.044427083333105.9079166666670.1365104166666640.215572916666673
53106.13106.374774305556106.1345833333330.240190972222227-0.244774305555552
54106.12106.565190972222106.398750.166440972222223-0.445190972222207
55106.57107.092899305556106.6858333333330.407065972222215-0.522899305555555
56106.44107.17171875106.9979166666670.173802083333332-0.731718749999999
57106.54107.415538194444107.3516666666670.0638715277777911-0.875538194444445
58107.1107.627413194444107.72875-0.101336805555551-0.527413194444449
59108.1107.95671875108.142916666667-0.1861979166666670.143281250000001
60108.4108.221024305556108.63-0.4089756944444440.178975694444460
61108.84108.756024305556109.149166666667-0.3931423611111160.0839756944444616
62109.62109.613107638889109.650833333333-0.03772569444444760.00689236111112734
63110.42110.071996527778110.1325-0.0605034722222260.348003472222217
64110.67110.72234375110.5858333333330.136510416666664-0.0523437500000057
65111.66111.178107638889110.9379166666670.2401909722222270.481892361111107
66112.28111.364357638889111.1979166666670.1664409722222230.915642361111111
67112.87111.828732638889111.4216666666670.4070659722222151.04126736111114
68112.18111.788802083333111.6150.1738020833333320.391197916666684
69112.36111.795538194444111.7316666666670.06387152777779110.564461805555553
70112.16111.686163194444111.7875-0.1013368055555510.473836805555564
71111.49111.61171875111.797916666667-0.186197916666667-0.121718749999999
72111.25111.320190972222111.729166666667-0.408975694444444-0.070190972222207
73111.36111.205190972222111.598333333333-0.3931423611111160.154809027777787
74111.74111.445190972222111.482916666667-0.03772569444444760.294809027777788
75111.1111.330329861111111.390833333333-0.060503472222226-0.230329861111102
76111.33111.42609375111.2895833333330.136510416666664-0.0960937500000085
77111.25111.478940972222111.238750.240190972222227-0.228940972222205
78111.04111.411857638889111.2454166666670.166440972222223-0.371857638888869
79110.97NANA0.407065972222215NA
80111.31NANA0.173802083333332NA
81111.02NANA0.0638715277777911NA
82111.07NANA-0.101336805555551NA
83111.36NANA-0.186197916666667NA
84111.54NANA-0.408975694444444NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/1qeqr1293006559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/1qeqr1293006559.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/2qeqr1293006559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/2qeqr1293006559.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/3j67t1293006559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/3j67t1293006559.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/4j67t1293006559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293006480bujt37e5h8tbskp/4j67t1293006559.ps (open in new window)


 
Parameters (Session):
par1 = kendall ;
 
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