Home » date » 2010 » Aug » 12 »

TIJDREEKS B - STAP 17

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 12 Aug 2010 12:58:17 +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/Aug/12/t1281617869qfppv2c8693zn81.htm/, Retrieved Thu, 12 Aug 2010 14:58:06 +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/2010/Aug/12/t1281617869qfppv2c8693zn81.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:
Schrauwen Nathalie
 
Dataseries X:
» Textbox « » Textfile « » CSV «
162 161 160 158 156 155 156 158 159 159 160 162 168 177 174 169 169 160 168 172 173 175 170 177 187 201 188 179 176 170 179 183 174 177 170 166 171 178 165 162 159 149 153 156 149 150 139 131 141 150 128 124 120 113 120 121 115 119 106 98 106 116 93 94 90 93 100 99 90 91 83 83 92 104 71 69 67 75 86 81 88 87 77 70
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9533418.73750
20.9140998.37790
30.8920728.1760
40.8727457.99880
50.8567947.85260
60.8413747.71130
70.8008477.33990
80.7559196.92810
90.7154296.5570
100.6735796.17350
110.6613486.06140
120.6423095.88690
130.5834945.34780
140.5283674.84263e-06
150.4878654.47141.2e-05
160.4465594.09284.9e-05
170.4151793.80520.000134
180.383253.51250.000359
190.3313573.03690.001592
200.2807962.57350.005911
210.2369972.17210.016333
220.1895251.7370.043024
230.1673441.53370.064427
240.1351111.23830.109525
250.0715860.65610.256776
260.0158710.14550.442348
27-0.021894-0.20070.420725
28-0.057446-0.52650.299962
29-0.084512-0.77460.220386
30-0.114383-1.04830.148746
31-0.160497-1.4710.072517
32-0.199973-1.83280.035189
33-0.232441-2.13040.018033
34-0.264945-2.42830.008653
35-0.274781-2.51840.006843
36-0.292197-2.6780.004453
37-0.331328-3.03670.001593
38-0.361737-3.31540.000676
39-0.378335-3.46750.000415
40-0.390172-3.5760.000291
41-0.395015-3.62040.000251
42-0.40331-3.69640.000194
43-0.42251-3.87240.000106
44-0.434729-3.98447.2e-05
45-0.439598-4.0296.1e-05
46-0.442572-4.05625.6e-05
47-0.430242-3.94328.3e-05
48-0.42566-3.90129.6e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9533418.73750
20.0574870.52690.299835
30.175211.60580.056032
40.0510620.4680.3205
50.0732960.67180.251786
60.0279240.25590.399316
7-0.265282-2.43130.008585
8-0.12059-1.10520.136108
9-0.099344-0.91050.182582
10-0.107033-0.9810.164712
110.3006732.75570.00359
12-0.033091-0.30330.38121
13-0.340019-3.11630.001253
14-0.027707-0.25390.400081
150.0294620.270.393901
16-0.020527-0.18810.425611
17-0.013636-0.1250.450419
18-0.047074-0.43140.333626
19-0.075176-0.6890.24636
20-0.009739-0.08930.464545
210.0761940.69830.243449
22-0.115631-1.05980.146142
230.0465010.42620.335531
24-0.08635-0.79140.215468
25-0.198741-1.82150.036046
26-0.007178-0.06580.47385
270.0737430.67590.250492
280.0518670.47540.317879
29-0.032329-0.29630.383867
30-0.032476-0.29760.383354
310.0002140.0020.499218
32-0.012019-0.11020.456274
330.0544160.49870.309637
34-0.090027-0.82510.205824
350.0007650.0070.497213
360.0180490.16540.434504
370.004290.03930.484366
380.0229850.21070.41683
39-0.017622-0.16150.436041
400.0482380.44210.329772
41-0.046352-0.42480.336024
42-0.02038-0.18680.426138
430.0568370.52090.301898
44-0.056086-0.5140.304288
450.082360.75480.226228
46-0.017774-0.16290.435493
47-0.022725-0.20830.417757
480.0135340.1240.450788
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/12/t1281617869qfppv2c8693zn81/1fx8q1281617895.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/12/t1281617869qfppv2c8693zn81/1fx8q1281617895.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/12/t1281617869qfppv2c8693zn81/2fx8q1281617895.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/12/t1281617869qfppv2c8693zn81/2fx8q1281617895.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; 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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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