Home » date » 2009 » May » 07 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 07 May 2009 12:20:04 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/07/t1241720423xmz32ftqhrdz1up.htm/, Retrieved Thu, 07 May 2009 20:20:25 +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/2009/May/07/t1241720423xmz32ftqhrdz1up.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 «
4.2 4.19 4.19 4.19 4.19 4.18 4.2 4.19 4.17 4.21 4.22 4.23 4.21 4.23 4.23 4.22 4.25 4.28 4.3 4.32 4.33 4.32 4.34 4.33 4.31 4.31 4.3 4.3 4.29 4.33 4.32 4.32 4.35 4.37 4.39 4.4 4.41 4.44 4.47 4.47 4.47 4.48 4.47 4.48 4.46 4.44 4.43 4.41 4.41 4.38 4.35 4.37 4.4 4.39 4.36 4.34 4.33 4.33 4.34 4.34 4.35 4.37 4.39 4.4 4.38 4.37 4.36 4.33 4.33 4.33 4.32 4.33 4.34
 
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.2336761.98280.025602
20.0474130.40230.344323
30.1740461.47680.072041
40.0781040.66270.254807
50.0314410.26680.395199
6-0.083629-0.70960.240117
7-0.053652-0.45530.325149
8-0.156814-1.33060.093758
90.0317650.26950.394146
100.0379260.32180.374263
11-0.023432-0.19880.421479
12-0.151296-1.28380.101665
13-0.094083-0.79830.213654
14-0.03497-0.29670.383762
15-0.103549-0.87860.191259
160.022070.18730.425987
17-0.135944-1.15350.126256
180.0143780.1220.451619
190.1683731.42870.078708
200.2001241.69810.046903
210.0193080.16380.435161
220.0272430.23120.408922
230.2105011.78620.039142
240.046280.39270.347851
250.0233050.19780.421898
26-0.025132-0.21320.415868
27-0.085476-0.72530.235312
28-0.070067-0.59450.277007
29-0.036543-0.31010.378698
30-0.091441-0.77590.220174
31-0.128983-1.09450.138701
32-0.080005-0.67890.249701
33-0.128568-1.09090.139469
34-0.031198-0.26470.395989
35-0.077988-0.66180.255121
36-0.14302-1.21360.11444
37-0.125964-1.06880.144356
38-0.13171-1.11760.133727
390.0158240.13430.446781
40-0.032739-0.27780.39098
410.02080.17650.430201
420.1656741.40580.082043
430.1244581.05610.147235
440.0029280.02480.490125
45-0.013586-0.11530.454271
460.0309590.26270.396768
47-0.053962-0.45790.324209
48-0.081496-0.69150.245731


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2336761.98280.025602
2-0.007607-0.06450.474357
30.174181.4780.071889
4-0.001639-0.01390.494471
50.0147350.1250.450423
6-0.131797-1.11830.133571
7-0.018696-0.15860.437197
8-0.168196-1.42720.078924
90.1575581.33690.092728
100.007050.05980.476233
110.0464750.39440.347244
12-0.217783-1.84790.034359
13-0.018831-0.15980.43675
14-0.09016-0.7650.223377
150.0045710.03880.484583
160.074440.63160.264811
17-0.102514-0.86990.193634
180.0912740.77450.220591
190.1133110.96150.169765
200.1540831.30740.097611
21-0.116338-0.98720.163434
220.0484640.41120.341063
230.0866750.73550.232225
240.0037460.03180.487366
25-0.037992-0.32240.374052
26-0.014116-0.11980.452497
27-0.101932-0.86490.194976
28-0.002373-0.02010.491996
29-0.08498-0.72110.236599
30-0.063515-0.53890.295794
310.0051620.04380.482593
32-0.021363-0.18130.428331
33-0.086355-0.73270.233046
340.0175620.1490.440979
35-0.025868-0.21950.413442
36-0.08456-0.71750.237689
37-0.045322-0.38460.350844
38-0.152968-1.2980.09922
390.0330140.28010.39009
40-0.010666-0.09050.46407
410.0904470.76750.222656
420.0919580.78030.218888
430.0054810.04650.481516
44-0.149352-1.26730.104567
45-0.102691-0.87140.193226
46-0.022958-0.19480.423047
47-0.001739-0.01480.494134
48-0.048418-0.41080.341205
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/07/t1241720423xmz32ftqhrdz1up/19fql1241720402.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/07/t1241720423xmz32ftqhrdz1up/19fql1241720402.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/07/t1241720423xmz32ftqhrdz1up/22a0v1241720402.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/07/t1241720423xmz32ftqhrdz1up/22a0v1241720402.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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