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:54:20 +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/t1289987570qos2vwnijpsh15m.htm/, Retrieved Wed, 17 Nov 2010 10:52:52 +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/t1289987570qos2vwnijpsh15m.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1552 2081 1500 1437 1470 1849 1387 1592 1590 1798 1935 1887 2027 2080 1556 1682 1785 1869 1781 2082 2571 1862 1938 1505 1767 1607 1578 1495 1615 1700 1337 1531 1623 1543 1640 1524 1429 1827 1603 1351 1267 1742 1384 1392 1649 1665 1526 1717 1391 1790 1472 1350 1704 1391 1190 1351 1160 1236 1444 1257 1193 1701 1428 1611 1431 1472 1240 1276 1467 1603 2014 2463 2510
 
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
1-0.361332-3.0660.001527
2-0.014963-0.1270.44966
30.0466010.39540.346849
40.0789420.66980.252549
5-0.162768-1.38110.085755
6-0.010793-0.09160.463642
7-0.063215-0.53640.29667
80.10390.88160.190458
90.0963710.81770.208104
10-0.087023-0.73840.231332
11-0.036491-0.30960.378864
120.2022181.71590.045242
13-0.125858-1.06790.144557
14-0.075623-0.64170.261558
150.1020340.86580.194741
16-0.072821-0.61790.269294
170.0293330.24890.402073
18-0.070107-0.59490.276894
190.0833260.7070.24091
20-0.11679-0.9910.162503
210.1572391.33420.093168
22-0.150883-1.28030.102277
23-0.077764-0.65980.255728
240.1492551.26650.104714
250.0029510.0250.490046
26-0.071704-0.60840.272408
270.0868090.73660.23188
28-0.000218-0.00180.499265
29-0.017392-0.14760.441546
300.0420750.3570.361062
31-0.143432-1.21710.113778
320.0939290.7970.214031
330.020660.17530.430665
340.0047440.04030.484001
35-0.158976-1.3490.090789
360.1495861.26930.104214
370.0222270.18860.425467
38-0.127414-1.08110.14162
390.0474150.40230.344318
400.0224130.19020.424851
41-0.038534-0.3270.372318
420.0254810.21620.414716
43-0.006866-0.05830.476851
440.0048920.04150.483501
45-0.005725-0.04860.480695
46-0.007787-0.06610.47375
47-0.14823-1.25780.106268
480.0976730.82880.204984


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.361332-3.0660.001527
2-0.167377-1.42020.079927
3-0.02389-0.20270.419966
40.1035970.8790.191149
5-0.100775-0.85510.197665
6-0.122483-1.03930.151071
7-0.173065-1.46850.073161
80.0191810.16280.435585
90.2100751.78250.039438
100.0575480.48830.313407
11-0.091501-0.77640.220025
120.0963670.81770.208112
13-0.002209-0.01870.492549
14-0.041316-0.35060.363464
150.0792550.67250.25171
16-0.057954-0.49180.312193
170.0061320.0520.479324
18-0.092058-0.78110.218641
190.044920.38120.352103
20-0.113837-0.96590.168654
210.0496470.42130.337408
22-0.049287-0.41820.338519
23-0.208868-1.77230.040287
240.0107660.09130.463734
250.0931560.79050.215928
260.0672950.5710.284883
270.0457920.38860.349376
28-0.007691-0.06530.474073
29-0.03704-0.31430.377102
300.0868650.73710.231736
31-0.062356-0.52910.29918
320.0951750.80760.210995
33-0.008607-0.0730.47099
340.0417150.3540.3622
35-0.114435-0.9710.167396
36-0.117831-0.99980.160371
370.1009320.85640.197298
38-0.091485-0.77630.220065
390.0050830.04310.482858
40-0.057879-0.49110.312419
41-0.082409-0.69930.243319
420.0031620.02680.489334
430.0804170.68240.2486
440.0613660.52070.302083
45-0.085043-0.72160.236435
46-0.072287-0.61340.270781
47-0.136188-1.15560.125833
480.0006960.00590.497653
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289987570qos2vwnijpsh15m/11pi21289987658.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289987570qos2vwnijpsh15m/11pi21289987658.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/17/t1289987570qos2vwnijpsh15m/21pi21289987658.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1289987570qos2vwnijpsh15m/21pi21289987658.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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