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:19:03 +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/t1273072789xc2ez0ms22qwt88.htm/, Retrieved Wed, 05 May 2010 17:19:51 +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/t1273072789xc2ez0ms22qwt88.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 «
1954 2302 3054 2414 2226 2725 2589 3470 2400 3180 4009 3924 2072 2434 2956 2828 2687 2629 3150 4119 3030 3055 3821 4001 2529 2472 3134 2789 2758 2993 3282 3437 2804 3076 3782 3889 2271 2452 3084 2522 2769 3438 2839 3746 2632 2851 3871 3618 2389 2344 2678 2492 2858 2246 2800 3869 3007 3023 3907 4209 2353 2570 2903 2910 3782 2759 2931 3641 2794 3070 3576 4106 2452 2206 2488 2416 2534 2521 3093 3903 2907 3025 3812 4209
 
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
1-0.21929-1.99780.024505
2-0.436622-3.97787.4e-05
30.1238121.1280.131289
40.217151.97830.025604
5-0.025762-0.23470.407508
6-0.214599-1.95510.026969
7-0.121599-1.10780.13557
80.2658322.42180.00881
90.1888241.72030.044555
10-0.446027-4.06355.5e-05
11-0.18253-1.66290.050049
120.6749086.14870
13-0.103302-0.94110.174686
14-0.316423-2.88280.002509
150.0743350.67720.250075
160.1620511.47640.071816
17-0.020379-0.18570.426582
18-0.138452-1.26140.105357
19-0.143844-1.31050.096825
200.1958581.78430.039011
210.1873721.7070.045777
22-0.36681-3.34180.000625
23-0.120655-1.09920.137425
240.5245024.77844e-06
25-0.078858-0.71840.237255
26-0.230134-2.09660.019536
270.0075660.06890.472607
280.1506891.37280.08675
290.014670.13370.447
30-0.095315-0.86840.193852
31-0.165835-1.51080.067315
320.1643251.49710.069084
330.1856781.69160.047236
34-0.298228-2.7170.004008
35-0.174877-1.59320.057457
360.4548994.14434.1e-05
37-0.056577-0.51540.303806
38-0.145157-1.32240.094827
39-0.02966-0.27020.393832
400.0648330.59070.278179
410.1204381.09720.137855
42-0.13197-1.20230.116332
43-0.168587-1.53590.064183
440.1460441.33050.093495
450.1920771.74990.041915
46-0.24151-2.20030.015284
47-0.144649-1.31780.095596
480.3036542.76640.003492


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.21929-1.99780.024505
2-0.509197-4.6396e-06
3-0.187705-1.71010.045494
4-0.030359-0.27660.391393
50.0687320.62620.266459
6-0.097906-0.8920.187494
7-0.286418-2.60940.005379
8-0.055079-0.50180.308569
90.1827991.66540.049804
10-0.22965-2.09220.019738
11-0.402797-3.66970.000214
120.3453243.1460.001149
130.0320120.29160.385644
140.0850080.77450.220431
150.100820.91850.180506
160.0341670.31130.378184
17-0.160909-1.4660.07322
18-0.003679-0.03350.486673
190.0234850.2140.415551
20-0.101604-0.92570.178654
21-0.102727-0.93590.176023
22-0.072807-0.66330.254487
23-0.0479-0.43640.331844
240.126331.15090.126535
250.0891260.8120.209565
260.0843220.76820.22227
27-0.112837-1.0280.15347
280.006410.05840.476787
290.0171790.15650.438006
300.0678750.61840.269013
31-0.005334-0.04860.480679
32-0.023161-0.2110.416698
33-0.038201-0.3480.364351
340.0283830.25860.3983
35-0.121959-1.11110.134866
360.0859640.78320.217879
37-0.099745-0.90870.183064
380.026760.24380.403997
39-0.024949-0.22730.410375
40-0.047173-0.42980.334239
410.1128521.02810.153438
42-0.121585-1.10770.135596
43-0.007674-0.06990.472216
44-0.046227-0.42120.337367
450.0021930.020.492055
46-0.012055-0.10980.456406
470.0584180.53220.298001
48-0.079036-0.720.236759
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273072789xc2ez0ms22qwt88/1wxov1273072741.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273072789xc2ez0ms22qwt88/1wxov1273072741.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273072789xc2ez0ms22qwt88/266ng1273072741.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273072789xc2ez0ms22qwt88/266ng1273072741.ps (open in new window)


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