Home » date » 2009 » Dec » 21 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 21 Dec 2009 05:12:24 -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/21/t12613976256ebaynlalgm8x2d.htm/, Retrieved Mon, 21 Dec 2009 13:13:47 +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/21/t12613976256ebaynlalgm8x2d.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 «
103.5 104.6 118.6 106.3 110.7 121.6 107 107.6 125.6 113.5 129.2 130.9 104.7 115.2 124.5 112.3 127.5 120.6 117.5 117.7 120.4 125 131.6 121.1 114.2 112.1 127 116.8 112 129.7 113.6 115.7 119.5 125.8 129.6 128 112.8 101.6 123.9 118.8 109.1 130.6 112.4 111 116.2 119.8 117.2 127.3 107.7 97.5 120.1 110.6 111.3 119.8 105.5 108.7 128.7 119.5 121.1 128.4
 
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.0455080.35250.362849
2-0.137553-1.06550.145463
30.3023222.34180.011265
4-0.204869-1.58690.058895
50.0141180.10940.456641
60.4171453.23120.001002
7-0.138398-1.0720.144001
8-0.165745-1.28390.102064
90.1011040.78310.21831
10-0.286897-2.22230.015022
11-0.020425-0.15820.437409
120.4697963.6390.000286
13-0.010395-0.08050.468047
14-0.200811-1.55550.062546
15-0.006552-0.05080.479845
16-0.179444-1.390.084837
17-0.107684-0.83410.203762
180.1777751.3770.086808
19-0.085561-0.66280.255013
20-0.241312-1.86920.03324
21-0.014686-0.11380.454906
22-0.158771-1.22980.111779
23-0.088369-0.68450.248145
240.2765732.14230.018117
250.1108860.85890.196902
26-0.235807-1.82660.036371
27-0.00757-0.05860.476719
28-0.099537-0.7710.221862
29-0.198184-1.53510.065005
300.1274760.98740.163701
310.0077080.05970.476295
32-0.246041-1.90580.030733
33-0.038615-0.29910.382945
34-0.046979-0.36390.358606
35-0.145449-1.12660.13219
360.2116841.63970.053151
370.1439641.11510.134619
38-0.192954-1.49460.070128
390.0590290.45720.324575
400.0062310.04830.480834
41-0.133269-1.03230.153038
420.1834651.42110.08023
430.0489610.37920.352921
44-0.141666-1.09730.138439
450.1223040.94740.173628
460.0239810.18580.426633
47-0.032762-0.25380.400269
480.2354771.8240.036567
490.0809870.62730.266415
50-0.022294-0.17270.431738
510.1040330.80580.211759
52-0.018746-0.14520.442517
53-0.031013-0.24020.405486
540.0674090.52220.301744
55-0.032257-0.24990.401775
56-0.071004-0.550.292183
57-0.014999-0.11620.453949
58-0.045337-0.35120.363343
59-0.035978-0.27870.390722
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0455080.35250.362849
2-0.139914-1.08380.141401
30.3227992.50040.007578
4-0.30857-2.39020.009999
50.2256561.74790.042797
60.2333681.80770.037837
7-0.089216-0.69110.246095
8-0.166142-1.28690.101531
9-0.047066-0.36460.358357
10-0.179867-1.39320.084343
110.0654630.50710.306981
120.3562062.75920.003836
130.1325891.0270.154265
14-0.245904-1.90480.030804
15-0.261882-2.02850.023476
160.0230850.17880.429344
17-0.146801-1.13710.130006
18-0.111924-0.8670.19471
190.0067060.05190.479372
200.0062980.04880.480627
210.0215880.16720.433879
220.0435610.33740.368489
230.0411870.3190.375406
24-0.070167-0.54350.294395
250.0481830.37320.355148
26-0.168351-1.3040.0986
270.0133810.10370.458896
28-0.18487-1.4320.078667
29-0.103183-0.79930.213649
30-0.139229-1.07850.142572
310.1052120.8150.209157
32-0.011469-0.08880.464752
33-0.047208-0.36570.357948
340.0373320.28920.386722
35-0.05078-0.39330.347731
36-0.072461-0.56130.288349
37-0.126553-0.98030.165443
38-0.043518-0.33710.368614
390.0133010.1030.45914
400.0085230.0660.47379
410.0802920.62190.268168
420.0828310.64160.261786
43-0.139774-1.08270.141641
44-0.023069-0.17870.429391
450.1351751.04710.149635
46-0.026804-0.20760.418112
47-0.005416-0.0420.483338
48-0.088557-0.6860.247691
49-0.016363-0.12670.449782
500.0128890.09980.460402
510.0653980.50660.307156
52-0.04756-0.36840.356938
530.0136150.10550.458181
54-0.10166-0.78750.217057
55-0.021745-0.16840.433404
56-0.065494-0.50730.306898
57-0.12178-0.94330.174654
58-0.131907-1.02170.155501
59-0.047203-0.36560.357963
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t12613976256ebaynlalgm8x2d/14xx11261397542.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t12613976256ebaynlalgm8x2d/14xx11261397542.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t12613976256ebaynlalgm8x2d/2suhp1261397542.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t12613976256ebaynlalgm8x2d/2suhp1261397542.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