Home » date » 2010 » May » 05 »

*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, 05 May 2010 15:54:34 +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/May/05/t12730749251s6cp65d9ij2522.htm/, Retrieved Wed, 05 May 2010 17:55:25 +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/May/05/t12730749251s6cp65d9ij2522.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2953 2635 2404 2413 2136 1565 1451 2037 2477 2785 2994 2681 3098 2708 2517 2445 2087 1801 1216 2173 2286 3121 3458 3511 3524 2767 2744 2603 2527 1846 1066 2327 3066 3048 3806 4042 3583 3438 2957 2885 2744 1837 1447 2504 3248 3098 4318 3561 3316 3379 2717 2354 2445 1542 1606 2590 3588 3202 4704 4005 3810 3488 2781 2944 2817 1960 1937 2903 3357 3552 4581 3905 4581 4037 3345 3175 2808 2050 1719 3143 3756 4776 4540 4309 4563 3506 3665 3361 3094 2440 1633 2935 4159 4159 4894 4921 4577 4155 3851 3429 3370 2726
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7713537.79030
20.5067445.11791e-06
30.2247292.26970.012666
4-0.080216-0.81010.209873
5-0.266698-2.69350.004134
6-0.340833-3.44220.000419
7-0.292766-2.95680.001931
8-0.116497-1.17660.121054
90.1404161.41810.0796
100.3741473.77870.000133
110.630366.36630
120.776397.84120
130.6113486.17430
140.3934563.97376.6e-05
150.1281191.29390.099305
16-0.128531-1.29810.098591
17-0.306087-3.09130.001285
18-0.369067-3.72740.000159
19-0.325613-3.28850.000691
20-0.162461-1.64080.051962
210.0684160.6910.245577
220.2755352.78280.003211
230.4944734.99391e-06
240.5873865.93230
250.458014.62575e-06
260.2452112.47650.007456
270.0290560.29350.384886
28-0.173655-1.75380.041232
29-0.321021-3.24220.000802
30-0.371063-3.74760.000148
31-0.335765-3.39110.000496
32-0.192911-1.94830.027063
33-0.008634-0.08720.46534
340.1744331.76170.040559
350.3559783.59520.000251
360.4354034.39741.3e-05
370.3396083.42990.000436
380.1510961.5260.065053
39-0.026388-0.26650.395195
40-0.18976-1.91650.029051
41-0.304725-3.07760.00134
42-0.341623-3.45020.000408
43-0.305615-3.08660.001304
44-0.187422-1.89290.030605
45-0.041739-0.42150.337124
460.1182991.19480.117475
470.2374892.39850.009139
480.3027983.05810.001422


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7713537.79030
2-0.21787-2.20040.015018
3-0.215805-2.17950.015797
4-0.289888-2.92770.002106
50.0181920.18370.427294
60.0328270.33150.370459
70.1189261.20110.116247
80.1907091.92610.02844
90.2549982.57540.005724
100.1276241.28890.100168
110.4033024.07314.6e-05
120.2743862.77120.00332
13-0.442622-4.47031e-05
14-0.113857-1.14990.126437
150.0136260.13760.445407
160.1265461.2780.102067
17-0.097157-0.98120.164399
180.0337340.34070.367016
19-0.043003-0.43430.332492
20-0.006998-0.07070.471895
210.0435640.440.330442
22-0.025277-0.25530.399509
23-0.084168-0.85010.198644
24-0.039054-0.39440.347047
25-0.015899-0.16060.436376
26-0.129399-1.30690.097098
270.1395151.4090.080934
280.0967870.97750.165316
29-0.020673-0.20880.417514
30-0.12391-1.25140.10682
31-0.016132-0.16290.43545
32-0.034872-0.35220.362711
33-0.072508-0.73230.232834
340.033670.34010.367258
350.0040320.04070.483799
360.0454390.45890.323636
370.034630.34970.363626
38-0.019709-0.19910.421308
39-0.069081-0.69770.243481
400.0395060.3990.345367
410.0266260.26890.39427
42-0.017738-0.17910.429089
43-0.030835-0.31140.378057
440.0114650.11580.454021
45-0.023485-0.23720.406495
460.0465750.47040.319542
47-0.132854-1.34180.091327
480.0028050.02830.488728
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t12730749251s6cp65d9ij2522/1xatr1273074870.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730749251s6cp65d9ij2522/1xatr1273074870.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t12730749251s6cp65d9ij2522/2xatr1273074870.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730749251s6cp65d9ij2522/2xatr1273074870.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