Home » date » 2009 » Dec » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 18 Dec 2009 04:38:13 -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/18/t1261136317fj4rt3fm3gap05f.htm/, Retrieved Fri, 18 Dec 2009 12:38:39 +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/18/t1261136317fj4rt3fm3gap05f.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 «
100.00 100.00 93.55 88.17 89.25 91.40 92.47 91.40 88.17 87.10 84.95 92.47 93.55 93.55 91.40 90.32 91.40 93.55 93.55 92.47 91.40 89.25 86.02 88.17 87.10 87.10 86.02 84.95 84.95 86.02 86.02 84.95 86.02 82.80 77.42 80.65 78.49 75.27 75.27 75.27 77.42 78.49 76.34 73.12 68.82 65.59 69.89 82.80 84.95 80.65 74.19 70.97 74.19 82.80 86.02 86.02 82.80 78.49 79.57 87.10 89.25
 
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.8529466.66170
20.6342314.95353e-06
30.5183384.04837.4e-05
40.5421754.23453.9e-05
50.6319334.93563e-06
60.675825.27831e-06
70.5977254.66849e-06
80.451163.52370.000407
90.342362.67390.004804
100.3155622.46460.008274
110.3632672.83720.003085
120.3710122.89770.002608
130.2881642.25060.014012
140.1894281.47950.072079
150.1307991.02160.155509
160.0985660.76980.222187
170.0752190.58750.279525
180.0361820.28260.389224
19-0.028644-0.22370.411862
20-0.097921-0.76480.223674
21-0.150268-1.17360.122553
22-0.17767-1.38760.085146
23-0.178878-1.39710.083725
24-0.200126-1.5630.061609
25-0.257191-2.00870.024499
26-0.294251-2.29820.012497
27-0.291624-2.27770.013132
28-0.27601-2.15570.01753
29-0.261738-2.04420.022627
30-0.269252-2.10290.019803
31-0.30674-2.39570.009836
32-0.348201-2.71950.004252
33-0.367141-2.86750.002837
34-0.335081-2.61710.005583
35-0.281411-2.19790.015881
36-0.280922-2.19410.016025
37-0.32183-2.51360.007304
38-0.344398-2.68980.004604
39-0.325135-2.53940.006835
40-0.267903-2.09240.020286
41-0.214783-1.67750.049281
42-0.203105-1.58630.058921
43-0.241068-1.88280.032249
44-0.279769-2.18510.016367
45-0.254019-1.9840.025883
46-0.154597-1.20740.115961
47-0.061401-0.47960.316629
48-0.058055-0.45340.325927
49-0.109655-0.85640.197555
50-0.150994-1.17930.121428
51-0.130488-1.01910.15608
52-0.065899-0.51470.304316
53-0.003388-0.02650.489488
540.0102560.08010.468209
55-0.010415-0.08130.467719
56-0.039737-0.31040.378675
57-0.038651-0.30190.381889
580.0006260.00490.498058
590.0318550.24880.402179
600.0207330.16190.435949


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8529466.66170
2-0.342352-2.67390.004805
30.3499522.73320.004098
40.2812352.19650.015933
50.2066031.61360.055886
60.0452750.35360.362426
7-0.17432-1.36150.089184
8-0.090474-0.70660.241244
9-0.05115-0.39950.345463
10-0.072101-0.56310.287705
110.0929140.72570.235404
12-0.200204-1.56360.061538
13-0.076853-0.60020.275284
140.1150810.89880.186144
15-0.0414-0.32330.373772
16-0.138483-1.08160.141847
17-0.081391-0.63570.263681
18-0.064053-0.50030.309342
19-0.031944-0.24950.401911
20-0.089881-0.7020.242677
21-0.060155-0.46980.320077
22-0.022029-0.17210.431983
230.0704350.55010.292125
24-0.036513-0.28520.388238
25-0.063604-0.49680.310571
260.0821060.64130.261875
270.0672540.52530.300651
280.0198720.15520.438585
290.0438790.34270.366498
30-0.036088-0.28190.389504
31-0.041872-0.3270.372382
32-0.0612-0.4780.317183
33-0.061846-0.4830.315401
340.0737140.57570.283459
35-0.035143-0.27450.392322
36-0.121036-0.94530.174113
370.0502380.39240.348075
380.0051560.04030.484006
390.0181110.14150.44399
400.0608650.47540.318111
41-0.081147-0.63380.264298
42-0.006434-0.05030.480043
43-0.116289-0.90820.183662
44-0.040272-0.31450.377094
450.1237810.96680.168741
460.0660560.51590.30389
470.0401740.31380.377385
48-0.03791-0.29610.384084
490.038540.3010.382218
50-0.03918-0.3060.38032
51-0.015803-0.12340.451088
52-0.080935-0.63210.264834
53-0.041549-0.32450.373331
54-0.026139-0.20420.419456
550.0764670.59720.276283
56-0.075836-0.59230.27792
57-0.023329-0.18220.428012
58-0.045423-0.35480.361994
59-0.025432-0.19860.421607
60-0.04155-0.32450.373329
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136317fj4rt3fm3gap05f/1b1vs1261136291.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136317fj4rt3fm3gap05f/1b1vs1261136291.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136317fj4rt3fm3gap05f/2e2k01261136291.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136317fj4rt3fm3gap05f/2e2k01261136291.ps (open in new window)


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