Home » date » 2009 » Dec » 03 »

*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, 03 Dec 2009 09:14:25 -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/Dec/03/t1259857024f8mlvhxq2199yhn.htm/, Retrieved Thu, 03 Dec 2009 17:17:07 +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/Dec/03/t1259857024f8mlvhxq2199yhn.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 «
8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7 7.1 7.2 7.1 6.9 7 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 7.9 7.7 7.4 7.5 8 8.1 8
 
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
10.4963393.43870.000609
2-0.061079-0.42320.337031
3-0.482081-3.340.000814
4-0.45395-3.14510.001424
5-0.122351-0.84770.200414
60.2421971.6780.049925
70.2957612.04910.02297
80.1412330.97850.166369
9-0.115029-0.79690.214704
10-0.199037-1.3790.087149
11-0.125819-0.87170.193856
12-0.06763-0.46860.320754
130.0512520.35510.36204
140.1048170.72620.235623
150.0306360.21230.416405
16-0.125626-0.87040.194217
17-0.184778-1.28020.103317
18-0.06185-0.42850.335099
190.1055880.73150.234005
200.2851641.97570.026978
210.2682081.85820.03464
220.0408480.2830.389196
23-0.266281-1.84490.035617
24-0.356647-2.47090.008539
25-0.166089-1.15070.127779
260.0730250.50590.30761
270.173411.20140.117741
280.1252410.86770.19494
290.0100190.06940.472474
30-0.162428-1.12530.133022
31-0.133141-0.92240.18046
32-0.08131-0.56330.287915
330.0156070.10810.457172
340.0125240.08680.465608
350.0574180.39780.346269
360.041040.28430.388688
370.0194610.13480.446656
380.0146440.10150.459807
390.0312140.21630.414852
400.0472060.32710.372525
410.053950.37380.355108
420.0034680.0240.490465
43-0.013487-0.09340.46297
44-0.039114-0.2710.393781
45-0.049133-0.34040.367519
460.005010.03470.486228
470.021580.14950.440889
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4963393.43870.000609
2-0.407925-2.82620.003423
3-0.377133-2.61290.005977
4-0.023873-0.16540.434662
50.0729580.50550.307772
60.0794130.55020.292371
7-0.109396-0.75790.226102
8-0.001945-0.01350.494652
9-0.038959-0.26990.394191
100.0413060.28620.387987
11-0.007024-0.04870.480693
12-0.205495-1.42370.080499
130.0731210.50660.307379
140.0532530.36890.356895
15-0.130767-0.9060.184737
16-0.218064-1.51080.068699
17-0.031353-0.21720.414478
180.1767531.22460.113355
19-0.016649-0.11530.454326
200.122660.84980.199824
210.0482110.3340.36991
22-0.021997-0.15240.439756
23-0.106424-0.73730.232257
24-0.080991-0.56110.288663
250.0557310.38610.350558
26-0.131152-0.90860.184037
27-0.141471-0.98010.165965
28-0.062694-0.43440.332989
290.0773810.53610.29718
30-0.123762-0.85740.197729
31-0.022583-0.15650.438163
32-0.089394-0.61930.269312
330.0091910.06370.474746
34-0.070935-0.49150.312673
350.0026230.01820.492789
36-0.047172-0.32680.372612
370.0065470.04540.482006
380.0887710.6150.270723
39-0.108011-0.74830.228959
40-0.061538-0.42630.335881
410.0765070.53010.299258
42-0.053501-0.37070.35626
430.0305250.21150.416703
440.0102840.07120.471747
450.0157240.10890.456854
46-0.049221-0.3410.367292
47-0.084922-0.58840.279525
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259857024f8mlvhxq2199yhn/1psnu1259856864.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259857024f8mlvhxq2199yhn/1psnu1259856864.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259857024f8mlvhxq2199yhn/2elej1259856864.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259857024f8mlvhxq2199yhn/2elej1259856864.ps (open in new window)


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