Home » date » 2009 » Nov » 30 »

*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, 30 Nov 2009 10:42:15 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/30/t1259602999e26b84iprunmxsl.htm/, Retrieved Mon, 30 Nov 2009 18:43:22 +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/2009/Nov/30/t1259602999e26b84iprunmxsl.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2 2.7 2.1 1.9 0.6 0.7 -0.2 -1 -1.7 -0.7 -1
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1739821.43470.07798
20.1349291.11270.134887
30.1824361.50440.068553
40.2760222.27610.012996
50.0372630.30730.379785
60.0622810.51360.304605
70.0604780.49870.309796
8-0.025453-0.20990.417191
9-0.180185-1.48580.070972
10-0.087832-0.72430.23569
110.0525990.43370.332924
12-0.443573-3.65780.000249
13-0.22298-1.83870.03516
14-0.079751-0.65760.256494
150.0063050.0520.479344
16-0.172815-1.42510.079355
17-0.119611-0.98630.163732
18-0.039219-0.32340.373689
190.0051560.04250.483104
20-0.102364-0.84410.200782
210.0065480.0540.478549
220.0863070.71170.239541
23-0.052099-0.42960.334415
24-0.033945-0.27990.390195
250.1060520.87450.192454
260.0513070.42310.336782
27-0.062277-0.51350.304616
280.0363730.29990.382568
290.055460.45730.324443
300.0493590.4070.342633
31-0.043401-0.35790.360765
320.0534160.44050.330493
330.093060.76740.222751
34-0.000133-0.00110.499563
35-0.066706-0.55010.292036
360.0975470.80440.211988
37-0.003877-0.0320.487296
38-0.020173-0.16640.434187
390.0281010.23170.408724
400.0318950.2630.396668
41-0.010489-0.08650.465663
42-0.03175-0.26180.397127
430.0545390.44970.327163
440.0540690.44590.328556
45-0.057483-0.4740.318503
46-0.060519-0.49910.309677
470.0537910.44360.329381
48-0.037804-0.31170.378096
49-0.01222-0.10080.460016
500.0570770.47070.319691
51-0.063604-0.52450.300822
52-0.060242-0.49680.310476
53-0.020165-0.16630.434213
54-0.024734-0.2040.419498
55-0.079179-0.65290.258003
56-0.070986-0.58540.280118
57-0.025112-0.20710.418284
580.0099680.08220.467366
59-0.049475-0.4080.342285
60-0.007665-0.06320.474893


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1739821.43470.07798
20.1079260.890.188306
30.1489071.22790.111856
40.2275841.87670.032425
5-0.066566-0.54890.292429
6-0.005312-0.04380.482596
7-0.01873-0.15440.438857
8-0.104074-0.85820.196894
9-0.190375-1.56990.060544
10-0.066537-0.54870.292512
110.1242841.02490.154528
12-0.439521-3.62440.000277
13-0.035066-0.28920.386667
140.0612740.50530.307498
150.1354281.11680.134013
160.0780890.64390.260892
17-0.093751-0.77310.221074
180.0079190.06530.474062
190.0305590.2520.400901
20-0.066232-0.54620.293371
21-0.116395-0.95980.170274
220.0106170.08760.465245
230.0557770.45990.323511
24-0.216288-1.78360.039479
250.0309830.25550.399558
26-0.014929-0.12310.451194
270.0453440.37390.354816
280.1219251.00540.15913
29-0.112614-0.92860.17818
300.0371180.30610.380237
310.0177050.1460.442176
320.0045510.03750.485088
330.0002110.00170.499308
34-0.002902-0.02390.49049
35-0.053032-0.43730.331636
36-0.044999-0.37110.355869
37-0.00803-0.06620.473698
38-0.022096-0.18220.42798
390.0739120.60950.272114
400.0561160.46270.322512
41-0.069236-0.57090.284964
420.0471210.38860.349403
430.0635510.52410.300972
440.0198060.16330.435373
45-0.025082-0.20680.41838
46-0.049925-0.41170.340931
47-0.062638-0.51650.303582
48-0.038364-0.31640.376349
490.0340230.28060.389948
500.0978050.80650.211376
51-0.098709-0.8140.209251
52-0.00301-0.02480.490136
53-0.010355-0.08540.466101
54-0.052409-0.43220.33349
55-0.030781-0.25380.400198
560.0144310.1190.452813
570.0422190.34810.364402
58-0.03811-0.31430.377143
59-0.024213-0.19970.42117
600.0021990.01810.492793
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/30/t1259602999e26b84iprunmxsl/1ncad1259602927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/30/t1259602999e26b84iprunmxsl/1ncad1259602927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/30/t1259602999e26b84iprunmxsl/2xf4b1259602927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/30/t1259602999e26b84iprunmxsl/2xf4b1259602927.ps (open in new window)


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