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:41:43 -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/t1261136525twqjhdrkjo53lc2.htm/, Retrieved Fri, 18 Dec 2009 12:42:08 +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/t1261136525twqjhdrkjo53lc2.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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5378473.72630.000256
2-0.08553-0.59260.278126
3-0.485876-3.36620.000754
4-0.50964-3.53090.000463
5-0.152639-1.05750.147785
60.2225561.54190.064831
70.4067812.81830.003496
80.2815391.95060.028481
9-0.031898-0.2210.413017
10-0.186682-1.29340.101036
11-0.244558-1.69430.04834
12-0.245622-1.70170.047639
13-0.070217-0.48650.314421
140.1116480.77350.221503
150.1391760.96420.169879
160.0412460.28580.388145
17-0.044554-0.30870.379451
18-0.083322-0.57730.283227
19-0.095095-0.65880.256575
200.0181780.12590.450152
210.1115470.77280.221709
220.0032720.02270.491004
23-0.127139-0.88080.191395
24-0.154918-1.07330.144251
25-0.059428-0.41170.341186
260.0540310.37430.354902
270.0724710.50210.308949
280.0134430.09310.463091
29-0.091472-0.63370.26463
30-0.151979-1.05290.14882
31-0.013022-0.09020.464244
320.0942330.65290.258479
330.1045370.72430.236213
340.0552540.38280.351774
35-0.008353-0.05790.477046
36-0.019143-0.13260.447521
37-0.009955-0.0690.472649
380.059260.41060.34161
390.0763590.5290.299611
400.0677550.46940.320446
410.0419830.29090.386203
42-0.000331-0.00230.49909
43-0.033415-0.23150.408952
44-0.066939-0.46380.322456
45-0.042107-0.29170.385876
460.0006270.00430.498276
479.2e-056e-040.499747
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5378473.72630.000256
2-0.527365-3.65370.000319
3-0.257227-1.78210.040528
4-0.13586-0.94130.17564
50.1354420.93840.176377
60.0108110.07490.470302
70.1018260.70550.241964
8-0.029703-0.20580.418914
9-0.037326-0.25860.398524
100.1624871.12570.132936
11-0.14681-1.01710.157095
12-0.236373-1.63760.054019
130.0681420.47210.319497
140.0097330.06740.473258
15-0.187752-1.30080.099772
16-0.101787-0.70520.242046
170.0884780.6130.271386
18-0.021266-0.14730.441742
19-0.037494-0.25980.398078
200.1550971.07450.143976
21-0.045456-0.31490.37709
22-0.220166-1.52540.066866
230.0038170.02640.489506
24-0.063885-0.44260.330017
25-0.09467-0.65590.257513
26-0.03029-0.20990.417336
27-0.148847-1.03120.153798
28-0.204894-1.41950.081101
290.0459750.31850.375734
30-0.019704-0.13650.445994
31-0.014861-0.1030.459212
32-0.053143-0.36820.357177
330.0707370.49010.313155
34-0.094963-0.65790.256864
35-0.011475-0.07950.468483
360.0753640.52210.301987
37-0.081451-0.56430.287587
380.0161560.11190.455671
39-0.051599-0.35750.361146
400.0797910.55280.291479
41-0.089416-0.61950.26926
42-0.009319-0.06460.474396
430.0491640.34060.367438
44-0.077362-0.5360.297223
45-0.015592-0.1080.457212
46-0.086949-0.60240.274871
47-0.113315-0.78510.218136
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136525twqjhdrkjo53lc2/1ayjk1261136501.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136525twqjhdrkjo53lc2/1ayjk1261136501.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136525twqjhdrkjo53lc2/2544m1261136501.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136525twqjhdrkjo53lc2/2544m1261136501.ps (open in new window)


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