Home » date » 2010 » Dec » 13 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 13 Dec 2010 09:19:49 +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/Dec/13/t1292231904ztks9401q4e3gg8.htm/, Retrieved Mon, 13 Dec 2010 10:20:53 +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/Dec/13/t1292231904ztks9401q4e3gg8.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
113 95,4 86,2 111,7 97,5 99,7 111,5 91,8 86,3 88,7 95,1 105,1 104,5 89,1 82,6 102,7 91,8 94,1 103,1 93,2 91 94,3 99,4 115,7 116,8 99,8 96 115,9 109,1 117,3 109,8 112,8 110,7 100 113,3 122,4 112,5 104,2 92,5 117,2 109,3 106,1 118,8 105,3 106 102 112,9 116,5 114,8 100,5 85,4 114,6 109,9 100,7 115,5 100,7 99 102,3
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3115482.37270.010498
20.041910.31920.375368
30.2248191.71220.046104
40.1591331.21190.115229
50.3794382.88970.002708
60.4095463.1190.001412
70.2949222.24610.014262
80.1248510.95080.172816
9-0.001647-0.01250.495016
10-0.086591-0.65950.256106
110.1026860.7820.218688
120.4720313.59490.000335
130.0335940.25580.399488
14-0.228572-1.74080.043515
15-0.134922-1.02750.154218
16-0.111397-0.84840.199859
170.0465380.35440.362155
180.019180.14610.442185
19-0.033869-0.25790.398684
20-0.143693-1.09430.139167
21-0.25876-1.97070.026771
22-0.263023-2.00310.024922
23-0.094248-0.71780.23789
240.132971.01270.157713
25-0.123203-0.93830.175995
26-0.325034-2.47540.008126
27-0.238877-1.81920.03702
28-0.139093-1.05930.146927
29-0.049458-0.37670.353899
30-0.053184-0.4050.34347
31-0.049964-0.38050.352475
32-0.185478-1.41260.081565
33-0.170198-1.29620.100022
34-0.153414-1.16840.12372
35-0.102391-0.77980.219344
360.1464911.11560.134589
37-0.063956-0.48710.314019
38-0.209496-1.59550.058021
39-0.055694-0.42420.336511
40-0.07096-0.54040.295491
41-0.002877-0.02190.491296
420.0591830.45070.326934
430.0040040.03050.487888
44-0.087582-0.6670.253707
45-0.039995-0.30460.380883
46-0.036288-0.27640.391627
47-0.032215-0.24530.403528
480.1287860.98080.165382


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3115482.37270.010498
2-0.061081-0.46520.321774
30.2556711.94710.028183
40.0092180.07020.472138
50.408833.11360.001435
60.1828191.39230.084572
70.2636322.00780.024667
8-0.10971-0.83550.203425
9-0.120972-0.92130.180357
10-0.479683-3.65320.000279
11-0.136586-1.04020.151279
120.2949452.24620.014256
13-0.196605-1.49730.069869
14-0.104869-0.79870.213873
15-0.194308-1.47980.072168
160.1662221.26590.105304
17-0.023375-0.1780.429664
180.0106830.08140.467717
19-0.012731-0.0970.461548
200.0375860.28620.387854
210.0605150.46090.323309
22-0.059396-0.45230.326353
23-0.015369-0.1170.453613
24-0.120293-0.91610.181697
25-0.00759-0.05780.477051
26-0.103515-0.78830.216853
270.013210.10060.460105
280.0109090.08310.467037
29-0.016028-0.12210.451636
300.0756560.57620.283361
310.0477730.36380.358654
32-0.067814-0.51650.303751
330.1191420.90740.183986
34-0.060601-0.46150.323076
35-0.101768-0.7750.220732
36-0.052226-0.39770.34614
37-0.105087-0.80030.213396
380.0246640.18780.425832
390.0549550.41850.338554
40-0.078641-0.59890.275783
41-0.026416-0.20120.42063
420.094710.72130.236815
430.0268480.20450.419351
44-0.00199-0.01520.493981
45-0.043047-0.32780.372108
460.0064110.04880.480614
47-0.041914-0.31920.375357
48-0.099252-0.75590.22639
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292231904ztks9401q4e3gg8/16wm81292231976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292231904ztks9401q4e3gg8/16wm81292231976.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292231904ztks9401q4e3gg8/26wm81292231976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292231904ztks9401q4e3gg8/26wm81292231976.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