Home » date » 2009 » Dec » 19 »

*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: Sat, 19 Dec 2009 06:51:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t12612307426x3v847m3tfqmsf.htm/, Retrieved Sat, 19 Dec 2009 14:52: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/2009/Dec/19/t12612307426x3v847m3tfqmsf.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
353.4 329.08 331.89 339.94 330.8 361.26 358.02 356.15 322.56 306.1 303.99 322.23 330.2 343.91 367.07 375.22 375.35 389.81 371.18 387.18 395.43 387.86 392.46 375.11 417.03 408.79 412.68 403.67 414.95 415.35 408.2 424.19 414.03 417.8 418.66 431.35 435.7 438.78 443.38 451.67 440.19 450.23 450.54 448.13 463.55 458.93 467.83 461.93 466.51 481.6 467.19 445.66 450.91 456.5 444.27 458.28 475.49 462.69 472.26 453.55 459.21 470.42 487.39 500.7 514.76 533.4 544.75 562.06 561.88 584.41 581.5 605.37 615.93 636.02 640.43 645.5 654.17 669.12 670.63 639.95 651.99 687.31 705.27 757.02 740.74 786.16 790.82 757.12 801.34 848.28 885.14 954.29 899.47 947.28 914.62 955.4 970.43 980.28 1049.34 1101.75 1111.75 1090.82 1133.84 1120.67 957.28 1017.01 1098.67 1163.63 1129.23 1279.64 1238.33 1286.37 1335.18 1301.84 1372.71 1328.72 1320.41 1282.71 1362.93 1388.91 1469.25 1394.46 1366.42 1498.58 1452.43 1420.6 1454 etc...
 
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.0602780.93190.176171
20.0103620.16020.436433
30.0730251.12890.130029
40.0893491.38130.084238
50.0198090.30620.379847
6-0.088565-1.36920.086114
70.083351.28860.099398
80.0692031.06990.142882
90.0229490.35480.36153
10-0.020687-0.31980.374694
110.0435340.6730.250795
120.0512970.7930.214274
13-0.049609-0.76690.221939
140.014340.22170.412373
15-0.084664-1.30890.095916
160.004230.06540.473956
170.0353510.54650.292612
180.0136670.21130.416424
190.0760241.17530.120521
20-0.057015-0.88140.189483
210.0116960.18080.428335
22-0.032048-0.49540.310369
23-0.044284-0.68460.247126
240.0576760.89160.186741
250.0304490.47070.319129
26-0.049602-0.76680.221969
270.0237550.36720.356883
28-0.023403-0.36180.35891
29-0.025724-0.39770.345609
300.0052280.08080.467823
310.0099740.15420.438792
32-0.036918-0.57070.284358
33-0.014056-0.21730.414078
34-0.004719-0.07290.470954
35-0.022999-0.35560.361243
36-0.001469-0.02270.490953


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0602780.93190.176171
20.0067530.10440.458471
30.0722631.11720.132524
40.0813541.25770.104863
50.0094080.14540.442242
6-0.097595-1.50880.066337
70.0831921.28610.099823
80.0534980.82710.204515
90.0257350.39790.345546
10-0.021809-0.33720.368148
110.0275540.4260.335257
120.0242880.37550.353819
13-0.043206-0.6680.252404
140.0220110.34030.366974
15-0.104281-1.61210.054126
160.0033530.05180.479352
170.0501190.77480.219607
180.0251860.38940.348674
190.0710371.09820.136611
20-0.069609-1.07610.141479
21-0.007209-0.11150.455674
22-0.03166-0.48950.312483
23-0.031805-0.49170.311696
240.0791281.22330.111211
250.0338790.52380.300466
26-0.072143-1.11530.13292
270.0416090.64330.260336
28-0.058183-0.89950.18465
29-0.018895-0.29210.385226
300.0222680.34430.365479
310.0116860.18070.428391
32-0.035667-0.55140.290939
33-0.003904-0.06040.475962
340.0130230.20130.420303
35-0.040507-0.62620.265882
36-0.001737-0.02690.4893
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612307426x3v847m3tfqmsf/1tpyt1261230698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612307426x3v847m3tfqmsf/1tpyt1261230698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t12612307426x3v847m3tfqmsf/2akmc1261230698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612307426x3v847m3tfqmsf/2akmc1261230698.ps (open in new window)


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