Home » date » 2010 » Dec » 16 »

*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: Thu, 16 Dec 2010 18:20: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/2010/Dec/16/t12925235140l38ck1ddctcgzk.htm/, Retrieved Thu, 16 Dec 2010 19:18:35 +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/16/t12925235140l38ck1ddctcgzk.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 «
1775 2197 2920 4240 5415 6136 6719 6234 7152 3646 2165 2803 1615 2350 3350 3536 5834 6767 5993 7276 5641 3477 2247 2466 1567 2237 2598 3729 5715 5776 5852 6878 5488 3583 2054 2282 1552 2261 2446 3519 5161 5085 5711 6057 5224 3363 1899 2115 1491 2061 2419 3430 4778 4862 6176 5664 5529 3418 1941 2402 1579 2146 2462 3695 4831 5134 6250 5760 6249 2917 1741 2359 1511 2059 2635 2867 4403 5720 4502 5749 5627 2846 1762 2429 1169 2154 2249 2687 4359 5382 4459 6398 4596 3024 1887 2070 1351 2218 2461 3028 4784 4975 4607 6249 4809 3157 1910 2228 1594 2467 2222 3607 4685 4962 5770 5480 5000 3228 1993 2288 1588 2105 2191 3591 4668 4885 5822 5599 5340 3082 2010 2301
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.267951-2.93530.001997
20.1735171.90080.029865
30.3128663.42730.000418
4-0.146369-1.60340.055738
50.18462.02220.02269
60.1902512.08410.019637
7-0.174742-1.91420.028988
80.1148261.25790.105444
90.2287142.50540.006785
10-0.155867-1.70740.045163
110.1477251.61820.054117
120.000260.00290.498864
13-0.204691-2.24230.01339
140.2743823.00570.001614
15-0.105528-1.1560.124989
16-0.114803-1.25760.105489
170.111341.21970.112491
18-0.053778-0.58910.27845
19-0.136572-1.49610.068631
200.0830520.90980.182379
21-0.072389-0.7930.214676
22-0.225909-2.47470.007366
230.2575272.82110.002802
24-0.252359-2.76450.003301
25-0.07406-0.81130.209403
260.0604790.66250.254457
27-0.138834-1.52080.065465
28-0.032848-0.35980.359803
290.0298210.32670.372241
30-0.120622-1.32130.09445
310.0024890.02730.489147
320.0967891.06030.145576
33-0.12767-1.39860.082263
34-0.021295-0.23330.407973
350.1571431.72140.043876
36-0.267321-2.92840.002039
370.2734482.99550.001665
38-0.095191-1.04280.149576
39-0.098241-1.07620.142004
400.1542491.68970.046839
410.0045240.04960.480281
42-0.063039-0.69060.245588
430.1040391.13970.128343
440.0265830.29120.385699
45-0.038073-0.41710.338685
460.1926782.11070.018438
47-0.01245-0.13640.445872
48-0.077238-0.84610.199591


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.267951-2.93530.001997
20.1095871.20050.116162
30.4183274.58256e-06
40.024290.26610.395315
50.01360.1490.44091
60.1856032.03320.02212
7-0.086203-0.94430.173457
8-0.151796-1.66280.049477
90.2424072.65540.004498
100.0853840.93530.175748
11-0.090524-0.99160.161685
12-0.120803-1.32330.094121
13-0.175479-1.92230.028471
140.1249891.36920.086749
150.0630940.69120.245401
16-0.077592-0.850.198516
17-0.088147-0.96560.168094
180.0737230.80760.21046
19-0.140122-1.5350.063713
20-0.17074-1.87040.031935
210.180941.98210.024877
22-0.061777-0.67670.249938
230.0130390.14280.443329
24-0.076283-0.83560.202509
25-0.098773-1.0820.140711
26-0.094766-1.03810.150654
270.1473851.61450.054521
280.0343850.37670.353543
29-0.080392-0.88070.190132
300.0607720.66570.253431
310.052450.57460.283333
32-0.050571-0.5540.290313
330.0576750.63180.264361
34-0.040914-0.44820.327413
350.1364091.49430.068864
36-0.121854-1.33480.092227
370.0563520.61730.269102
38-0.037282-0.40840.341854
390.0039150.04290.482933
40-0.017076-0.18710.425965
410.0386010.42280.336581
420.0615330.67410.250785
43-0.043617-0.47780.316831
440.0026670.02920.488369
450.1200291.31490.095533
46-0.012914-0.14150.443868
470.0696980.76350.22333
48-0.104444-1.14410.127424
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925235140l38ck1ddctcgzk/15nne1292523630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925235140l38ck1ddctcgzk/15nne1292523630.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925235140l38ck1ddctcgzk/25nne1292523630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925235140l38ck1ddctcgzk/25nne1292523630.ps (open in new window)


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