Home » date » 2011 » Apr » 11 »

Opdracht6bis: autocorrelatie (eigen reeks) - Yesse De Ley

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 11 Apr 2011 21:16:33 +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/Apr/11/t1302556444x2ddr84jz0pcamp.htm/, Retrieved Mon, 11 Apr 2011 23:14:08 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101397 97994 94044 91159 87239 89235 118647 125620 125154 117529 109459 108483 107137 104699 100804 96066 91971 93228 120144 127233 127166 118194 109940 106683 102834 99882 96666 92540 88744 89321 115870 122401 122030 113802 105791 103076 98658 96945 92497 90687 88796 90015 113228 118711 117460 106556 97347 92657 93118 89037 83570 81693 75956 73993 97088 102394 96549 89727 82336 82653 82303 79596 74472 73562 66618 69029 89899 93774 90305 83799 80320 82497 84420 84646 84186 83269 77793 81145 101691 107357 104253 95963 91432 94324 93855 92183 87600 83641 78195 79604 100846 105293 102518 93132 87479 85476
 
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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8206418.04060
20.5249675.14361e-06
30.2910892.85210.002659
40.1894681.85640.033232
50.192431.88540.031199
60.2056282.01470.023365
70.182231.78550.038671
80.1586231.55420.061715
90.219872.15430.016861
100.3897923.81920.000119
110.6160926.03640
120.7396537.24710
130.5695365.58030
140.3007492.94670.002015
150.0887970.870.193226
16-0.005387-0.05280.479009
17-0.007811-0.07650.469578
18-0.001716-0.01680.493311
19-0.025082-0.24580.4032
20-0.04541-0.44490.328687
210.008610.08440.466473
220.1520281.48960.069809
230.3386993.31860.00064
240.4371354.2832.2e-05
250.2875042.8170.002943
260.0602950.59080.278032
27-0.114188-1.11880.133007
28-0.185626-1.81880.036033
29-0.180697-1.77050.039913
30-0.171124-1.67670.048431
31-0.191529-1.87660.031805
32-0.210273-2.06020.021041
33-0.161964-1.58690.05791
34-0.043227-0.42350.336424
350.1112711.09020.139172
360.187511.83720.034636
370.0608930.59660.276079
38-0.125255-1.22720.111366
39-0.258324-2.5310.006499
40-0.303622-2.97490.001854
41-0.289716-2.83860.002765
42-0.278834-2.7320.003747
43-0.303437-2.97310.001864
44-0.322527-3.16010.001055
45-0.284139-2.7840.003234
46-0.184068-1.80350.037224
47-0.052965-0.5190.302495
480.0188750.18490.426835
49-0.072903-0.71430.238388
50-0.206038-2.01880.023151
51-0.290717-2.84840.002688
52-0.3035-2.97370.00186
53-0.273978-2.68440.00428
54-0.251127-2.46050.00783
55-0.256672-2.51490.006785
56-0.260453-2.55190.006146
57-0.220852-2.16390.016477
58-0.137249-1.34480.090936
59-0.029279-0.28690.387412
600.0274910.26940.394115


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8206418.04060
2-0.454711-4.45521.1e-05
30.1449261.420.079427
40.1316561.290.100082
50.0761660.74630.228664
6-0.06543-0.64110.261498
7-0.003673-0.0360.485684
80.1218341.19370.117764
90.2912242.85340.002649
100.3036982.97560.00185
110.3578573.50630.000346
120.0399440.39140.348195
13-0.656723-6.43450
140.2173882.130.017866
15-0.057834-0.56670.286136
16-0.168087-1.64690.051423
17-0.10358-1.01490.156358
18-0.044454-0.43560.332068
190.003740.03660.485421
20-0.007556-0.0740.47057
21-0.013192-0.12930.448712
22-0.011051-0.10830.457
23-0.037508-0.36750.357026
240.0668350.65480.257066
25-0.093156-0.91270.181832
260.0796050.780.218666
27-0.02383-0.23350.407942
28-0.018393-0.18020.428681
29-0.014632-0.14340.443151
30-0.002527-0.02480.49015
31-0.066897-0.65550.256872
32-0.036069-0.35340.362281
33-0.007718-0.07560.46994
34-0.083527-0.81840.207578
35-0.015061-0.14760.441499
36-0.052419-0.51360.304358
370.0217320.21290.415915
38-0.028363-0.27790.390842
390.0261970.25670.398989
40-0.031708-0.31070.378361
41-0.026069-0.25540.399471
42-0.017955-0.17590.430364
43-0.073506-0.72020.236572
440.0240420.23560.407136
45-0.09616-0.94220.174235
460.009180.08990.464261
47-0.027367-0.26810.394582
480.0592110.58010.281588
49-0.001406-0.01380.494518
500.0419810.41130.340875
510.0136540.13380.446927
520.0312590.30630.380028
530.014630.14330.443158
540.0700930.68680.246941
550.0997280.97710.165481
56-0.044642-0.43740.331402
570.0056750.05560.477887
580.0062970.06170.475466
59-0.007313-0.07170.471514
60-0.073189-0.71710.237525
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/12u901302556591.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/12u901302556591.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/2t6qb1302556591.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/2t6qb1302556591.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/3l3df1302556591.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302556444x2ddr84jz0pcamp/3l3df1302556591.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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