Home » date » 2008 » Dec » 10 »

Stefan Temmerman

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 10 Dec 2008 15:38:57 -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/10/t1228948763c4avr84lggj5whu.htm/, Retrieved Wed, 10 Dec 2008 22:39:25 +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/10/t1228948763c4avr84lggj5whu.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 «
7.3 7.1 7.1 6.8 6.5 6.3 6.1 6.1 6.3 6.3 6 6.2 6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9
 
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.9258399.11850
20.7987917.86720
30.6774756.67240
40.606155.96990
50.5878635.78980
60.5742095.65530
70.5290885.21091e-06
80.4729514.6585e-06
90.4364674.29872e-05
100.4255354.1913.1e-05
110.4305684.24062.5e-05
120.4164374.10144.3e-05
130.3393843.34250.00059
140.2521272.48320.007369
150.1736691.71040.045191
160.1282941.26360.10471
170.1096111.07950.141512
180.0915630.90180.184702
190.0545020.53680.296325
200.0136030.1340.446849
21-0.015324-0.15090.440175
22-0.029082-0.28640.387583
23-0.035654-0.35120.363117
24-0.04715-0.46440.321712
25-0.096661-0.9520.171732
26-0.148079-1.45840.073979
27-0.192465-1.89560.030497
28-0.216714-2.13440.017666
29-0.227214-2.23780.013761
30-0.235152-2.3160.011332
31-0.245327-2.41620.008777
32-0.25375-2.49920.007064
33-0.255315-2.51460.006782
34-0.260407-2.56470.00593
35-0.268052-2.640.004831
36-0.271354-2.67250.004416
37-0.290631-2.86240.002576
38-0.297447-2.92950.002116
39-0.304762-3.00160.001708
40-0.309838-3.05160.001468
41-0.326086-3.21160.000896
42-0.351257-3.45950.000403
43-0.381063-3.7530.000149
44-0.401305-3.95247.3e-05
45-0.398097-3.92088.2e-05
46-0.382282-3.7650.000143
47-0.350786-3.45480.000409
48-0.312199-3.07480.001368
49-0.297397-2.9290.002119
50-0.29571-2.91240.002225
51-0.312138-3.07420.001371
52-0.331787-3.26770.00075
53-0.346151-3.40920.000475
54-0.348341-3.43080.000443
55-0.344761-3.39550.000497
56-0.331752-3.26740.000751
57-0.310939-3.06240.001421
58-0.290616-2.86220.002577
59-0.262308-2.58340.005637
60-0.227271-2.23840.013742


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9258399.11850
2-0.408796-4.02625.6e-05
30.1183371.16550.12334
40.2558452.51980.006688
50.1389961.36890.087089
6-0.175419-1.72770.043614
7-0.138758-1.36660.087454
80.2022591.9920.02459
90.1729231.70310.045876
10-0.096408-0.94950.172361
11-0.054518-0.53690.296268
12-0.048367-0.47640.317443
13-0.330442-3.25450.000782
140.2294592.25990.013032
15-0.0996-0.98090.164529
16-0.064575-0.6360.26314
17-0.080904-0.79680.213754
180.0877750.86450.194728
19-0.017481-0.17220.431831
20-0.043169-0.42520.33583
21-0.002513-0.02480.490151
220.0114510.11280.455219
23-0.085391-0.8410.201206
240.0928180.91420.181452
25-0.197679-1.94690.027219
260.0443130.43640.331747
270.0024420.0240.490432
28-0.040178-0.39570.346595
29-0.086878-0.85560.197151
300.0436290.42970.334184
310.1231281.21270.1141
32-0.113955-1.12230.132248
33-0.053562-0.52750.299516
34-0.040396-0.39790.345806
350.0469130.4620.322544
360.0473170.4660.321124
37-0.101748-1.00210.159394
380.0239050.23540.407182
39-0.068275-0.67240.251454
40-0.001767-0.01740.493076
41-0.15835-1.55960.06106
42-0.087102-0.85790.196543
43-0.036766-0.36210.35903
440.0052850.0520.479299
450.0737320.72620.23474
460.0119840.1180.453146
470.1079311.0630.145211
48-0.01122-0.11050.45612
49-0.128859-1.26910.103719
50-0.094268-0.92840.177744
51-0.006007-0.05920.476474
52-0.054205-0.53390.297329
530.0204770.20170.420296
54-0.03194-0.31460.376882
55-0.00298-0.02930.488324
560.0143330.14120.444017
57-0.01684-0.16590.43431
58-0.03047-0.30010.382373
59-0.028345-0.27920.390355
600.0057940.05710.477304
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228948763c4avr84lggj5whu/1rze51228948734.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228948763c4avr84lggj5whu/1rze51228948734.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228948763c4avr84lggj5whu/2dlhe1228948734.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228948763c4avr84lggj5whu/2dlhe1228948734.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