Home » date » 2011 » May » 17 »

opdracht 9 - Eigen cijferreeks - Sophie Van Landeghem

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 17 May 2011 15:05:05 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3.htm/, Retrieved Tue, 17 May 2011 17:01:19 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
126.304 125.511 125.495 130.133 126.257 110.323 98.417 105.749 120.665 124.075 127.245 146.731 144.979 148.210 144.670 142.970 142.524 146.142 146.522 148.128 148.798 150.181 152.388 155.694 160.662 155.520 158.262 154.338 158.196 160.371 154.856 150.636 145.899 141.242 140.834 141.119 139.104 134.437 129.425 123.155 119.273 120.472 121.523 121.983 123.658 124.794 124.827 120.382 117.395 115.790 114.283 117.271 117.448 118.764 120.550 123.554 125.412 124.182 119.828 115.361 114.226 115.214 115.864 114.276 113.469 114.883 114.172 111.225 112.149 115.618 118.002 121.382 120.663
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1126.304NANA3.37157708333334NA
2125.511NANA1.75565208333334NA
3125.495NANA0.447585416666668NA
4130.133NANA-1.50977291666667NA
5126.257NANA-1.58227291666667NA
6110.323NANA0.650393750000002NA
798.417123.482677083333123.0202083333330.46246874999999-25.0656770833333
8105.749121.214435416667124.744125-3.52968958333333-15.4654354166667
9120.665124.48901875126.488875-1.99985624999999-3.82401875000001
10124.075128.26266875127.8227083333330.439960416666667-4.18766875000001
11127.245129.867410416667129.0353750.832035416666663-2.62241041666668
12146.731131.86754375131.2056250.66191874999999714.86345625
13144.979138.074035416667134.7024583333333.371577083333346.90496458333334
14148.21140.228277083333138.4726251.755652083333347.98172291666668
15144.67141.858210416667141.4106250.4475854166666682.81178958333334
16142.97142.160810416667143.670583333333-1.509772916666670.809189583333335
17142.524144.223685416667145.805958333333-1.58227291666667-1.69968541666665
18146.142147.877435416667147.2270416666670.650393750000002-1.73543541666666
19146.522148.716427083333148.2539583333330.46246874999999-2.19442708333335
20148.128145.682310416667149.212-3.529689583333332.44568958333329
21148.798148.083060416667150.082916666667-1.999856249999990.714939583333347
22150.181151.562877083333151.1229166666670.439960416666667-1.38187708333336
23152.388153.08161875152.2495833333330.832035416666663-0.693618749999985
24155.694154.157377083333153.4954583333330.6619187499999971.53662291666669
25160.662157.807160416667154.4355833333333.371577083333342.85483958333336
26155.52156.642985416667154.8873333333331.75565208333334-1.12298541666664
27158.262155.318627083333154.8710416666670.4475854166666682.94337291666665
28154.338152.86801875154.377791666667-1.509772916666671.46998124999996
29158.196151.94164375153.523916666667-1.582272916666676.25435625
30160.371153.085602083333152.4352083333330.6503937500000027.28539791666668
31154.856151.392135416667150.9296666666670.462468749999993.4638645833333
32150.636145.62326875149.152958333333-3.529689583333335.01273125
33145.899145.073102083333147.072958333333-1.999856249999990.825897916666662
34141.242145.012085416667144.5721250.439960416666667-3.77008541666666
35140.834142.483077083333141.6510416666670.832035416666663-1.64907708333331
36141.119139.028710416667138.3667916666670.6619187499999972.09028958333334
37139.104138.687035416667135.3154583333333.371577083333340.416964583333339
38134.437134.488360416667132.7327083333331.75565208333334-0.0513604166666539
39129.425131.059710416667130.6121250.447585416666668-1.63471041666665
40123.155127.490310416667129.000083333333-1.50977291666667-4.33531041666666
41119.273126.06551875127.647791666667-1.58227291666667-6.79251875
42120.472126.767185416667126.1167916666670.650393750000002-6.29518541666668
43121.523124.810677083333124.3482083333330.46246874999999-3.28767708333334
44121.983119.13701875122.666708333333-3.529689583333332.84598125000002
45123.658119.258977083333121.258833333333-1.999856249999994.39902291666667
46124.794120.822710416667120.382750.4399604166666673.97128958333336
47124.827120.893577083333120.0615416666670.8320354166666633.93342291666666
48120.382120.576252083333119.9143333333330.661918749999997-0.194252083333325
49117.395123.174202083333119.8026253.37157708333334-5.77920208333333
50115.79121.58319375119.8275416666671.75565208333334-5.79319375
51114.283120.41366875119.9660833333330.447585416666668-6.13066875000001
52117.271118.50389375120.013666666667-1.50977291666667-1.23289374999999
53117.448118.197602083333119.779875-1.58227291666667-0.749602083333329
54118.764120.01276875119.3623750.650393750000002-1.24876875
55120.55119.48359375119.0211250.462468749999991.06640625000003
56123.554115.33539375118.865083333333-3.529689583333338.21860625000001
57125.412116.907102083333118.906958333333-1.999856249999998.50489791666666
58124.182119.288002083333118.8480416666670.4399604166666674.89399791666666
59119.828119.38949375118.5574583333330.8320354166666630.438506250000003
60115.361118.891877083333118.2299583333330.661918749999997-3.53087708333332
61114.226121.174077083333117.80253.37157708333334-6.94807708333333
62115.214118.77869375117.0230416666671.75565208333334-3.56469375
63115.864116.40429375115.9567083333330.447585416666668-0.540293749999975
64114.276113.537477083333115.04725-1.509772916666670.738522916666668
65113.469113.032060416667114.614333333333-1.582272916666670.436939583333327
66114.883115.43951875114.7891250.650393750000002-0.556518750000009
67114.172115.770677083333115.3082083333330.46246874999999-1.5986770833333
68111.225NANA-3.52968958333333NA
69112.149NANA-1.99985624999999NA
70115.618NANA0.439960416666667NA
71118.002NANA0.832035416666663NA
72121.382NANA0.661918749999997NA
73120.663NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/1v6yz1305644703.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/1v6yz1305644703.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/2n6bo1305644703.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/2n6bo1305644703.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/3fcnt1305644703.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/3fcnt1305644703.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/4vtj61305644703.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644474z2csgwj6dywkik3/4vtj61305644703.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