Home » date » 2009 » May » 28 »

Opgave 9 - Aantal gebouwen - Christophe Morre

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 28 May 2009 08:48:41 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp.htm/, Retrieved Thu, 28 May 2009 16:50:20 +0200
 
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/May/28/t12435222152sm4pmh9jeih3tp.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 «
2194 2419 2742 2137 2710 2173 2363 2126 1905 2121 1983 1734 2074 2049 2406 2558 2251 2059 2397 1747 1707 2319 1631 1627 1791 2034 1997 2169 2028 2253 2218 1855 2187 1852 1570 1851 1954 1828 2251 2277 2085 2282 2266 1878 2267 2069 1746 2299 2360 2214 2825 2355 2333 3016 2155 2172 2150 2533 2058 2160 2260 2498 2695 2799 2945 2930 2318 2540 2570 2669 2450 2842 3440 2678 2981 2259 2844 2546 2456 2295 2379 2479 2057 2280 2351 2275 2543 2305 2188 2720 2398 2147 1898 2538 2081 2057 2497 2460 2195 2823 2100 2640 2342 2171 2482
 
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
12194NANA1.01111867619074NA
22419NANA0.97773079632636NA
32742NANA1.11063594195623NA
42137NANA1.05707892124478NA
52710NANA1.04259505968261NA
62173NANA1.11483795099515NA
723632261.015159669992212.251.022043240895011.04510577467552
821261996.627951917102191.833333333330.9109396784657131.06479527042516
919052047.353208882002162.416666666670.9467894141039750.93046963842661
1021212224.622450722482165.958333333331.027084601068420.953420208139665
1119831825.368231165942164.3750.843369670766821.08635614784058
1217342003.028631395112140.50.9357760483041840.865689073446879
1320742160.929130798982137.166666666671.011118676190740.959772336093762
1420492075.518786684962122.791666666670.977730796326360.987223056300388
1524062330.947183180642098.751.110635941956231.03219842017911
1625582218.544385962492098.751.057078921244781.15300825901224
1722512181.456396542572092.333333333331.042595059682611.03187943777728
1820592311.291330319412073.208333333331.114837950995150.890843994000295
1923972102.300361386002056.958333333331.022043240895011.14017960707561
2017471862.454128443092044.541666666670.9109396784657130.938009679443972
2117071919.023793711992026.8750.9467894141039750.889514765576786
2223192047.621537805021993.6251.027084601068421.13253350640465
2316311659.856933277951968.1250.843369670766820.98261480691534
2416271840.593505676971966.916666666670.9357760483041840.88395400450008
2517911989.418125350131967.541666666671.011118676190740.900263236359524
2620341920.833626949491964.583333333330.977730796326361.05891523943707
2719972209.147441546111989.083333333331.110635941956230.903968636245648
2821692103.190648681651989.6251.057078921244781.03129024530401
2920282051.436104307991967.6251.042595059682610.98857575712021
3022532201.154631077351974.416666666671.114837950995151.02355371503240
3122182034.419656136561990.541666666671.022043240895011.09023720514580
3218551811.631285548691988.750.9109396784657131.02393904035400
3321871884.821026127491990.750.9467894141039751.16032236996706
3418522060.16052897642005.833333333331.027084601068420.898959073310746
3515701697.457164432972012.708333333330.843369670766820.924912883162183
3618511886.797448061992016.291666666670.9357760483041840.981027402756581
3719542041.954166567202019.51.011118676190740.956926473665633
3818281977.419796786882022.458333333330.977730796326360.924436987517939
3922512250.981395359792026.751.110635941956231.00000826512393
4022772155.516055283272039.1251.057078921244781.05635956383575
4120852143.054145177592055.51.042595059682610.972910556036006
4222822320.535194996412081.51.114837950995150.983393832991844
4322662163.750711244822117.083333333331.022043240895011.04725557719002
4418781958.596220341152150.083333333330.9109396784657130.95885000721225
4522672073.547716005552190.083333333330.9467894141039751.09329531339029
4620692277.303331718952217.251.027084601068420.908530704356491
4717461881.417173868982230.833333333330.843369670766820.928023845136639
4822992125.849237735032271.750.9357760483041841.08145016080701
4923602323.255808272442297.708333333331.011118676190741.01581581829979
5022142253.995395797702305.333333333330.977730796326360.982255777508566
5128252568.576998261702312.708333333331.110635941956231.09983076306914
5223552459.998829556822327.166666666671.057078921244780.957317528652753
5323332460.003043321112359.51.042595059682610.94837281048659
5430162638.496268936492366.708333333331.114837950995151.14307533253237
5521552408.700407979322356.751.022043240895010.894673323781203
5621722153.840958092312364.416666666670.9109396784657131.00843100408109
5721502244.679902604842370.833333333330.9467894141039750.957820309927055
5825332448.484098563682383.916666666671.027084601068421.03451764358441
5920582047.631279815942427.916666666670.843369670766821.00506376332803
6021602292.495355670532449.833333333330.9357760483041840.942204744126175
6122602480.316242640732453.041666666671.011118676190740.911174132212203
6224982420.046676040462475.166666666670.977730796326361.03221149605556
6326952785.4749424262325081.110635941956230.967519024835519
6427992675.642929490752531.166666666671.057078921244781.0461037118031
6529452661.918953212972553.166666666671.042595059682611.10634472790591
6629302896.256093522832597.916666666671.114837950995151.01165087112035
6723182734.476691014612675.51.022043240895010.847694188660252
6825402488.839024848072732.166666666670.9109396784657131.02055616078065
6925702605.169972024932751.583333333330.9467894141039750.98649993190364
7026692815.2388915285327411.027084601068420.948054535631563
7124502289.151269281792714.291666666670.843369670766821.07026566259585
7228422521.058655468832694.083333333330.9357760483041841.12730419573339
7334402713.674007116592683.833333333331.011118676190741.26765410693349
7426782619.707452406942679.3750.977730796326361.02225154856108
7529812955.633624033442661.208333333331.110635941956231.00858238171345
7622592796.326106332872645.333333333331.057078921244780.807845692562116
7728442732.685092888932621.041666666671.042595059682611.04073462668667
7825462877.675461006242581.251.114837950995150.884741880903323
7924562567.841057613682512.458333333331.022043240895010.95644549054854
8022952232.067902980552450.291666666670.9109396784657131.02819452622181
8123792286.733132414632415.250.9467894141039751.04034876928903
8224792463.890367579712398.916666666671.027084601068421.00613242886904
8320572001.737913565052373.50.843369670766821.02760705388076
8422802202.270948346542353.416666666670.9357760483041841.03529495392555
8523512384.470618126822358.251.011118676190740.985963082173304
8622752297.341461101502349.666666666670.977730796326360.990275080357105
8725432580.516334637732323.458333333331.110635941956230.985461694570908
8823052437.491857525322305.8751.057078921244780.945644184567727
8921882407.699524493702309.333333333331.042595059682610.908751269725031
9027202565.288576821142301.041666666671.114837950995151.06030955915711
9123982348.485027036592297.833333333331.022043240895011.02108379333629
9221472105.750934233302311.6250.9109396784657131.01958876764394
9318982182.191801273982304.833333333330.9467894141039750.869767725683844
9425382374.534007286762311.916666666671.027084601068421.06884129358081
9520811964.910771274902329.833333333330.843369670766821.05908117071890
9620572173.651797535902322.833333333330.9357760483041840.946333723888922
972497NA2317.16666666667NANA
982460NA2315.83333333333NANA
992195NA2341.16666666667NANA
1002823NANANANA
1012100NANANANA
1022640NANANANA
1032342NANANANA
1042171NANANANA
1052482NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/1ojpn1243522118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/1ojpn1243522118.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/29zc31243522118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/29zc31243522118.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/3v8bg1243522118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/3v8bg1243522118.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/4xwtq1243522118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t12435222152sm4pmh9jeih3tp/4xwtq1243522118.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