Home » date » 2008 » Dec » 21 »

Paper - 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: Sun, 21 Dec 2008 08:54:30 -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/21/t1229874920am5zhr40u12y0zm.htm/, Retrieved Sun, 21 Dec 2008 16:55: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/2008/Dec/21/t1229874920am5zhr40u12y0zm.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2490 3266 3475 3127 2955 3870 2852 3142 3029 3180 2560 2733 2452 2553 2777 2520 2318 2873 2311 2395 2099 2268 2316 2181 2175 2627 2578 3090 2634 3225 2938 3174 3350 2588 2061 2691 2061 2918 2223 2651 2379 3146 2883 2768 3258 2839 2470 5072 1463 1600 2203 2013 2169 2640 2411 2528 2292 1988 1774 2279
 
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.1851471.43410.078361
20.2267971.75680.04203
30.2478311.91970.029828
40.0637480.49380.31163
5-0.025631-0.19850.421647
60.1019150.78940.216484
7-0.136646-1.05850.147045
8-0.015661-0.12130.451926
9-0.105892-0.82020.207664
100.0059030.04570.48184
11-0.258939-2.00570.0247
120.0128470.09950.460532
13-0.108624-0.84140.201732
14-0.028781-0.22290.412171
150.0633420.49060.312733
16-0.012023-0.09310.463056
17-0.12505-0.96860.168308
18-0.005163-0.040.484116
19-0.173653-1.34510.091826
20-0.01816-0.14070.444302
21-0.111926-0.8670.194706
22-0.015227-0.11790.453251
23-0.048884-0.37870.353141
240.0348590.270.394036
250.0067140.0520.479347
260.0080720.06250.475178
27-0.010386-0.08040.468074
280.0538070.41680.33916
29-0.035353-0.27380.392573
300.1151710.89210.187948
31-0.06678-0.51730.303434
320.0042250.03270.487
330.0459370.35580.36161
340.048570.37620.35404
350.0319420.24740.402714
360.1387091.07440.143465
370.0591890.45850.324134
380.1479281.14580.128205
390.1183140.91650.181549
400.0841770.6520.258435
41-0.011264-0.08730.465381
420.1379981.06890.144692
43-0.053668-0.41570.339553
44-0.059228-0.45880.324027
450.0042640.0330.48688
46-0.049726-0.38520.350736
47-0.17265-1.33730.093079
48-0.096929-0.75080.227852
49-0.107609-0.83350.203925
50-0.098614-0.76390.223972
51-0.078846-0.61070.271839
52-0.076976-0.59630.276625
53-0.092891-0.71950.237304
54-0.072086-0.55840.289332
55-0.067442-0.52240.301656
56-0.065982-0.51110.30558
57-0.039072-0.30270.381601
58-0.00473-0.03660.485448
590.0030850.02390.490508
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1851471.43410.078361
20.1993511.54420.063903
30.1911941.4810.071922
4-0.042227-0.32710.372369
5-0.127752-0.98960.163181
60.0769140.59580.276784
7-0.14843-1.14970.127408
80.0255440.19790.421911
9-0.099618-0.77160.22168
100.1029340.79730.214203
11-0.262831-2.03590.023092
120.1120.86760.194549
13-0.059229-0.45880.324023
140.0817260.6330.264555
150.0936830.72570.235433
16-0.099859-0.77350.221131
17-0.0856-0.66310.254916
18-0.137404-1.06430.145722
19-0.05191-0.40210.344522
200.0193690.150.440623
21-0.012213-0.09460.462473
220.0085820.06650.47361
230.0037240.02880.488541
240.0274620.21270.416133
250.013420.10390.458778
26-0.006889-0.05340.478812
27-0.028903-0.22390.411804
28-0.024547-0.19010.424919
29-0.041477-0.32130.374558
300.0334450.25910.398235
31-0.074611-0.57790.282735
32-0.00402-0.03110.487631
330.0869720.67370.251551
340.0771380.59750.276207
350.0373920.28960.386548
360.0710540.55040.292051
370.0214530.16620.434289
380.0451790.350.3638
390.0464590.35990.360103
40-0.061923-0.47970.31661
41-0.02343-0.18150.428299
420.0818630.63410.264209
43-0.063416-0.49120.312533
44-0.04853-0.37590.354154
450.0370870.28730.387447
460.0430790.33370.369888
47-0.081766-0.63340.264453
48-0.144432-1.11880.13385
490.0497910.38570.35055
50-0.031454-0.24360.404171
510.0100970.07820.468959
52-0.112368-0.87040.193776
530.0314350.24350.404226
54-0.101263-0.78440.217951
550.0136660.10590.458025
560.0092260.07150.471634
570.0104140.08070.467987
580.0244450.18930.42523
59-0.021999-0.17040.432632
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229874920am5zhr40u12y0zm/1q1w91229874868.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229874920am5zhr40u12y0zm/1q1w91229874868.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229874920am5zhr40u12y0zm/29zy81229874868.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229874920am5zhr40u12y0zm/29zy81229874868.ps (open in new window)


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