Home » date » 2008 » Dec » 09 »

AutoCorrelation Function

*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: Tue, 09 Dec 2008 13:05:54 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/09/t122885325949v6hm13g2xw505.htm/, Retrieved Tue, 09 Dec 2008 20:07:42 +0000
 
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/2008/Dec/09/t122885325949v6hm13g2xw505.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,7 5,7 5,6 5,8 5,6 5,6 5,6 5,5 5,4 5,4 5,5 5,4 5,4 5,2 5,4 5,2 5,1 5,1 5,0 5,0 4,9 5,1 5,0 5,0 4,8 4,7 4,7 4,7 4,7 4,7 4,6 4,7 4,7 4,5 4,4 4,5 4,4 4,6 4,5 4,4 4,5 4,5 4,6 4,7 4,7 4,7 4,8 4,7 5,0 4,9 4,8 5,1 5,0 5,5 5,5 5,7 6,1 6,1 6,5 6,7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.250269-1.92230.029697
20.2401591.84470.035051
30.199131.52950.065737
4-0.127893-0.98240.164966
50.3930593.01910.00187
60.019990.15350.439246
70.0541810.41620.339397
80.1245390.95660.171335
90.0850940.65360.257949
10-0.032404-0.24890.402151
110.3209542.46530.008309
12-0.122925-0.94420.174457
130.0301070.23130.408959
140.1484761.14050.12935
15-0.158144-1.21470.114655
160.2580331.9820.026072
17-0.080613-0.61920.269085
180.0123070.09450.462503
19-0.052991-0.4070.342728
20-0.083254-0.63950.262491
210.0586220.45030.327079
22-0.062864-0.48290.315489
23-0.015511-0.11910.452784
24-0.14165-1.0880.140503
250.0202980.15590.438319
26-0.069863-0.53660.296771
27-0.003477-0.02670.489392
28-0.062046-0.47660.317709
29-0.120246-0.92360.179722
30-0.013027-0.10010.460316
31-0.138263-1.0620.146278
320.0931160.71520.238641
33-0.227077-1.74420.043165
340.094590.72660.235184
35-0.136251-1.04660.149785
36-0.100083-0.76870.222554
370.044210.33960.367689
38-0.152655-1.17260.122841
390.0511070.39260.348028
40-0.159437-1.22470.112786
41-0.023168-0.1780.429682
42-0.042551-0.32680.372472
43-0.034485-0.26490.396009
44-0.070637-0.54260.294735
450.0028390.02180.491338
46-0.047951-0.36830.356977
47-0.072574-0.55750.289663
480.0294950.22660.410776
49-0.095507-0.73360.233049
500.0343430.26380.39643
51-0.065143-0.50040.309336
52-0.023813-0.18290.427746
530.0153050.11760.453407
54-0.041382-0.31790.375855
550.0096890.07440.470464
56-0.004284-0.03290.486931
57-0.006612-0.05080.479833
58-0.000593-0.00460.498191
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.250269-1.92230.029697
20.1893871.45470.075525
30.3266952.50940.00743
4-0.067898-0.52150.301974
50.2694682.06980.021428
60.2061691.58360.059314
7-0.009945-0.07640.469683
8-0.080111-0.61530.270347
90.1519481.16710.123925
10-0.135442-1.04030.151211
110.2008021.54240.064163
12-0.020928-0.16070.436421
13-0.156321-1.20070.117329
14-0.027053-0.20780.418051
15-0.000638-0.00490.498053
160.016510.12680.449758
17-0.011653-0.08950.464491
180.0330680.2540.40019
19-0.222856-1.71180.046094
20-0.156779-1.20420.116652
210.0683390.52490.300803
22-0.065512-0.50320.308346
23-0.045082-0.34630.365183
24-0.02314-0.17770.429767
25-0.006481-0.04980.480232
260.0100880.07750.469249
270.0369280.28360.388837
28-0.023499-0.18050.42869
29-0.061199-0.47010.320016
300.053410.41020.341554
31-0.063261-0.48590.314413
320.0511470.39290.347917
33-0.120863-0.92840.1785
340.1241180.95340.172146
350.0154230.11850.453051
36-0.053118-0.4080.342372
37-0.074661-0.57350.28425
380.0475580.36530.358096
39-0.025164-0.19330.423698
40-0.081144-0.62330.267752
41-0.011745-0.09020.464211
420.0097720.07510.470209
43-0.091683-0.70420.24203
440.0068150.05230.479213
450.077580.59590.276759
46-0.008537-0.06560.47397
47-0.000843-0.00650.497429
48-0.064735-0.49720.310436
49-0.00428-0.03290.486942
50-0.014139-0.10860.456944
510.0181940.13980.444667
52-0.045416-0.34880.364222
530.0160020.12290.451297
540.0628510.48280.315524
55-0.050485-0.38780.349785
560.0035570.02730.489146
570.0435840.33480.36949
580.0291830.22420.411704
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122885325949v6hm13g2xw505/1o5o01228853152.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122885325949v6hm13g2xw505/1o5o01228853152.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122885325949v6hm13g2xw505/2b5wo1228853152.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122885325949v6hm13g2xw505/2b5wo1228853152.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = -2.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = -2.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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