Home » date » 2010 » Dec » 16 »

*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: Thu, 16 Dec 2010 20:41:50 +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/Dec/16/t1292531986g6fxbe5hmfx82na.htm/, Retrieved Thu, 16 Dec 2010 21:39:48 +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/Dec/16/t1292531986g6fxbe5hmfx82na.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-820.8 993.3 741.7 603.6 -145.8 -35.1 395.1 523.1 462.3 183.4 791.5 344.8 -217.0 406.7 228.6 -580.1 -1550.4 -1447.5 -40.1 -1033.5 -925.6 -347.8 -447.7 -102.6 -2062.2 -929.7 -720.7 -1541.8 -1432.3 -1216.2 -212.8 -378.2 76.9 -101.3 220.4 495.6 -1035.2 61.8 -734.8 -6.9 -1061.1 -854.6 -186.5 244.0 -992.6 -335.2 316.8 477.6 -572.1 1115.2
 
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.3747942.65020.005371
20.3054712.160.017796
30.2781841.96710.027369
40.3283032.32150.012189
50.1367190.96670.169161
6-0.075295-0.53240.298399
70.067580.47790.317415
80.1290320.91240.182969
90.0132590.09380.46284
10-0.042462-0.30030.382615
11-0.020887-0.14770.441589
120.2065441.46050.075206
13-0.115563-0.81720.208859
14-0.187644-1.32680.095294
15-0.224936-1.59050.059009
16-0.121535-0.85940.197116
17-0.125401-0.88670.189737
18-0.357685-2.52920.007316
19-0.20429-1.44450.077412
20-0.094966-0.67150.252494
21-0.151946-1.07440.143896
22-0.22811-1.6130.056521
23-0.211153-1.49310.070851
240.031270.22110.412952
25-0.113264-0.80090.213491
26-0.1503-1.06280.146494
27-0.100527-0.71080.240245
28-0.008555-0.06050.476001
290.001170.00830.496717
30-0.146127-1.03330.153224
31-0.032121-0.22710.410626
32-0.024764-0.17510.430852
33-0.042029-0.29720.383775
34-0.051175-0.36190.35949
35-0.041283-0.29190.385781
360.0853870.60380.27436
37-0.022667-0.16030.436652
380.0059730.04220.483239
390.0195640.13830.445265
400.0568540.4020.344691
410.0644880.4560.325183
420.0358460.25350.400472
430.0068460.04840.480791
440.0696880.49280.312166
450.054170.3830.351657
460.0573570.40560.343392
470.0227220.16070.4365
480.0724310.51220.305396


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3747942.65020.005371
20.1919661.35740.090374
30.1373740.97140.168018
40.1895681.34040.093079
5-0.097569-0.68990.246717
6-0.271454-1.91950.03032
70.0828940.58610.280206
80.1431051.01190.158227
9-0.022369-0.15820.437479
10-0.01103-0.0780.469071
11-0.070847-0.5010.309297
120.2003041.41640.081435
13-0.245967-1.73920.044073
14-0.184821-1.30690.098616
15-0.183271-1.29590.100476
16-0.01902-0.13450.446777
170.1804891.27630.103881
18-0.142006-1.00410.160074
19-0.070135-0.49590.311059
200.0040950.0290.488507
21-0.070112-0.49580.311117
22-0.041742-0.29520.384548
23-0.070384-0.49770.310443
240.0655070.46320.322614
250.044660.31580.376736
260.021910.15490.438752
270.0146940.10390.45883
28-0.118243-0.83610.203537
29-0.081557-0.57670.283367
300.004630.03270.487007
31-0.002347-0.01660.493414
32-0.10684-0.75550.226754
33-0.067056-0.47420.318726
340.0541310.38280.351759
350.0747650.52870.299687
36-0.070455-0.49820.310266
37-0.180791-1.27840.103509
38-0.006204-0.04390.482592
390.0672030.47520.318357
400.0493250.34880.36436
41-0.05599-0.39590.346928
420.0704960.49850.310165
43-0.106954-0.75630.226515
440.0562590.39780.346231
45-8.5e-05-6e-040.499761
46-0.073759-0.52160.302142
47-0.03039-0.21490.415363
48-0.025394-0.17960.42911
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292531986g6fxbe5hmfx82na/1esy31292532107.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292531986g6fxbe5hmfx82na/1esy31292532107.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292531986g6fxbe5hmfx82na/262yo1292532107.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292531986g6fxbe5hmfx82na/262yo1292532107.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