Home » date » 2007 » Dec » 16 » attachments

Autocorrelation Function

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Dec 2007 08:32:06 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/16/t11978182836r65eno2ir8d5e9.htm/, Retrieved Sun, 16 Dec 2007 16:18:06 +0100
 
User-defined keywords:
d=1 D=0 industriele productie
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97,5 97,1 97,5 98,5 100,5 102,8 105,2 107,4 108,0 107,6 107,0 105,8 104,3 103,8 104,4 106,2 108,5 109,8 110,3 109,7 108,7 108,9 109,7 110,4 111,4 112,6 113,6 113,8 113,2 113,6 113,9 113,4 113,8 116,0 118,3 120,5 121,9 121,2 120,2 120,6 110,2 109,2 108,7 109,9 112,2 114,5 114,7 113,2 112,1 112,6 113,6 114,0 114,5 115,0 114,9 114,8 114,3 113,7 114,5 116,0 116,6 116,2 115,7 115,6 115,2 115,0 115,7 115,9 115,6 115,9 117,0 117,9 118,8 119,9
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
018.5440
10.3276042.7990.003276
20.1435261.22630.112016
3-0.101203-0.86470.804975
4-0.327629-2.79930.996726
5-0.366684-3.1330.998754
6-0.208404-1.78060.960431
7-0.047452-0.40540.656827
80.1106950.94580.17369
90.1679851.43530.077741
100.1268191.08350.141067
110.0709830.60650.273039
120.0003060.00260.498961
13-0.093286-0.7970.785993
14-0.090291-0.77140.778535
15-0.07684-0.65650.743223
16-0.005384-0.0460.518284
170.0658810.56290.287618
180.0274110.23420.407742
190.0417110.35640.361293
200.1171381.00080.160109
210.0633030.54090.295125
22-0.046904-0.40070.655112
23-0.122427-1.0460.850497
24-0.156495-1.33710.907328
25-0.102148-0.87280.807171
26-0.009731-0.08310.533017
270.1450891.23960.109539
280.2547632.17670.016369
290.1929141.64830.051799
300.0519220.44360.329315
31-0.037648-0.32170.625688
32-0.141593-1.20980.884865
33-0.226294-1.93350.971471
34-0.161029-1.37580.91346
35-0.121831-1.04090.849328
36-0.05428-0.46380.677905
370.030630.26170.397143
380.0435610.37220.355418
390.057770.49360.311541
40-0.004048-0.03460.513749
41-0.023799-0.20330.580282
42-0.023042-0.19690.577761
43-0.003527-0.03010.51198
440.0145940.12470.450554
450.0217640.1860.426499
460.0092080.07870.468755
47-0.008181-0.06990.527766


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3276042.7990.003276
10.0405540.34650.364984
2-0.179084-1.53010.934842
3-0.290178-2.47930.992263
4-0.200424-1.71240.954468
5-0.002844-0.02430.50966
60.0284270.24290.404388
70.0251570.21490.415205
8-0.029849-0.2550.600291
9-0.059635-0.50950.694038
10-0.004196-0.03590.51425
110.0230260.19670.422292
12-0.038162-0.32610.627342
13-0.01467-0.12530.5497
14-0.024078-0.20570.581211
150.0307750.26290.396669
160.0505010.43150.333696
17-0.064482-0.55090.708318
18-0.014871-0.12710.550378
190.137631.17590.121725
200.0675730.57730.282743
21-0.093485-0.79870.786482
22-0.141019-1.20490.883927
23-0.061192-0.52280.698661
240.0664520.56780.285967
250.0726860.6210.268257
260.0973950.83210.204021
270.092650.79160.215579
28-0.01154-0.09860.539137
29-0.056709-0.48450.685266
300.0336530.28750.387262
310.0385510.32940.371407
32-0.063491-0.54250.705424
33-0.035322-0.30180.618166
34-0.08442-0.72130.763481
35-0.113492-0.96970.832295
36-0.089832-0.76750.777378
37-0.060197-0.51430.695709
380.0053890.0460.481702
39-0.096982-0.82860.794987
40-0.097227-0.83070.795577
41-0.042363-0.36190.640782
420.0165250.14120.444053
430.0176460.15080.440289
44-0.019133-0.16350.564701
45-0.029102-0.24860.597833
46-0.045916-0.39230.652013
47-0.072431-0.61890.73103
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t11978182836r65eno2ir8d5e9/1x4va1197819124.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t11978182836r65eno2ir8d5e9/1x4va1197819124.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t11978182836r65eno2ir8d5e9/25o9m1197819124.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t11978182836r65eno2ir8d5e9/25o9m1197819124.ps (open in new window)


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

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