Home » date » 2010 » Nov » 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: Wed, 17 Nov 2010 09:38:12 +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/Nov/17/t1289986643zmk7jg4ti3ewg5a.htm/, Retrieved Wed, 17 Nov 2010 10:37:25 +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/Nov/17/t1289986643zmk7jg4ti3ewg5a.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:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698
 
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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4995384.23873.3e-05
20.2940862.49540.007437
30.1860061.57830.059439
4-0.025916-0.21990.413283
5-0.117689-0.99860.16066
6-0.219519-1.86270.033294
7-0.186776-1.58480.058692
8-0.100033-0.84880.199402
90.0287850.24420.403868
100.0730490.61980.26866
110.2349241.99340.025004
120.6432675.45830
130.2766412.34740.010829
140.1331651.12990.131125
150.0782980.66440.254283
16-0.092697-0.78660.217061
17-0.124197-1.05380.147738
18-0.205911-1.74720.042432
19-0.200215-1.69890.04683
20-0.093638-0.79450.214744
21-0.010596-0.08990.464304
220.053930.45760.324306
230.234881.9930.025025
240.5403064.58469e-06
250.256742.17850.016322
260.1230121.04380.150037
270.0211490.17950.429042
28-0.115572-0.98070.165021
29-0.138651-1.17650.121637
30-0.231081-1.96080.026887
31-0.210914-1.78970.038857
32-0.114261-0.96950.167761
33-0.071502-0.60670.272975
34-0.041658-0.35350.362382
350.0741010.62880.265746
360.3028742.570.00612
370.1024320.86920.193823
380.0261950.22230.412367
39-0.054585-0.46320.32232
40-0.14598-1.23870.109743
41-0.145596-1.23540.110345
42-0.237249-2.01310.023921
43-0.205485-1.74360.042748
44-0.145312-1.2330.110791
45-0.108272-0.91870.180654
46-0.045215-0.38370.351179
470.0376910.31980.375017
480.2249491.90880.03014


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4995384.23873.3e-05
20.0593610.50370.308008
30.0242930.20610.418634
4-0.186365-1.58140.059089
5-0.077256-0.65550.257105
6-0.143315-1.21610.113966
70.0301590.25590.399376
80.0568640.48250.315454
90.1391271.18050.120837
10-0.008644-0.07330.470867
110.1946551.65170.051475
120.5964925.06142e-06
13-0.512861-4.35182.2e-05
14-0.129969-1.10280.136887
150.0360150.30560.380397
160.0427950.36310.358787
170.0092440.07840.468848
180.0511440.4340.332805
19-0.040168-0.34080.36711
200.0081340.0690.472584
210.0054670.04640.481566
220.1888051.60210.05676
230.1413151.19910.117211
24-0.110135-0.93450.176578
25-0.068624-0.58230.281095
26-0.029649-0.25160.40104
27-0.15843-1.34430.091532
280.1230011.04370.150058
290.0304320.25820.398484
30-0.079591-0.67540.250807
310.059770.50720.306794
32-0.044999-0.38180.351856
33-0.018395-0.15610.4382
34-0.117067-0.99330.161934
35-0.217087-1.8420.034793
360.0428140.36330.358726
370.0247920.21040.416987
380.0432740.36720.357278
390.0918350.77920.219194
40-0.149853-1.27150.103814
41-0.107575-0.91280.182196
420.0394750.3350.369316
43-0.016756-0.14220.443668
44-0.065404-0.5550.290318
450.0106980.09080.463961
460.0058010.04920.48044
47-0.003448-0.02930.488372
48-0.035739-0.30330.381285
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289986643zmk7jg4ti3ewg5a/1rwp61289986690.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289986643zmk7jg4ti3ewg5a/1rwp61289986690.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/17/t1289986643zmk7jg4ti3ewg5a/2rwp61289986690.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289986643zmk7jg4ti3ewg5a/2rwp61289986690.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