Home » date » 2008 » Dec » 22 »

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: Mon, 22 Dec 2008 02:15:34 -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/22/t12299374143ynygrkvd44kdsm.htm/, Retrieved Mon, 22 Dec 2008 10:16:54 +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/22/t12299374143ynygrkvd44kdsm.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:
paper: tweede tijdsreeks D=1 d=1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99.4 102.7 109.3 93.9 95.3 101.8 85.6 81.1 109.5 104.0 94.5 79.0 92.8 95.6 101.7 90.8 89.5 91.8 83.8 77.4 112.7 98.8 85.7 72.8 96.9 95.0 94.2 87.3 80.6 87.9 79.6 71.9 94.6 91.4 86.6 68.5 90.1 91.6 95.4 85.4 81.6 88.9 84.1 74.7 97.1 95.3 85.1 67.3 80.6 87.9 89.2 81.3 79.7 83.7 82.1 69.3 91.2 85.7 85.2 70.0 85.8 91.4 97.5 87.1 85.1 94.1 85.8 74.7 99.9 90.7 86.8 74.8 91.8 97.6 100.8 85.4 84.0 90.6 80.5 73.9 93.6
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.298605-2.46240.008171
2-0.160809-1.32610.094628
3-0.068194-0.56230.287865
40.1787481.4740.072549
50.026570.21910.413613
6-0.047544-0.39210.34812
70.0951090.78430.217796
8-0.330622-2.72640.004069
90.2781052.29330.012464
10-0.073384-0.60510.273549
110.1382871.14030.129072
12-0.305587-2.51990.007046
130.0306830.2530.400507
140.0509260.41990.337925
15-0.041923-0.34570.365315
160.0902060.74390.229763
17-0.221235-1.82440.036246
180.1910641.57560.059885
19-0.102273-0.84340.20099
200.1007440.83080.20451
21-0.026699-0.22020.413202
220.0417230.34410.365932
23-0.048358-0.39880.345656
24-0.055906-0.4610.323131
250.2080021.71520.045429
26-0.166467-1.37270.087175
270.1426171.1760.121838
28-0.131379-1.08340.141234
290.1042040.85930.196601
30-0.092984-0.76680.222938
310.111610.92040.180319
32-0.041713-0.3440.365964
33-0.19932-1.64360.052434
340.2155921.77780.039952
350.002570.02120.491576
36-0.047786-0.39410.347387
37-0.139003-1.14620.127855
380.1457841.20220.116734
39-0.045522-0.37540.354273
400.0073930.0610.475782
41-0.010755-0.08870.464794
42-0.03039-0.25060.401439
43-0.005948-0.04910.480511
440.0460110.37940.352782
450.0573870.47320.318784
46-0.097948-0.80770.211039
470.0025080.02070.491781
480.0293430.2420.404767


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.298605-2.46240.008171
2-0.274444-2.26310.013412
3-0.25093-2.06920.021164
40.0173360.1430.443372
50.0600960.49560.3109
60.0465830.38410.35104
70.1935661.59620.057542
8-0.300995-2.48210.007769
90.1035520.85390.198077
10-0.105555-0.87040.193564
110.136621.12660.131936
12-0.193746-1.59770.057376
13-0.126578-1.04380.15014
14-0.145986-1.20380.116415
15-0.15276-1.25970.106043
16-0.041865-0.34520.365496
17-0.129561-1.06840.144562
180.0556930.45930.323756
190.037530.30950.378951
20-0.077747-0.64110.261801
210.1425691.17570.121917
220.0313020.25810.398546
230.0538250.44390.32928
24-0.074873-0.61740.26951
250.0284520.23460.407602
26-0.083782-0.69090.245994
270.0415960.3430.366326
28-0.071318-0.58810.279205
29-0.003385-0.02790.488908
30-0.08198-0.6760.250659
310.0939560.77480.220576
32-0.080608-0.66470.254242
33-0.088879-0.73290.233065
340.0585570.48290.315368
350.1843421.52010.066558
36-0.115499-0.95240.172126
370.0744820.61420.27057
38-0.099029-0.81660.208499
390.0938490.77390.220837
40-0.109083-0.89950.185774
41-0.039187-0.32310.37379
420.0015680.01290.494861
43-0.080973-0.66770.253285
440.0298340.2460.403206
45-0.060203-0.49640.31059
460.0029360.02420.490379
470.0518940.42790.335027
48-0.056279-0.46410.322032
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t12299374143ynygrkvd44kdsm/1ceww1229937327.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t12299374143ynygrkvd44kdsm/1ceww1229937327.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t12299374143ynygrkvd44kdsm/2y8iw1229937327.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t12299374143ynygrkvd44kdsm/2y8iw1229937327.ps (open in new window)


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