Home » date » 2010 » Aug » 16 »

autocorrelation Function - maandelijkse bezoekers - Mattias Debbaut

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 16 Aug 2010 18:08:10 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/16/t1281982066qb77i2570r940xs.htm/, Retrieved Mon, 16 Aug 2010 20:07:46 +0200
 
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/2010/Aug/16/t1281982066qb77i2570r940xs.htm/},
    year = {2010},
}
@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 = {2010},
    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:
mattias debbaut
 
Dataseries X:
» Textbox « » Textfile « » CSV «
900 899 898 896 916 915 900 890 891 891 892 894 896 889 878 883 901 897 881 866 867 866 862 871 865 856 847 859 870 872 856 839 829 825 822 827 822 812 810 816 820 823 810 793 777 772 765 765 753 742 736 740 742 742 728 707 699 696 689 692 673 653 642 648 654 653 630 609 598 601 592 591 568 538 523 530 529 534 513 491 480 478 462 461 437 411 400 405 395 407 385 366 349 343 332 327 306 276 269 268 260 274 247 226 212 199 188 179 155 124 117 116 105 112 86 64 53 42 32 24
 
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
10.7515647.36380
20.5777725.6610
30.4264644.17853.2e-05
40.3552143.48040.000377
50.3247223.18160.000987
60.2706532.65180.004683
70.2517222.46640.007711
80.1692631.65840.050247
90.0345370.33840.367902
10-0.052303-0.51250.304753
11-0.074032-0.72540.234998
12-0.183127-1.79430.037959
13-0.15169-1.48630.070245
14-0.142232-1.39360.083331
15-0.124772-1.22250.112254
16-0.165888-1.62540.053681
17-0.230974-2.26310.012942
18-0.202619-1.98530.024985
19-0.191808-1.87930.031617
20-0.129407-1.26790.103946
21-0.070919-0.69490.244411
22-0.063014-0.61740.269215
23-0.116676-1.14320.127902
24-0.146977-1.44010.076549
25-0.071538-0.70090.242522
260.0389630.38180.351743
270.0809940.79360.214699
280.0714670.70020.24274
290.1202311.1780.12085
300.1171681.1480.126909
310.1273281.24760.107615
320.0717370.70290.241916
330.0560280.5490.292154
34-0.000725-0.00710.497175
35-0.068493-0.67110.251887
36-0.096917-0.94960.172353
37-0.112203-1.09940.13718
38-0.148121-1.45130.07498
39-0.177859-1.74270.042298
40-0.172789-1.6930.046851
41-0.184648-1.80920.036777
42-0.201411-1.97340.025662
43-0.265434-2.60070.005387
44-0.273063-2.67550.004387
45-0.326823-3.20220.000925
46-0.327511-3.20890.000906
47-0.263178-2.57860.005719
48-0.21831-2.1390.017487


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7515647.36380
20.0296990.2910.385842
3-0.039544-0.38740.349641
40.0912620.89420.186729
50.0791510.77550.219971
6-0.043943-0.43060.333878
70.0657740.64450.260409
8-0.116489-1.14140.128281
9-0.204963-2.00820.023715
10-0.018993-0.18610.426382
110.0578250.56660.286165
12-0.298707-2.92670.002138
130.2191882.14760.017132
140.0232890.22820.409994
15-0.072969-0.71490.238188
16-0.052838-0.51770.302927
17-0.028499-0.27920.390334
180.0203340.19920.421252
190.0117980.11560.454106
200.1108931.08650.139984
21-0.039345-0.38550.350358
22-0.106115-1.03970.150544
23-0.042017-0.41170.340747
24-0.070051-0.68640.247072
250.2391572.34330.01059
260.1017560.9970.160634
27-0.089162-0.87360.192257
28-0.088082-0.8630.195138
290.1758981.72340.044014
30-0.006288-0.06160.475501
31-0.017818-0.17460.430889
32-0.130559-1.27920.101953
33-0.067066-0.65710.25634
34-0.181684-1.78010.039109
35-0.039454-0.38660.349967
36-0.093586-0.91690.180733
370.0829560.81280.209171
380.0059730.05850.476727
390.0241510.23660.406725
40-0.084645-0.82930.204484
410.0149460.14640.441941
42-0.022241-0.21790.413978
43-0.059776-0.58570.279732
44-0.068169-0.66790.252894
45-0.170038-1.6660.049484
46-0.103377-1.01290.156832
470.0847640.83050.204155
48-0.024823-0.24320.404181
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281982066qb77i2570r940xs/1yez91281982087.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281982066qb77i2570r940xs/1yez91281982087.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t1281982066qb77i2570r940xs/2yez91281982087.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281982066qb77i2570r940xs/2yez91281982087.ps (open in new window)


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