Home » date » 2010 » Nov » 23 »

WERKLOOSHEID

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 23 Nov 2010 18:58:57 +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/Nov/23/t1290538642xwq9p8tr61vhz45.htm/, Retrieved Tue, 23 Nov 2010 19:57:24 +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/2010/Nov/23/t1290538642xwq9p8tr61vhz45.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.6 8.5 8.4 8.0 7.9 8.1 8.6 8.8 8.8 8.6 8.3 8.3 8.3 8.4 8.4 8.5 8.6 8.6 8.6 8.6 8.6 8.5 8.4 8.4 8.4 8.5 8.5 8.6 8.6 8.4 8.2 8.0 8.0 8.0 8.0 7.9 7.9 7.8 7.9 8.0 7.9 7.4 7.2 7.0 7.0 7.1 7.2 7.2 7.0 6.9 6.8 6.8 6.8 6.9 7.2 7.3 7.2 7.1 7.1 7.3 7.5 7.6 7.7 7.7 7.7 7.8 8.0 8.1 8.1 8.0 8.1 8.2 8.3 8.4 8.6 8.6 8.7 8.8 8.9
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9477718.4240
20.8696337.72950
30.7951777.06770
40.7534596.69690
50.7296256.48510
60.7107836.31760
70.6720975.97370
80.6130315.44870
90.5440414.83553e-06
100.4762964.23343.1e-05
110.4090253.63550.000246
120.3356942.98370.001894
130.2592122.30390.011928
140.1863541.65640.050809
150.1178331.04730.149072
160.0492530.43780.331372
17-0.016176-0.14380.443022
18-0.07299-0.64880.25919
19-0.122972-1.0930.138858
20-0.172836-1.53620.064242
21-0.226149-2.01010.023919
22-0.285107-2.53410.006626
23-0.343352-3.05180.001549
24-0.393455-3.49710.000388
25-0.422108-3.75180.000167
26-0.428897-3.81210.000136
27-0.431704-3.83710.000125
28-0.444197-3.94818.5e-05
29-0.458828-4.07825.4e-05
30-0.464488-4.12854.5e-05
31-0.460107-4.08955.2e-05
32-0.455725-4.05065.9e-05
33-0.455266-4.04656e-05
34-0.451539-4.01346.8e-05
35-0.440979-3.91959.4e-05
36-0.410395-3.64770.000236
37-0.36959-3.2850.000761
38-0.324564-2.88480.002523
39-0.3077-2.73490.003851
40-0.30771-2.7350.00385
41-0.311524-2.76890.003503
42-0.300012-2.66660.004646
43-0.279528-2.48450.007544
44-0.245023-2.17780.016202
45-0.205228-1.82410.035959
46-0.165136-1.46780.07307
47-0.131163-1.16580.123602
48-0.105746-0.93990.175069


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9477718.4240
2-0.281497-2.5020.007208
30.0613430.54520.293566
40.2720292.41780.008958
50.0044210.03930.484376
60.0011470.01020.495946
7-0.152235-1.35310.089943
8-0.108894-0.96790.168031
9-0.047826-0.42510.335966
10-0.092199-0.81950.207488
11-0.142403-1.26570.10467
12-0.175499-1.55990.061394
13-0.069702-0.61950.268677
14-0.015643-0.1390.444886
15-0.076325-0.67840.249752
16-0.104277-0.92680.178417
170.0043230.03840.484724
180.085770.76230.224063
190.0216510.19240.423945
20-0.05201-0.46230.322579
21-0.042846-0.38080.35218
22-0.051918-0.46150.322869
23-0.017434-0.1550.438624
24-0.035511-0.31560.376558
250.0641450.57010.285104
260.1018470.90520.184047
27-0.036142-0.32120.374439
28-0.053756-0.47780.317058
290.0727210.64640.259961
300.0916020.81420.208995
31-0.011723-0.10420.45864
32-0.142323-1.2650.104796
33-0.0891-0.79190.215384
340.0643760.57220.284409
35-0.007757-0.06890.472604
360.0656660.58370.280558
37-0.053483-0.47540.317919
380.0571220.50770.306534
39-0.221505-1.96880.026243
40-0.100589-0.89410.187003
41-0.051454-0.45730.324342
42-0.013155-0.11690.453608
43-0.064777-0.57570.283211
440.0384550.34180.366707
450.0600370.53360.297552
460.0750240.66680.253413
470.052610.46760.320676
48-0.027933-0.24830.402283
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290538642xwq9p8tr61vhz45/12nea1290538735.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290538642xwq9p8tr61vhz45/12nea1290538735.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290538642xwq9p8tr61vhz45/22nea1290538735.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290538642xwq9p8tr61vhz45/22nea1290538735.ps (open in new window)


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